From 4f3de510e73e2b122fd2772b4c9f567f71f51d1c Mon Sep 17 00:00:00 2001 From: Sherzod Karimov Date: Thu, 22 Jun 2023 12:03:20 -0400 Subject: [PATCH 1/5] set additionalProperties to true by default --- .../src/generator/templates/modelSimple.j2 | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.generator/src/generator/templates/modelSimple.j2 b/.generator/src/generator/templates/modelSimple.j2 index 14c2594bf02..c8f2dfc96b1 100644 --- a/.generator/src/generator/templates/modelSimple.j2 +++ b/.generator/src/generator/templates/modelSimple.j2 @@ -259,14 +259,15 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends } {%- endif %} {%- endfor %} - {%- if model.get("additionalProperties") %} + {%- if model.get("additionalProperties", True) %} + {%- set additionalPropertiesDataType = model.get("additionalProperties", {})|simple_type or "Object" %} /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. */ - private Map additionalProperties; + private Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. @@ -277,9 +278,9 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends * @return {{ name }} */ @JsonAnySetter - public {{ name }} putAdditionalProperty(String key, {{ model.additionalProperties|simple_type }} value) { + public {{ name }} putAdditionalProperty(String key, {{ additionalPropertiesDataType }} value) { if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); + this.additionalProperties = new HashMap(); } this.additionalProperties.put(key, value); return this; @@ -291,7 +292,7 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends * @return The additional properties */ @JsonAnyGetter - public Map getAdditionalProperties() { + public Map getAdditionalProperties() { return additionalProperties; } @@ -301,7 +302,7 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends * @param key The arbitrary key to get * @return The specific additional property for the given key */ - public {{ model.additionalProperties|simple_type }} getAdditionalProperty(String key) { + public {{ additionalPropertiesDataType }} getAdditionalProperty(String key) { if (this.additionalProperties == null) { return null; } @@ -322,7 +323,7 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends } {%- if model.properties is defined %} {{ name }} {{ name|variable_name }} = ({{ name }}) o; - return {%- for attr, schema in model.get("properties").items() %} Objects.equals(this.{{ attr|variable_name }}, {{ name|variable_name }}.{{ attr|variable_name }}){%- if loop.nextitem or model.get("additionalProperties") %} &&{%- endif %}{%- endfor %}{% if model.get("additionalProperties") %} Objects.equals(this.additionalProperties, {{ name|variable_name }}.additionalProperties){% endif %} + return {%- for attr, schema in model.get("properties").items() %} Objects.equals(this.{{ attr|variable_name }}, {{ name|variable_name }}.{{ attr|variable_name }}){%- if loop.nextitem or model.get("additionalProperties", True) %} &&{%- endif %}{%- endfor %}{% if model.get("additionalProperties", True) %} Objects.equals(this.additionalProperties, {{ name|variable_name }}.additionalProperties){% endif %} {%- if model.get("x-generate-alias-as-model") %} && super.equals(o){%- endif %}; {%- else %} @@ -334,8 +335,8 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends @Override public int hashCode() { return Objects.hash({%- for attr, schema in model.get("properties", {}).items() %}{{ attr|variable_name }}{%- if loop.nextitem %}, {%- endif %}{%-endfor %} - {%- if model.get("additionalProperties") %}, additionalProperties{%- endif %} - {%- if model.get("x-generate-alias-as-model") %}{%- if model.properties is defined %}, {%- endif %}super.hashCode(){%- endif %}); + {%- if model.get("additionalProperties", True) %}{%- if model.properties is defined %}, {%- endif %} additionalProperties{%- endif %} + {%- if model.get("x-generate-alias-as-model") %}{%- if model.properties is defined or model.get("additionalProperties", True) %}, {%- endif %}super.hashCode(){%- endif %}); } @Override @@ -348,7 +349,7 @@ public class {{ name }} {%- if model.get("x-generate-alias-as-model") %} extends {%- for attr, schema in model.get("properties", {}).items() %} sb.append(" {{ attr|variable_name }}: ").append(toIndentedString({{ attr|variable_name }})).append("\n"); {%- endfor %} - {%- if model.get("additionalProperties") %} + {%- if model.get("additionalProperties", True) %} sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); From f7e4167f6d301283fbe7b8b622b6f88803a8c894 Mon Sep 17 00:00:00 2001 From: Sherzod Karimov Date: Thu, 22 Jun 2023 12:03:38 -0400 Subject: [PATCH 2/5] update test cassette --- .../cassettes/v1/EventsApiTest.eventLifecycleTest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json b/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json index ee12f10c2cc..780f5e8fe60 100644 --- a/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json +++ b/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json @@ -214,6 +214,6 @@ "cookies" : { "DD-PSHARD" : "233" }, - "body" : "{\"events\":[{\"date_happened\":1596011200,\"alert_type\":\"info\",\"is_aggregate\":false,\"title\":\"java-eventLifecycleTest-local-1596011200\",\"url\":\"/event/event?id=5565813470611825502\",\"text\":\"example text\",\"tags\":[\"client:java\",\"test\"],\"comments\":[],\"device_name\":null,\"priority\":\"normal\",\"source\":\"My Apps\",\"host\":null,\"resource\":\"/api/v1/events/5565813470611825502\",\"id\":5565813470611825502}]}" + "body" : "{\"events\":[{\"date_happened\":1596011200,\"alert_type\":\"info\",\"title\":\"java-eventLifecycleTest-local-1596011200\",\"url\":\"/event/event?id=5565813470611825502\",\"text\":\"example text\",\"tags\":[\"client:java\",\"test\"],\"device_name\":null,\"priority\":\"normal\",\"host\":null,\"resource\":\"/api/v1/events/5565813470611825502\",\"id\":5565813470611825502}]}" } }] \ No newline at end of file From 129a6249142b1b9cf63728f0f86b7386b1632ec9 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 22 Jun 2023 16:07:05 +0000 Subject: [PATCH 3/5] pre-commit fixes --- .../api/client/v1/model/APIErrorResponse.java | 58 ++++++++++++++- .../api/client/v1/model/AWSAccount.java | 57 ++++++++++++++- .../v1/model/AWSAccountAndLambdaRequest.java | 59 ++++++++++++++- .../v1/model/AWSAccountCreateResponse.java | 58 ++++++++++++++- .../v1/model/AWSAccountDeleteRequest.java | 58 ++++++++++++++- .../v1/model/AWSAccountListResponse.java | 58 ++++++++++++++- .../client/v1/model/AWSLogsAsyncError.java | 58 ++++++++++++++- .../client/v1/model/AWSLogsAsyncResponse.java | 58 ++++++++++++++- .../api/client/v1/model/AWSLogsLambda.java | 58 ++++++++++++++- .../client/v1/model/AWSLogsListResponse.java | 58 ++++++++++++++- .../v1/model/AWSLogsListServicesResponse.java | 59 ++++++++++++++- .../v1/model/AWSLogsServicesRequest.java | 58 ++++++++++++++- .../api/client/v1/model/AWSTagFilter.java | 58 ++++++++++++++- .../v1/model/AWSTagFilterCreateRequest.java | 59 ++++++++++++++- .../v1/model/AWSTagFilterDeleteRequest.java | 59 ++++++++++++++- .../v1/model/AWSTagFilterListResponse.java | 58 ++++++++++++++- .../v1/model/AddSignalToIncidentRequest.java | 59 ++++++++++++++- .../v1/model/AlertGraphWidgetDefinition.java | 60 +++++++++++++++- .../v1/model/AlertValueWidgetDefinition.java | 68 +++++++++++++++++- .../datadog/api/client/v1/model/ApiKey.java | 58 ++++++++++++++- .../client/v1/model/ApiKeyListResponse.java | 58 ++++++++++++++- .../api/client/v1/model/ApiKeyResponse.java | 58 ++++++++++++++- .../v1/model/ApmStatsQueryColumnType.java | 58 ++++++++++++++- .../v1/model/ApmStatsQueryDefinition.java | 59 ++++++++++++++- .../api/client/v1/model/ApplicationKey.java | 58 ++++++++++++++- .../v1/model/ApplicationKeyListResponse.java | 59 ++++++++++++++- .../v1/model/ApplicationKeyResponse.java | 58 ++++++++++++++- .../AuthenticationValidationResponse.java | 59 ++++++++++++++- .../api/client/v1/model/AzureAccount.java | 59 ++++++++++++++- .../model/CancelDowntimesByScopeRequest.java | 59 ++++++++++++++- .../client/v1/model/CanceledDowntimesIds.java | 58 ++++++++++++++- .../v1/model/ChangeWidgetDefinition.java | 59 ++++++++++++++- .../client/v1/model/ChangeWidgetRequest.java | 59 ++++++++++++++- .../model/CheckCanDeleteMonitorResponse.java | 57 ++++++++++++++- .../CheckCanDeleteMonitorResponseData.java | 59 ++++++++++++++- .../v1/model/CheckCanDeleteSLOResponse.java | 57 ++++++++++++++- .../model/CheckCanDeleteSLOResponseData.java | 59 ++++++++++++++- .../v1/model/CheckStatusWidgetDefinition.java | 69 +++++++++++++++++- .../datadog/api/client/v1/model/Creator.java | 58 ++++++++++++++- .../api/client/v1/model/Dashboard.java | 59 ++++++++++++++- .../v1/model/DashboardBulkActionData.java | 58 ++++++++++++++- .../v1/model/DashboardBulkDeleteRequest.java | 59 ++++++++++++++- .../v1/model/DashboardDeleteResponse.java | 58 ++++++++++++++- .../client/v1/model/DashboardGlobalTime.java | 58 ++++++++++++++- .../api/client/v1/model/DashboardList.java | 67 ++++++++++++++++- .../v1/model/DashboardListDeleteResponse.java | 59 ++++++++++++++- .../v1/model/DashboardListListResponse.java | 59 ++++++++++++++- .../v1/model/DashboardRestoreRequest.java | 58 ++++++++++++++- .../api/client/v1/model/DashboardSummary.java | 58 ++++++++++++++- .../v1/model/DashboardSummaryDefinition.java | 68 +++++++++++++++++- .../v1/model/DashboardTemplateVariable.java | 59 ++++++++++++++- .../DashboardTemplateVariablePreset.java | 58 ++++++++++++++- .../DashboardTemplateVariablePresetValue.java | 59 ++++++++++++++- .../model/DeleteSharedDashboardResponse.java | 61 +++++++++++++++- .../api/client/v1/model/DeletedMonitor.java | 58 ++++++++++++++- .../v1/model/DistributionPointsPayload.java | 59 ++++++++++++++- .../v1/model/DistributionPointsSeries.java | 58 ++++++++++++++- .../model/DistributionWidgetDefinition.java | 60 +++++++++++++++- .../v1/model/DistributionWidgetRequest.java | 60 +++++++++++++++- .../v1/model/DistributionWidgetXAxis.java | 58 ++++++++++++++- .../v1/model/DistributionWidgetYAxis.java | 58 ++++++++++++++- .../datadog/api/client/v1/model/Downtime.java | 59 ++++++++++++++- .../api/client/v1/model/DowntimeChild.java | 59 ++++++++++++++- .../client/v1/model/DowntimeRecurrence.java | 59 ++++++++++++++- .../datadog/api/client/v1/model/Event.java | 59 ++++++++++++++- .../client/v1/model/EventCreateRequest.java | 59 ++++++++++++++- .../client/v1/model/EventCreateResponse.java | 58 ++++++++++++++- .../client/v1/model/EventListResponse.java | 58 ++++++++++++++- .../client/v1/model/EventQueryDefinition.java | 58 ++++++++++++++- .../api/client/v1/model/EventResponse.java | 58 ++++++++++++++- .../v1/model/EventStreamWidgetDefinition.java | 68 +++++++++++++++++- .../model/EventTimelineWidgetDefinition.java | 60 +++++++++++++++- ...tionApmDependencyStatsQueryDefinition.java | 62 +++++++++++++++- ...nctionApmResourceStatsQueryDefinition.java | 62 +++++++++++++++- ...ormulaAndFunctionEventQueryDefinition.java | 60 +++++++++++++++- ...ndFunctionEventQueryDefinitionCompute.java | 61 +++++++++++++++- ...AndFunctionEventQueryDefinitionSearch.java | 61 +++++++++++++++- .../FormulaAndFunctionEventQueryGroupBy.java | 59 ++++++++++++++- ...rmulaAndFunctionEventQueryGroupBySort.java | 60 +++++++++++++++- ...rmulaAndFunctionMetricQueryDefinition.java | 60 +++++++++++++++- ...mulaAndFunctionProcessQueryDefinition.java | 69 +++++++++++++++++- .../FormulaAndFunctionSLOQueryDefinition.java | 60 +++++++++++++++- .../v1/model/FreeTextWidgetDefinition.java | 58 ++++++++++++++- .../api/client/v1/model/FunnelQuery.java | 58 ++++++++++++++- .../api/client/v1/model/FunnelStep.java | 58 ++++++++++++++- .../v1/model/FunnelWidgetDefinition.java | 58 ++++++++++++++- .../client/v1/model/FunnelWidgetRequest.java | 58 ++++++++++++++- .../api/client/v1/model/GCPAccount.java | 59 ++++++++++++++- .../v1/model/GeomapWidgetDefinition.java | 67 ++++++++++++++++- .../v1/model/GeomapWidgetDefinitionStyle.java | 59 ++++++++++++++- .../v1/model/GeomapWidgetDefinitionView.java | 59 ++++++++++++++- .../client/v1/model/GeomapWidgetRequest.java | 66 ++++++++++++++++- .../api/client/v1/model/GraphSnapshot.java | 58 ++++++++++++++- .../v1/model/GroupWidgetDefinition.java | 66 ++++++++++++++++- .../api/client/v1/model/HTTPLogError.java | 58 ++++++++++++++- .../v1/model/HeatMapWidgetDefinition.java | 59 ++++++++++++++- .../client/v1/model/HeatMapWidgetRequest.java | 59 ++++++++++++++- .../com/datadog/api/client/v1/model/Host.java | 57 ++++++++++++++- .../api/client/v1/model/HostListResponse.java | 58 ++++++++++++++- .../api/client/v1/model/HostMapRequest.java | 59 ++++++++++++++- .../v1/model/HostMapWidgetDefinition.java | 59 ++++++++++++++- .../HostMapWidgetDefinitionRequests.java | 59 ++++++++++++++- .../model/HostMapWidgetDefinitionStyle.java | 59 ++++++++++++++- .../datadog/api/client/v1/model/HostMeta.java | 59 ++++++++++++++- .../v1/model/HostMetaInstallMethod.java | 58 ++++++++++++++- .../api/client/v1/model/HostMetrics.java | 58 ++++++++++++++- .../api/client/v1/model/HostMuteResponse.java | 58 ++++++++++++++- .../api/client/v1/model/HostMuteSettings.java | 58 ++++++++++++++- .../datadog/api/client/v1/model/HostTags.java | 59 ++++++++++++++- .../api/client/v1/model/HostTotals.java | 58 ++++++++++++++- .../v1/model/HourlyUsageAttributionBody.java | 58 ++++++++++++++- .../model/HourlyUsageAttributionMetadata.java | 59 ++++++++++++++- .../HourlyUsageAttributionPagination.java | 59 ++++++++++++++- .../model/HourlyUsageAttributionResponse.java | 59 ++++++++++++++- .../v1/model/IFrameWidgetDefinition.java | 58 ++++++++++++++- .../api/client/v1/model/IPPrefixesAPI.java | 58 ++++++++++++++- .../api/client/v1/model/IPPrefixesAPM.java | 58 ++++++++++++++- .../api/client/v1/model/IPPrefixesAgents.java | 58 ++++++++++++++- .../api/client/v1/model/IPPrefixesLogs.java | 58 ++++++++++++++- .../v1/model/IPPrefixesOrchestrator.java | 58 ++++++++++++++- .../client/v1/model/IPPrefixesProcess.java | 58 ++++++++++++++- .../client/v1/model/IPPrefixesSynthetics.java | 61 +++++++++++++++- .../IPPrefixesSyntheticsPrivateLocations.java | 59 ++++++++++++++- .../client/v1/model/IPPrefixesWebhooks.java | 58 ++++++++++++++- .../datadog/api/client/v1/model/IPRanges.java | 59 ++++++++++++++- .../api/client/v1/model/IdpFormData.java | 58 ++++++++++++++- .../api/client/v1/model/IdpResponse.java | 58 ++++++++++++++- .../v1/model/ImageWidgetDefinition.java | 59 ++++++++++++++- .../v1/model/IntakePayloadAccepted.java | 58 ++++++++++++++- .../api/client/v1/model/ListStreamColumn.java | 58 ++++++++++++++- .../v1/model/ListStreamComputeItems.java | 58 ++++++++++++++- .../v1/model/ListStreamGroupByItems.java | 58 ++++++++++++++- .../api/client/v1/model/ListStreamQuery.java | 66 ++++++++++++++++- .../v1/model/ListStreamWidgetDefinition.java | 68 +++++++++++++++++- .../v1/model/ListStreamWidgetRequest.java | 58 ++++++++++++++- .../com/datadog/api/client/v1/model/Log.java | 59 ++++++++++++++- .../api/client/v1/model/LogContent.java | 56 ++++++++++++++- .../client/v1/model/LogQueryDefinition.java | 58 ++++++++++++++- .../v1/model/LogQueryDefinitionGroupBy.java | 59 ++++++++++++++- .../model/LogQueryDefinitionGroupBySort.java | 59 ++++++++++++++- .../v1/model/LogQueryDefinitionSearch.java | 58 ++++++++++++++- .../v1/model/LogStreamWidgetDefinition.java | 60 +++++++++++++++- .../api/client/v1/model/LogsAPIError.java | 58 ++++++++++++++- .../client/v1/model/LogsAPIErrorResponse.java | 58 ++++++++++++++- .../v1/model/LogsArithmeticProcessor.java | 59 ++++++++++++++- .../v1/model/LogsAttributeRemapper.java | 59 ++++++++++++++- .../api/client/v1/model/LogsByRetention.java | 58 ++++++++++++++- .../v1/model/LogsByRetentionMonthlyUsage.java | 59 ++++++++++++++- .../v1/model/LogsByRetentionOrgUsage.java | 58 ++++++++++++++- .../client/v1/model/LogsByRetentionOrgs.java | 58 ++++++++++++++- .../v1/model/LogsCategoryProcessor.java | 58 ++++++++++++++- .../model/LogsCategoryProcessorCategory.java | 59 ++++++++++++++- .../api/client/v1/model/LogsDateRemapper.java | 58 ++++++++++++++- .../api/client/v1/model/LogsExclusion.java | 58 ++++++++++++++- .../client/v1/model/LogsExclusionFilter.java | 58 ++++++++++++++- .../api/client/v1/model/LogsFilter.java | 58 ++++++++++++++- .../api/client/v1/model/LogsGeoIPParser.java | 58 ++++++++++++++- .../api/client/v1/model/LogsGrokParser.java | 58 ++++++++++++++- .../client/v1/model/LogsGrokParserRules.java | 58 ++++++++++++++- .../api/client/v1/model/LogsIndex.java | 64 ++++++++++++++++- .../v1/model/LogsIndexListResponse.java | 58 ++++++++++++++- .../v1/model/LogsIndexUpdateRequest.java | 64 ++++++++++++++++- .../api/client/v1/model/LogsIndexesOrder.java | 58 ++++++++++++++- .../api/client/v1/model/LogsListRequest.java | 58 ++++++++++++++- .../client/v1/model/LogsListRequestTime.java | 58 ++++++++++++++- .../api/client/v1/model/LogsListResponse.java | 58 ++++++++++++++- .../client/v1/model/LogsLookupProcessor.java | 59 ++++++++++++++- .../client/v1/model/LogsMessageRemapper.java | 58 ++++++++++++++- .../api/client/v1/model/LogsPipeline.java | 59 ++++++++++++++- .../v1/model/LogsPipelineProcessor.java | 58 ++++++++++++++- .../client/v1/model/LogsPipelinesOrder.java | 58 ++++++++++++++- .../api/client/v1/model/LogsQueryCompute.java | 58 ++++++++++++++- .../v1/model/LogsRetentionAggSumUsage.java | 59 ++++++++++++++- .../v1/model/LogsRetentionSumUsage.java | 59 ++++++++++++++- .../client/v1/model/LogsServiceRemapper.java | 58 ++++++++++++++- .../client/v1/model/LogsStatusRemapper.java | 58 ++++++++++++++- .../v1/model/LogsStringBuilderProcessor.java | 60 +++++++++++++++- .../client/v1/model/LogsTraceRemapper.java | 58 ++++++++++++++- .../api/client/v1/model/LogsURLParser.java | 59 ++++++++++++++- .../client/v1/model/LogsUserAgentParser.java | 58 ++++++++++++++- .../api/client/v1/model/MatchingDowntime.java | 58 ++++++++++++++- .../api/client/v1/model/MetricMetadata.java | 66 ++++++++++++++++- .../client/v1/model/MetricSearchResponse.java | 58 ++++++++++++++- .../v1/model/MetricSearchResponseResults.java | 59 ++++++++++++++- .../client/v1/model/MetricsListResponse.java | 58 ++++++++++++++- .../api/client/v1/model/MetricsPayload.java | 58 ++++++++++++++- .../client/v1/model/MetricsQueryMetadata.java | 59 ++++++++++++++- .../client/v1/model/MetricsQueryResponse.java | 68 +++++++++++++++++- .../api/client/v1/model/MetricsQueryUnit.java | 58 ++++++++++++++- .../datadog/api/client/v1/model/Monitor.java | 59 ++++++++++++++- ...ormulaAndFunctionEventQueryDefinition.java | 61 +++++++++++++++- ...ndFunctionEventQueryDefinitionCompute.java | 61 +++++++++++++++- ...AndFunctionEventQueryDefinitionSearch.java | 61 +++++++++++++++- ...orFormulaAndFunctionEventQueryGroupBy.java | 61 +++++++++++++++- ...rmulaAndFunctionEventQueryGroupBySort.java | 61 +++++++++++++++- .../v1/model/MonitorGroupSearchResponse.java | 59 ++++++++++++++- .../MonitorGroupSearchResponseCounts.java | 59 ++++++++++++++- .../v1/model/MonitorGroupSearchResult.java | 65 ++++++++++++++++- .../api/client/v1/model/MonitorOptions.java | 57 ++++++++++++++- .../v1/model/MonitorOptionsAggregation.java | 59 ++++++++++++++- .../MonitorOptionsSchedulingOptions.java | 59 ++++++++++++++- ...ionsSchedulingOptionsEvaluationWindow.java | 61 +++++++++++++++- .../v1/model/MonitorSearchCountItem.java | 58 ++++++++++++++- .../v1/model/MonitorSearchResponse.java | 58 ++++++++++++++- .../v1/model/MonitorSearchResponseCounts.java | 59 ++++++++++++++- .../model/MonitorSearchResponseMetadata.java | 59 ++++++++++++++- .../client/v1/model/MonitorSearchResult.java | 59 ++++++++++++++- .../MonitorSearchResultNotification.java | 59 ++++++++++++++- .../api/client/v1/model/MonitorState.java | 56 ++++++++++++++- .../client/v1/model/MonitorStateGroup.java | 64 ++++++++++++++++- .../model/MonitorSummaryWidgetDefinition.java | 60 +++++++++++++++- .../model/MonitorThresholdWindowOptions.java | 59 ++++++++++++++- .../client/v1/model/MonitorThresholds.java | 59 ++++++++++++++- .../client/v1/model/MonitorUpdateRequest.java | 59 ++++++++++++++- .../v1/model/MonthlyUsageAttributionBody.java | 66 ++++++++++++++++- .../MonthlyUsageAttributionMetadata.java | 59 ++++++++++++++- .../MonthlyUsageAttributionPagination.java | 59 ++++++++++++++- .../MonthlyUsageAttributionResponse.java | 59 ++++++++++++++- .../model/MonthlyUsageAttributionValues.java | 60 +++++++++++++++- .../client/v1/model/NoteWidgetDefinition.java | 59 ++++++++++++++- .../client/v1/model/NotebookAbsoluteTime.java | 58 ++++++++++++++- .../api/client/v1/model/NotebookAuthor.java | 68 +++++++++++++++++- .../client/v1/model/NotebookCellResponse.java | 58 ++++++++++++++- .../v1/model/NotebookCellUpdateRequest.java | 59 ++++++++++++++- .../client/v1/model/NotebookCreateData.java | 58 ++++++++++++++- .../model/NotebookCreateDataAttributes.java | 59 ++++++++++++++- .../v1/model/NotebookCreateRequest.java | 58 ++++++++++++++- .../NotebookDistributionCellAttributes.java | 59 ++++++++++++++- .../model/NotebookHeatMapCellAttributes.java | 59 ++++++++++++++- .../NotebookLogStreamCellAttributes.java | 59 ++++++++++++++- .../model/NotebookMarkdownCellAttributes.java | 59 ++++++++++++++- .../model/NotebookMarkdownCellDefinition.java | 59 ++++++++++++++- .../api/client/v1/model/NotebookMetadata.java | 58 ++++++++++++++- .../client/v1/model/NotebookRelativeTime.java | 58 ++++++++++++++- .../api/client/v1/model/NotebookResponse.java | 58 ++++++++++++++- .../client/v1/model/NotebookResponseData.java | 58 ++++++++++++++- .../model/NotebookResponseDataAttributes.java | 60 +++++++++++++++- .../api/client/v1/model/NotebookSplitBy.java | 58 ++++++++++++++- .../NotebookTimeseriesCellAttributes.java | 59 ++++++++++++++- .../model/NotebookToplistCellAttributes.java | 59 ++++++++++++++- .../client/v1/model/NotebookUpdateData.java | 58 ++++++++++++++- .../model/NotebookUpdateDataAttributes.java | 59 ++++++++++++++- .../v1/model/NotebookUpdateRequest.java | 58 ++++++++++++++- .../client/v1/model/NotebooksResponse.java | 58 ++++++++++++++- .../v1/model/NotebooksResponseData.java | 58 ++++++++++++++- .../NotebooksResponseDataAttributes.java | 60 +++++++++++++++- .../v1/model/NotebooksResponseMeta.java | 58 ++++++++++++++- .../v1/model/NotebooksResponsePage.java | 58 ++++++++++++++- .../v1/model/OrgDowngradedResponse.java | 58 ++++++++++++++- .../api/client/v1/model/Organization.java | 66 ++++++++++++++++- .../client/v1/model/OrganizationBilling.java | 58 ++++++++++++++- .../v1/model/OrganizationCreateBody.java | 58 ++++++++++++++- .../v1/model/OrganizationCreateResponse.java | 59 ++++++++++++++- .../v1/model/OrganizationListResponse.java | 58 ++++++++++++++- .../client/v1/model/OrganizationResponse.java | 58 ++++++++++++++- .../client/v1/model/OrganizationSettings.java | 59 ++++++++++++++- .../v1/model/OrganizationSettingsSaml.java | 58 ++++++++++++++- ...ionSettingsSamlAutocreateUsersDomains.java | 61 +++++++++++++++- ...nizationSettingsSamlIdpInitiatedLogin.java | 60 +++++++++++++++- .../OrganizationSettingsSamlStrictMode.java | 59 ++++++++++++++- .../v1/model/OrganizationSubscription.java | 58 ++++++++++++++- .../api/client/v1/model/PagerDutyService.java | 58 ++++++++++++++- .../client/v1/model/PagerDutyServiceKey.java | 58 ++++++++++++++- .../client/v1/model/PagerDutyServiceName.java | 58 ++++++++++++++- .../api/client/v1/model/Pagination.java | 58 ++++++++++++++- .../v1/model/ProcessQueryDefinition.java | 58 ++++++++++++++- .../v1/model/QueryValueWidgetDefinition.java | 60 +++++++++++++++- .../v1/model/QueryValueWidgetRequest.java | 59 ++++++++++++++- .../ReferenceTableLogsLookupProcessor.java | 60 +++++++++++++++- .../v1/model/ResponseMetaAttributes.java | 58 ++++++++++++++- .../v1/model/RunWorkflowWidgetDefinition.java | 68 +++++++++++++++++- .../v1/model/RunWorkflowWidgetInput.java | 58 ++++++++++++++- .../client/v1/model/SLOBulkDeleteError.java | 58 ++++++++++++++- .../v1/model/SLOBulkDeleteResponse.java | 58 ++++++++++++++- .../v1/model/SLOBulkDeleteResponseData.java | 59 ++++++++++++++- .../api/client/v1/model/SLOCorrection.java | 58 ++++++++++++++- .../v1/model/SLOCorrectionCreateData.java | 58 ++++++++++++++- .../v1/model/SLOCorrectionCreateRequest.java | 59 ++++++++++++++- .../SLOCorrectionCreateRequestAttributes.java | 60 +++++++++++++++- .../v1/model/SLOCorrectionListResponse.java | 59 ++++++++++++++- .../v1/model/SLOCorrectionResponse.java | 58 ++++++++++++++- .../SLOCorrectionResponseAttributes.java | 60 +++++++++++++++- ...OCorrectionResponseAttributesModifier.java | 60 +++++++++++++++- .../v1/model/SLOCorrectionUpdateData.java | 58 ++++++++++++++- .../v1/model/SLOCorrectionUpdateRequest.java | 59 ++++++++++++++- .../SLOCorrectionUpdateRequestAttributes.java | 60 +++++++++++++++- .../api/client/v1/model/SLOCreator.java | 58 ++++++++++++++- .../client/v1/model/SLODeleteResponse.java | 56 ++++++++++++++- .../client/v1/model/SLOHistoryMetrics.java | 66 ++++++++++++++++- .../v1/model/SLOHistoryMetricsSeries.java | 58 ++++++++++++++- .../SLOHistoryMetricsSeriesMetadata.java | 59 ++++++++++++++- .../SLOHistoryMetricsSeriesMetadataUnit.java | 59 ++++++++++++++- .../client/v1/model/SLOHistoryMonitor.java | 57 ++++++++++++++- .../client/v1/model/SLOHistoryResponse.java | 58 ++++++++++++++- .../v1/model/SLOHistoryResponseData.java | 66 ++++++++++++++++- .../v1/model/SLOHistoryResponseError.java | 58 ++++++++++++++- .../SLOHistoryResponseErrorWithType.java | 59 ++++++++++++++- .../client/v1/model/SLOHistorySLIData.java | 57 ++++++++++++++- .../api/client/v1/model/SLOListResponse.java | 58 ++++++++++++++- .../v1/model/SLOListResponseMetadata.java | 58 ++++++++++++++- .../v1/model/SLOListResponseMetadataPage.java | 59 ++++++++++++++- .../v1/model/SLOListWidgetDefinition.java | 58 ++++++++++++++- .../client/v1/model/SLOListWidgetQuery.java | 58 ++++++++++++++- .../client/v1/model/SLOListWidgetRequest.java | 58 ++++++++++++++- .../client/v1/model/SLOOverallStatuses.java | 59 ++++++++++++++- .../v1/model/SLORawErrorBudgetRemaining.java | 59 ++++++++++++++- .../api/client/v1/model/SLOResponse.java | 58 ++++++++++++++- .../api/client/v1/model/SLOResponseData.java | 59 ++++++++++++++- .../api/client/v1/model/SLOStatus.java | 59 ++++++++++++++- .../api/client/v1/model/SLOThreshold.java | 59 ++++++++++++++- .../client/v1/model/SLOWidgetDefinition.java | 59 ++++++++++++++- .../client/v1/model/ScatterPlotRequest.java | 59 ++++++++++++++- .../v1/model/ScatterPlotWidgetDefinition.java | 60 +++++++++++++++- .../ScatterPlotWidgetDefinitionRequests.java | 59 ++++++++++++++- .../v1/model/ScatterplotTableRequest.java | 58 ++++++++++++++- .../v1/model/ScatterplotWidgetFormula.java | 58 ++++++++++++++- .../api/client/v1/model/SearchSLOQuery.java | 58 ++++++++++++++- .../client/v1/model/SearchSLOResponse.java | 58 ++++++++++++++- .../v1/model/SearchSLOResponseData.java | 58 ++++++++++++++- .../SearchSLOResponseDataAttributes.java | 59 ++++++++++++++- ...SearchSLOResponseDataAttributesFacets.java | 67 ++++++++++++++++- ...ResponseDataAttributesFacetsObjectInt.java | 61 +++++++++++++++- ...ponseDataAttributesFacetsObjectString.java | 61 +++++++++++++++- .../v1/model/SearchSLOResponseLinks.java | 58 ++++++++++++++- .../v1/model/SearchSLOResponseMeta.java | 58 ++++++++++++++- .../v1/model/SearchSLOResponseMetaPage.java | 68 +++++++++++++++++- .../client/v1/model/SearchSLOThreshold.java | 59 ++++++++++++++- .../v1/model/SearchServiceLevelObjective.java | 59 ++++++++++++++- ...SearchServiceLevelObjectiveAttributes.java | 60 +++++++++++++++- .../SearchServiceLevelObjectiveData.java | 59 ++++++++++++++- .../SelectableTemplateVariableItems.java | 59 ++++++++++++++- .../datadog/api/client/v1/model/Series.java | 58 ++++++++++++++- .../api/client/v1/model/ServiceCheck.java | 58 ++++++++++++++- .../v1/model/ServiceLevelObjective.java | 59 ++++++++++++++- .../v1/model/ServiceLevelObjectiveQuery.java | 59 ++++++++++++++- .../model/ServiceLevelObjectiveRequest.java | 60 +++++++++++++++- .../v1/model/ServiceMapWidgetDefinition.java | 60 +++++++++++++++- .../model/ServiceSummaryWidgetDefinition.java | 60 +++++++++++++++- .../api/client/v1/model/SharedDashboard.java | 59 ++++++++++++++- .../v1/model/SharedDashboardAuthor.java | 58 ++++++++++++++- .../v1/model/SharedDashboardInvites.java | 58 ++++++++++++++- .../SharedDashboardInvitesDataObject.java | 59 ++++++++++++++- ...dDashboardInvitesDataObjectAttributes.java | 68 +++++++++++++++++- .../v1/model/SharedDashboardInvitesMeta.java | 59 ++++++++++++++- .../model/SharedDashboardInvitesMetaPage.java | 59 ++++++++++++++- .../model/SharedDashboardUpdateRequest.java | 64 ++++++++++++++++- ...haredDashboardUpdateRequestGlobalTime.java | 59 ++++++++++++++- .../v1/model/SignalAssigneeUpdateRequest.java | 59 ++++++++++++++- .../v1/model/SignalStateUpdateRequest.java | 58 ++++++++++++++- .../v1/model/SlackIntegrationChannel.java | 58 ++++++++++++++- .../model/SlackIntegrationChannelDisplay.java | 59 ++++++++++++++- .../model/SuccessfulSignalUpdateResponse.java | 59 ++++++++++++++- .../v1/model/SunburstWidgetDefinition.java | 67 ++++++++++++++++- .../SunburstWidgetLegendInlineAutomatic.java | 59 ++++++++++++++- .../v1/model/SunburstWidgetLegendTable.java | 59 ++++++++++++++- .../v1/model/SunburstWidgetRequest.java | 59 ++++++++++++++- .../client/v1/model/SyntheticsAPIStep.java | 66 ++++++++++++++++- .../client/v1/model/SyntheticsAPITest.java | 70 +++++++++++++++++- .../v1/model/SyntheticsAPITestConfig.java | 58 ++++++++++++++- .../v1/model/SyntheticsAPITestResultData.java | 58 ++++++++++++++- .../v1/model/SyntheticsAPITestResultFull.java | 60 +++++++++++++++- .../SyntheticsAPITestResultFullCheck.java | 59 ++++++++++++++- .../model/SyntheticsAPITestResultShort.java | 59 ++++++++++++++- .../SyntheticsAPITestResultShortResult.java | 59 ++++++++++++++- .../model/SyntheticsApiTestResultFailure.java | 59 ++++++++++++++- .../SyntheticsAssertionJSONPathTarget.java | 59 ++++++++++++++- ...ntheticsAssertionJSONPathTargetTarget.java | 60 +++++++++++++++- .../v1/model/SyntheticsAssertionTarget.java | 59 ++++++++++++++- .../model/SyntheticsAssertionXPathTarget.java | 59 ++++++++++++++- .../SyntheticsAssertionXPathTargetTarget.java | 59 ++++++++++++++- .../v1/model/SyntheticsBasicAuthDigest.java | 59 ++++++++++++++- .../v1/model/SyntheticsBasicAuthNTLM.java | 58 ++++++++++++++- .../model/SyntheticsBasicAuthOauthClient.java | 60 +++++++++++++++- .../v1/model/SyntheticsBasicAuthOauthROP.java | 60 +++++++++++++++- .../v1/model/SyntheticsBasicAuthSigv4.java | 59 ++++++++++++++- .../v1/model/SyntheticsBasicAuthWeb.java | 58 ++++++++++++++- .../v1/model/SyntheticsBatchDetails.java | 58 ++++++++++++++- .../v1/model/SyntheticsBatchDetailsData.java | 59 ++++++++++++++- .../v1/model/SyntheticsBatchResult.java | 59 ++++++++++++++- .../v1/model/SyntheticsBrowserError.java | 58 ++++++++++++++- .../v1/model/SyntheticsBrowserTest.java | 69 +++++++++++++++++- .../v1/model/SyntheticsBrowserTestConfig.java | 60 +++++++++++++++- .../SyntheticsBrowserTestResultData.java | 59 ++++++++++++++- .../SyntheticsBrowserTestResultFailure.java | 59 ++++++++++++++- .../SyntheticsBrowserTestResultFull.java | 60 +++++++++++++++- .../SyntheticsBrowserTestResultFullCheck.java | 59 ++++++++++++++- .../SyntheticsBrowserTestResultShort.java | 59 ++++++++++++++- ...yntheticsBrowserTestResultShortResult.java | 60 +++++++++++++++- .../SyntheticsBrowserTestRumSettings.java | 59 ++++++++++++++- .../v1/model/SyntheticsBrowserVariable.java | 59 ++++++++++++++- .../v1/model/SyntheticsCIBatchMetadata.java | 59 ++++++++++++++- .../v1/model/SyntheticsCIBatchMetadataCI.java | 59 ++++++++++++++- .../model/SyntheticsCIBatchMetadataGit.java | 59 ++++++++++++++- .../SyntheticsCIBatchMetadataPipeline.java | 59 ++++++++++++++- .../SyntheticsCIBatchMetadataProvider.java | 59 ++++++++++++++- .../api/client/v1/model/SyntheticsCITest.java | 57 ++++++++++++++- .../client/v1/model/SyntheticsCITestBody.java | 58 ++++++++++++++- .../v1/model/SyntheticsConfigVariable.java | 58 ++++++++++++++- .../v1/model/SyntheticsCoreWebVitals.java | 58 ++++++++++++++- .../model/SyntheticsDeleteTestsPayload.java | 59 ++++++++++++++- .../model/SyntheticsDeleteTestsResponse.java | 59 ++++++++++++++- .../v1/model/SyntheticsDeletedTest.java | 58 ++++++++++++++- .../api/client/v1/model/SyntheticsDevice.java | 58 ++++++++++++++- ...heticsGetAPITestLatestResultsResponse.java | 60 +++++++++++++++- ...csGetBrowserTestLatestResultsResponse.java | 61 +++++++++++++++- .../v1/model/SyntheticsGlobalVariable.java | 66 ++++++++++++++++- .../SyntheticsGlobalVariableAttributes.java | 59 ++++++++++++++- .../SyntheticsGlobalVariableOptions.java | 59 ++++++++++++++- ...theticsGlobalVariableParseTestOptions.java | 60 +++++++++++++++- ...yntheticsGlobalVariableTOTPParameters.java | 59 ++++++++++++++- .../model/SyntheticsGlobalVariableValue.java | 59 ++++++++++++++- ...SyntheticsListGlobalVariablesResponse.java | 59 ++++++++++++++- .../v1/model/SyntheticsListTestsResponse.java | 59 ++++++++++++++- .../client/v1/model/SyntheticsLocation.java | 58 ++++++++++++++- .../client/v1/model/SyntheticsLocations.java | 58 ++++++++++++++- .../v1/model/SyntheticsParsingOptions.java | 58 ++++++++++++++- .../v1/model/SyntheticsPrivateLocation.java | 59 ++++++++++++++- ...heticsPrivateLocationCreationResponse.java | 60 +++++++++++++++- ...ationCreationResponseResultEncryption.java | 61 +++++++++++++++- .../SyntheticsPrivateLocationMetadata.java | 59 ++++++++++++++- .../SyntheticsPrivateLocationSecrets.java | 59 ++++++++++++++- ...sPrivateLocationSecretsAuthentication.java | 61 +++++++++++++++- ...rivateLocationSecretsConfigDecryption.java | 61 +++++++++++++++- .../v1/model/SyntheticsSSLCertificate.java | 59 ++++++++++++++- .../model/SyntheticsSSLCertificateIssuer.java | 59 ++++++++++++++- .../SyntheticsSSLCertificateSubject.java | 59 ++++++++++++++- .../api/client/v1/model/SyntheticsStep.java | 59 ++++++++++++++- .../client/v1/model/SyntheticsStepDetail.java | 59 ++++++++++++++- .../v1/model/SyntheticsStepDetailWarning.java | 59 ++++++++++++++- .../v1/model/SyntheticsTestCiOptions.java | 58 ++++++++++++++- .../client/v1/model/SyntheticsTestConfig.java | 58 ++++++++++++++- .../v1/model/SyntheticsTestDetails.java | 72 ++++++++++++++++++- .../v1/model/SyntheticsTestOptions.java | 59 ++++++++++++++- .../SyntheticsTestOptionsMonitorOptions.java | 59 ++++++++++++++- .../v1/model/SyntheticsTestOptionsRetry.java | 59 ++++++++++++++- .../SyntheticsTestOptionsScheduling.java | 59 ++++++++++++++- ...theticsTestOptionsSchedulingTimeframe.java | 60 +++++++++++++++- .../v1/model/SyntheticsTestRequest.java | 57 ++++++++++++++- .../SyntheticsTestRequestCertificate.java | 59 ++++++++++++++- .../SyntheticsTestRequestCertificateItem.java | 59 ++++++++++++++- .../v1/model/SyntheticsTestRequestProxy.java | 57 ++++++++++++++- .../api/client/v1/model/SyntheticsTiming.java | 59 ++++++++++++++- .../v1/model/SyntheticsTriggerBody.java | 58 ++++++++++++++- .../SyntheticsTriggerCITestLocation.java | 59 ++++++++++++++- .../SyntheticsTriggerCITestRunResult.java | 59 ++++++++++++++- .../SyntheticsTriggerCITestsResponse.java | 59 ++++++++++++++- .../v1/model/SyntheticsTriggerTest.java | 58 ++++++++++++++- ...yntheticsUpdateTestPauseStatusPayload.java | 59 ++++++++++++++- .../v1/model/SyntheticsVariableParser.java | 58 ++++++++++++++- .../v1/model/TableWidgetDefinition.java | 66 ++++++++++++++++- .../client/v1/model/TableWidgetRequest.java | 59 ++++++++++++++- .../api/client/v1/model/TagToHosts.java | 56 ++++++++++++++- .../client/v1/model/TimeseriesBackground.java | 58 ++++++++++++++- .../v1/model/TimeseriesWidgetDefinition.java | 60 +++++++++++++++- .../TimeseriesWidgetExpressionAlias.java | 59 ++++++++++++++- .../v1/model/TimeseriesWidgetRequest.java | 59 ++++++++++++++- .../v1/model/ToplistWidgetDefinition.java | 59 ++++++++++++++- .../client/v1/model/ToplistWidgetRequest.java | 59 ++++++++++++++- .../v1/model/TopologyMapWidgetDefinition.java | 60 +++++++++++++++- .../api/client/v1/model/TopologyQuery.java | 58 ++++++++++++++- .../api/client/v1/model/TopologyRequest.java | 58 ++++++++++++++- .../v1/model/TreeMapWidgetDefinition.java | 59 ++++++++++++++- .../client/v1/model/TreeMapWidgetRequest.java | 58 ++++++++++++++- .../v1/model/UsageAnalyzedLogsHour.java | 58 ++++++++++++++- .../v1/model/UsageAnalyzedLogsResponse.java | 59 ++++++++++++++- .../model/UsageAttributionAggregatesBody.java | 59 ++++++++++++++- .../client/v1/model/UsageAttributionBody.java | 57 ++++++++++++++- .../v1/model/UsageAttributionMetadata.java | 58 ++++++++++++++- .../v1/model/UsageAttributionPagination.java | 60 +++++++++++++++- .../v1/model/UsageAttributionResponse.java | 58 ++++++++++++++- .../v1/model/UsageAttributionValues.java | 59 ++++++++++++++- .../client/v1/model/UsageAuditLogsHour.java | 58 ++++++++++++++- .../v1/model/UsageAuditLogsResponse.java | 58 ++++++++++++++- .../v1/model/UsageBillableSummaryBody.java | 59 ++++++++++++++- .../v1/model/UsageBillableSummaryHour.java | 67 ++++++++++++++++- .../v1/model/UsageBillableSummaryKeys.java | 59 ++++++++++++++- .../model/UsageBillableSummaryResponse.java | 59 ++++++++++++++- .../v1/model/UsageCIVisibilityHour.java | 59 ++++++++++++++- .../v1/model/UsageCIVisibilityResponse.java | 59 ++++++++++++++- .../api/client/v1/model/UsageCWSHour.java | 59 ++++++++++++++- .../api/client/v1/model/UsageCWSResponse.java | 58 ++++++++++++++- ...ageCloudSecurityPostureManagementHour.java | 61 +++++++++++++++- ...loudSecurityPostureManagementResponse.java | 61 +++++++++++++++- .../model/UsageCustomReportsAttributes.java | 59 ++++++++++++++- .../v1/model/UsageCustomReportsData.java | 58 ++++++++++++++- .../v1/model/UsageCustomReportsMeta.java | 58 ++++++++++++++- .../v1/model/UsageCustomReportsPage.java | 58 ++++++++++++++- .../v1/model/UsageCustomReportsResponse.java | 59 ++++++++++++++- .../api/client/v1/model/UsageDBMHour.java | 59 ++++++++++++++- .../api/client/v1/model/UsageDBMResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UsageFargateHour.java | 59 ++++++++++++++- .../client/v1/model/UsageFargateResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UsageHostHour.java | 59 ++++++++++++++- .../client/v1/model/UsageHostsResponse.java | 58 ++++++++++++++- .../v1/model/UsageIncidentManagementHour.java | 59 ++++++++++++++- .../UsageIncidentManagementResponse.java | 59 ++++++++++++++- .../v1/model/UsageIndexedSpansHour.java | 58 ++++++++++++++- .../v1/model/UsageIndexedSpansResponse.java | 59 ++++++++++++++- .../v1/model/UsageIngestedSpansHour.java | 58 ++++++++++++++- .../v1/model/UsageIngestedSpansResponse.java | 59 ++++++++++++++- .../api/client/v1/model/UsageIoTHour.java | 58 ++++++++++++++- .../api/client/v1/model/UsageIoTResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UsageLambdaHour.java | 58 ++++++++++++++- .../client/v1/model/UsageLambdaResponse.java | 58 ++++++++++++++- .../client/v1/model/UsageLogsByIndexHour.java | 59 ++++++++++++++- .../v1/model/UsageLogsByIndexResponse.java | 58 ++++++++++++++- .../v1/model/UsageLogsByRetentionHour.java | 59 ++++++++++++++- .../model/UsageLogsByRetentionResponse.java | 59 ++++++++++++++- .../api/client/v1/model/UsageLogsHour.java | 59 ++++++++++++++- .../client/v1/model/UsageLogsResponse.java | 58 ++++++++++++++- .../v1/model/UsageNetworkFlowsHour.java | 58 ++++++++++++++- .../v1/model/UsageNetworkFlowsResponse.java | 59 ++++++++++++++- .../v1/model/UsageNetworkHostsHour.java | 58 ++++++++++++++- .../v1/model/UsageNetworkHostsResponse.java | 59 ++++++++++++++- .../v1/model/UsageOnlineArchiveHour.java | 58 ++++++++++++++- .../v1/model/UsageOnlineArchiveResponse.java | 59 ++++++++++++++- .../client/v1/model/UsageProfilingHour.java | 59 ++++++++++++++- .../v1/model/UsageProfilingResponse.java | 58 ++++++++++++++- .../client/v1/model/UsageRumSessionsHour.java | 59 ++++++++++++++- .../v1/model/UsageRumSessionsResponse.java | 58 ++++++++++++++- .../client/v1/model/UsageRumUnitsHour.java | 59 ++++++++++++++- .../v1/model/UsageRumUnitsResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UsageSDSHour.java | 59 ++++++++++++++- .../api/client/v1/model/UsageSDSResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UsageSNMPHour.java | 58 ++++++++++++++- .../client/v1/model/UsageSNMPResponse.java | 58 ++++++++++++++- ...UsageSpecifiedCustomReportsAttributes.java | 59 ++++++++++++++- .../UsageSpecifiedCustomReportsData.java | 59 ++++++++++++++- .../UsageSpecifiedCustomReportsMeta.java | 59 ++++++++++++++- .../UsageSpecifiedCustomReportsPage.java | 59 ++++++++++++++- .../UsageSpecifiedCustomReportsResponse.java | 59 ++++++++++++++- .../api/client/v1/model/UsageSummaryDate.java | 59 ++++++++++++++- .../client/v1/model/UsageSummaryDateOrg.java | 59 ++++++++++++++- .../client/v1/model/UsageSummaryResponse.java | 59 ++++++++++++++- .../v1/model/UsageSyntheticsAPIHour.java | 58 ++++++++++++++- .../v1/model/UsageSyntheticsAPIResponse.java | 59 ++++++++++++++- .../v1/model/UsageSyntheticsBrowserHour.java | 59 ++++++++++++++- .../model/UsageSyntheticsBrowserResponse.java | 59 ++++++++++++++- .../client/v1/model/UsageSyntheticsHour.java | 58 ++++++++++++++- .../v1/model/UsageSyntheticsResponse.java | 58 ++++++++++++++- .../client/v1/model/UsageTimeseriesHour.java | 59 ++++++++++++++- .../v1/model/UsageTimeseriesResponse.java | 58 ++++++++++++++- .../v1/model/UsageTopAvgMetricsHour.java | 59 ++++++++++++++- .../v1/model/UsageTopAvgMetricsMetadata.java | 59 ++++++++++++++- .../model/UsageTopAvgMetricsPagination.java | 59 ++++++++++++++- .../v1/model/UsageTopAvgMetricsResponse.java | 59 ++++++++++++++- .../com/datadog/api/client/v1/model/User.java | 59 ++++++++++++++- .../client/v1/model/UserDisableResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UserListResponse.java | 58 ++++++++++++++- .../api/client/v1/model/UserResponse.java | 58 ++++++++++++++- .../client/v1/model/WebhooksIntegration.java | 58 ++++++++++++++- .../WebhooksIntegrationCustomVariable.java | 59 ++++++++++++++- ...ooksIntegrationCustomVariableResponse.java | 60 +++++++++++++++- ...ntegrationCustomVariableUpdateRequest.java | 61 +++++++++++++++- .../WebhooksIntegrationUpdateRequest.java | 59 ++++++++++++++- .../datadog/api/client/v1/model/Widget.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetAxis.java | 58 ++++++++++++++- .../v1/model/WidgetConditionalFormat.java | 59 ++++++++++++++- .../api/client/v1/model/WidgetCustomLink.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetEvent.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetFieldSort.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetFormula.java | 59 ++++++++++++++- .../client/v1/model/WidgetFormulaLimit.java | 58 ++++++++++++++- .../client/v1/model/WidgetFormulaStyle.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetLayout.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetMarker.java | 58 ++++++++++++++- .../client/v1/model/WidgetRequestStyle.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetStyle.java | 58 ++++++++++++++- .../api/client/v1/model/WidgetTime.java | 58 ++++++++++++++- .../api/client/v2/model/APIErrorResponse.java | 58 ++++++++++++++- .../v2/model/APIKeyCreateAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/APIKeyCreateData.java | 58 ++++++++++++++- .../client/v2/model/APIKeyCreateRequest.java | 58 ++++++++++++++- .../client/v2/model/APIKeyRelationships.java | 58 ++++++++++++++- .../api/client/v2/model/APIKeyResponse.java | 58 ++++++++++++++- .../v2/model/APIKeyUpdateAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/APIKeyUpdateData.java | 58 ++++++++++++++- .../client/v2/model/APIKeyUpdateRequest.java | 58 ++++++++++++++- .../api/client/v2/model/APIKeysResponse.java | 58 ++++++++++++++- .../model/ApplicationKeyCreateAttributes.java | 59 ++++++++++++++- .../v2/model/ApplicationKeyCreateData.java | 58 ++++++++++++++- .../v2/model/ApplicationKeyCreateRequest.java | 59 ++++++++++++++- .../v2/model/ApplicationKeyRelationships.java | 59 ++++++++++++++- .../v2/model/ApplicationKeyResponse.java | 58 ++++++++++++++- .../model/ApplicationKeyUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/ApplicationKeyUpdateData.java | 58 ++++++++++++++- .../v2/model/ApplicationKeyUpdateRequest.java | 59 ++++++++++++++- .../api/client/v2/model/AuditLogsEvent.java | 58 ++++++++++++++- .../v2/model/AuditLogsEventAttributes.java | 56 ++++++++++++++- .../v2/model/AuditLogsEventsResponse.java | 58 ++++++++++++++- .../client/v2/model/AuditLogsQueryFilter.java | 58 ++++++++++++++- .../v2/model/AuditLogsQueryOptions.java | 58 ++++++++++++++- .../v2/model/AuditLogsQueryPageOptions.java | 59 ++++++++++++++- .../v2/model/AuditLogsResponseLinks.java | 58 ++++++++++++++- .../v2/model/AuditLogsResponseMetadata.java | 59 ++++++++++++++- .../v2/model/AuditLogsResponsePage.java | 58 ++++++++++++++- .../model/AuditLogsSearchEventsRequest.java | 59 ++++++++++++++- .../api/client/v2/model/AuditLogsWarning.java | 58 ++++++++++++++- .../api/client/v2/model/AuthNMapping.java | 58 ++++++++++++++- .../v2/model/AuthNMappingAttributes.java | 63 +++++++++++++++- .../model/AuthNMappingCreateAttributes.java | 59 ++++++++++++++- .../v2/model/AuthNMappingCreateData.java | 58 ++++++++++++++- .../AuthNMappingCreateRelationships.java | 59 ++++++++++++++- .../v2/model/AuthNMappingCreateRequest.java | 59 ++++++++++++++- .../v2/model/AuthNMappingRelationships.java | 59 ++++++++++++++- .../client/v2/model/AuthNMappingResponse.java | 58 ++++++++++++++- .../model/AuthNMappingUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/AuthNMappingUpdateData.java | 58 ++++++++++++++- .../AuthNMappingUpdateRelationships.java | 59 ++++++++++++++- .../v2/model/AuthNMappingUpdateRequest.java | 59 ++++++++++++++- .../v2/model/AuthNMappingsResponse.java | 58 ++++++++++++++- .../CIAppAggregateBucketValueTimeseries.java | 55 +++++++++++++- ...ppAggregateBucketValueTimeseriesPoint.java | 60 +++++++++++++++- .../client/v2/model/CIAppAggregateSort.java | 58 ++++++++++++++- .../api/client/v2/model/CIAppCIError.java | 58 ++++++++++++++- .../api/client/v2/model/CIAppCompute.java | 58 ++++++++++++++- .../CIAppCreatePipelineEventRequest.java | 59 ++++++++++++++- ...pCreatePipelineEventRequestAttributes.java | 60 +++++++++++++++- .../CIAppCreatePipelineEventRequestData.java | 59 ++++++++++++++- .../client/v2/model/CIAppEventAttributes.java | 56 ++++++++++++++- .../api/client/v2/model/CIAppGitInfo.java | 59 ++++++++++++++- .../v2/model/CIAppGroupByHistogram.java | 58 ++++++++++++++- .../api/client/v2/model/CIAppHostInfo.java | 58 ++++++++++++++- .../client/v2/model/CIAppPipelineEvent.java | 58 ++++++++++++++- .../v2/model/CIAppPipelineEventJob.java | 57 ++++++++++++++- .../CIAppPipelineEventParentPipeline.java | 59 ++++++++++++++- .../v2/model/CIAppPipelineEventPipeline.java | 58 ++++++++++++++- .../CIAppPipelineEventPreviousPipeline.java | 59 ++++++++++++++- .../v2/model/CIAppPipelineEventStage.java | 57 ++++++++++++++- .../v2/model/CIAppPipelineEventStep.java | 57 ++++++++++++++- .../v2/model/CIAppPipelineEventsRequest.java | 59 ++++++++++++++- .../v2/model/CIAppPipelineEventsResponse.java | 59 ++++++++++++++- .../model/CIAppPipelinesAggregateRequest.java | 59 ++++++++++++++- ...ppPipelinesAggregationBucketsResponse.java | 60 +++++++++++++++- ...ppPipelinesAnalyticsAggregateResponse.java | 60 +++++++++++++++- .../model/CIAppPipelinesBucketResponse.java | 57 ++++++++++++++- .../v2/model/CIAppPipelinesGroupBy.java | 58 ++++++++++++++- .../v2/model/CIAppPipelinesQueryFilter.java | 59 ++++++++++++++- .../client/v2/model/CIAppQueryOptions.java | 58 ++++++++++++++- .../v2/model/CIAppQueryPageOptions.java | 58 ++++++++++++++- .../client/v2/model/CIAppResponseLinks.java | 58 ++++++++++++++- .../v2/model/CIAppResponseMetadata.java | 58 ++++++++++++++- .../CIAppResponseMetadataWithPagination.java | 59 ++++++++++++++- .../client/v2/model/CIAppResponsePage.java | 58 ++++++++++++++- .../api/client/v2/model/CIAppTestEvent.java | 58 ++++++++++++++- .../v2/model/CIAppTestEventsRequest.java | 58 ++++++++++++++- .../v2/model/CIAppTestEventsResponse.java | 58 ++++++++++++++- .../v2/model/CIAppTestsAggregateRequest.java | 59 ++++++++++++++- .../CIAppTestsAggregationBucketsResponse.java | 59 ++++++++++++++- .../CIAppTestsAnalyticsAggregateResponse.java | 59 ++++++++++++++- .../v2/model/CIAppTestsBucketResponse.java | 56 ++++++++++++++- .../client/v2/model/CIAppTestsGroupBy.java | 58 ++++++++++++++- .../v2/model/CIAppTestsQueryFilter.java | 58 ++++++++++++++- .../api/client/v2/model/CIAppUserInfo.java | 58 ++++++++++++++- .../api/client/v2/model/CIAppWarning.java | 58 ++++++++++++++- .../client/v2/model/ChargebackBreakdown.java | 58 ++++++++++++++- ...oudConfigurationComplianceRuleOptions.java | 60 +++++++++++++++- .../v2/model/CloudConfigurationRegoRule.java | 59 ++++++++++++++- .../CloudConfigurationRuleCaseCreate.java | 59 ++++++++++++++- ...figurationRuleComplianceSignalOptions.java | 62 +++++++++++++++- .../CloudConfigurationRuleCreatePayload.java | 67 ++++++++++++++++- .../model/CloudConfigurationRuleOptions.java | 59 ++++++++++++++- ...udWorkloadSecurityAgentRuleAttributes.java | 61 +++++++++++++++- ...loadSecurityAgentRuleCreateAttributes.java | 61 +++++++++++++++- ...udWorkloadSecurityAgentRuleCreateData.java | 60 +++++++++++++++- ...orkloadSecurityAgentRuleCreateRequest.java | 61 +++++++++++++++- ...oadSecurityAgentRuleCreatorAttributes.java | 61 +++++++++++++++- .../CloudWorkloadSecurityAgentRuleData.java | 59 ++++++++++++++- ...loudWorkloadSecurityAgentRuleResponse.java | 59 ++++++++++++++- ...loadSecurityAgentRuleUpdateAttributes.java | 61 +++++++++++++++- ...udWorkloadSecurityAgentRuleUpdateData.java | 60 +++++++++++++++- ...orkloadSecurityAgentRuleUpdateRequest.java | 61 +++++++++++++++- ...oadSecurityAgentRuleUpdaterAttributes.java | 61 +++++++++++++++- ...orkloadSecurityAgentRulesListResponse.java | 61 +++++++++++++++- .../model/CloudflareAccountCreateRequest.java | 59 ++++++++++++++- ...udflareAccountCreateRequestAttributes.java | 60 +++++++++++++++- .../CloudflareAccountCreateRequestData.java | 59 ++++++++++++++- .../v2/model/CloudflareAccountResponse.java | 59 ++++++++++++++- .../CloudflareAccountResponseAttributes.java | 59 ++++++++++++++- .../model/CloudflareAccountResponseData.java | 59 ++++++++++++++- .../model/CloudflareAccountUpdateRequest.java | 59 ++++++++++++++- ...udflareAccountUpdateRequestAttributes.java | 60 +++++++++++++++- .../CloudflareAccountUpdateRequestData.java | 59 ++++++++++++++- .../v2/model/CloudflareAccountsResponse.java | 59 ++++++++++++++- .../model/ConfluentAccountCreateRequest.java | 59 ++++++++++++++- ...nfluentAccountCreateRequestAttributes.java | 60 +++++++++++++++- .../ConfluentAccountCreateRequestData.java | 59 ++++++++++++++- .../ConfluentAccountResourceAttributes.java | 59 ++++++++++++++- .../v2/model/ConfluentAccountResponse.java | 58 ++++++++++++++- .../ConfluentAccountResponseAttributes.java | 59 ++++++++++++++- .../model/ConfluentAccountResponseData.java | 59 ++++++++++++++- .../model/ConfluentAccountUpdateRequest.java | 59 ++++++++++++++- ...nfluentAccountUpdateRequestAttributes.java | 60 +++++++++++++++- .../ConfluentAccountUpdateRequestData.java | 59 ++++++++++++++- .../v2/model/ConfluentAccountsResponse.java | 59 ++++++++++++++- .../v2/model/ConfluentResourceRequest.java | 58 ++++++++++++++- .../ConfluentResourceRequestAttributes.java | 59 ++++++++++++++- .../model/ConfluentResourceRequestData.java | 59 ++++++++++++++- .../v2/model/ConfluentResourceResponse.java | 59 ++++++++++++++- .../ConfluentResourceResponseAttributes.java | 59 ++++++++++++++- .../model/ConfluentResourceResponseData.java | 59 ++++++++++++++- .../v2/model/ConfluentResourcesResponse.java | 59 ++++++++++++++- .../api/client/v2/model/CostByOrg.java | 58 ++++++++++++++- .../client/v2/model/CostByOrgAttributes.java | 58 ++++++++++++++- .../client/v2/model/CostByOrgResponse.java | 58 ++++++++++++++- .../datadog/api/client/v2/model/Creator.java | 58 ++++++++++++++- .../model/DashboardListAddItemsRequest.java | 59 ++++++++++++++- .../model/DashboardListAddItemsResponse.java | 59 ++++++++++++++- .../DashboardListDeleteItemsRequest.java | 59 ++++++++++++++- .../DashboardListDeleteItemsResponse.java | 60 +++++++++++++++- .../client/v2/model/DashboardListItem.java | 59 ++++++++++++++- .../v2/model/DashboardListItemRequest.java | 58 ++++++++++++++- .../v2/model/DashboardListItemResponse.java | 59 ++++++++++++++- .../client/v2/model/DashboardListItems.java | 58 ++++++++++++++- .../DashboardListUpdateItemsRequest.java | 59 ++++++++++++++- .../DashboardListUpdateItemsResponse.java | 59 ++++++++++++++- .../api/client/v2/model/DataScalarColumn.java | 58 ++++++++++++++- .../api/client/v2/model/DetailedFinding.java | 58 ++++++++++++++- .../v2/model/DetailedFindingAttributes.java | 60 +++++++++++++++- .../datadog/api/client/v2/model/Event.java | 58 ++++++++++++++- .../api/client/v2/model/EventAttributes.java | 59 ++++++++++++++- .../api/client/v2/model/EventResponse.java | 58 ++++++++++++++- .../v2/model/EventResponseAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/EventsCompute.java | 58 ++++++++++++++- .../api/client/v2/model/EventsGroupBy.java | 58 ++++++++++++++- .../client/v2/model/EventsGroupBySort.java | 58 ++++++++++++++- .../client/v2/model/EventsListRequest.java | 58 ++++++++++++++- .../client/v2/model/EventsListResponse.java | 58 ++++++++++++++- .../v2/model/EventsListResponseLinks.java | 58 ++++++++++++++- .../client/v2/model/EventsQueryFilter.java | 58 ++++++++++++++- .../client/v2/model/EventsQueryOptions.java | 58 ++++++++++++++- .../client/v2/model/EventsRequestPage.java | 58 ++++++++++++++- .../v2/model/EventsResponseMetadata.java | 58 ++++++++++++++- .../v2/model/EventsResponseMetadataPage.java | 59 ++++++++++++++- .../client/v2/model/EventsScalarQuery.java | 58 ++++++++++++++- .../api/client/v2/model/EventsSearch.java | 58 ++++++++++++++- .../v2/model/EventsTimeseriesQuery.java | 58 ++++++++++++++- .../api/client/v2/model/EventsWarning.java | 58 ++++++++++++++- .../model/FastlyAccounResponseAttributes.java | 59 ++++++++++++++- .../v2/model/FastlyAccountCreateRequest.java | 59 ++++++++++++++- .../FastlyAccountCreateRequestAttributes.java | 59 ++++++++++++++- .../model/FastlyAccountCreateRequestData.java | 59 ++++++++++++++- .../v2/model/FastlyAccountResponse.java | 58 ++++++++++++++- .../v2/model/FastlyAccountResponseData.java | 59 ++++++++++++++- .../v2/model/FastlyAccountUpdateRequest.java | 59 ++++++++++++++- .../FastlyAccountUpdateRequestAttributes.java | 59 ++++++++++++++- .../model/FastlyAccountUpdateRequestData.java | 59 ++++++++++++++- .../v2/model/FastlyAccountsResponse.java | 58 ++++++++++++++- .../api/client/v2/model/FastlyService.java | 58 ++++++++++++++- .../v2/model/FastlyServiceAttributes.java | 58 ++++++++++++++- .../client/v2/model/FastlyServiceData.java | 58 ++++++++++++++- .../client/v2/model/FastlyServiceRequest.java | 58 ++++++++++++++- .../v2/model/FastlyServiceResponse.java | 58 ++++++++++++++- .../v2/model/FastlyServicesResponse.java | 58 ++++++++++++++- .../datadog/api/client/v2/model/Finding.java | 58 ++++++++++++++- .../client/v2/model/FindingAttributes.java | 59 ++++++++++++++- .../api/client/v2/model/FormulaLimit.java | 58 ++++++++++++++- .../api/client/v2/model/FullAPIKey.java | 58 ++++++++++++++- .../client/v2/model/FullAPIKeyAttributes.java | 58 ++++++++++++++- .../client/v2/model/FullApplicationKey.java | 58 ++++++++++++++- .../model/FullApplicationKeyAttributes.java | 59 ++++++++++++++- .../v2/model/GCPSTSDelegateAccount.java | 58 ++++++++++++++- .../GCPSTSDelegateAccountAttributes.java | 59 ++++++++++++++- .../model/GCPSTSDelegateAccountResponse.java | 59 ++++++++++++++- .../client/v2/model/GCPSTSServiceAccount.java | 58 ++++++++++++++- .../model/GCPSTSServiceAccountAttributes.java | 59 ++++++++++++++- .../GCPSTSServiceAccountCreateRequest.java | 59 ++++++++++++++- .../v2/model/GCPSTSServiceAccountData.java | 58 ++++++++++++++- .../model/GCPSTSServiceAccountResponse.java | 59 ++++++++++++++- .../GCPSTSServiceAccountUpdateRequest.java | 59 ++++++++++++++- ...GCPSTSServiceAccountUpdateRequestData.java | 59 ++++++++++++++- .../model/GCPSTSServiceAccountsResponse.java | 59 ++++++++++++++- .../v2/model/GCPServiceAccountMeta.java | 58 ++++++++++++++- .../client/v2/model/GetFindingResponse.java | 58 ++++++++++++++- .../client/v2/model/GroupScalarColumn.java | 58 ++++++++++++++- .../api/client/v2/model/HTTPCIAppError.java | 58 ++++++++++++++- .../api/client/v2/model/HTTPCIAppErrors.java | 58 ++++++++++++++- .../api/client/v2/model/HTTPLogError.java | 58 ++++++++++++++- .../api/client/v2/model/HTTPLogErrors.java | 58 ++++++++++++++- .../api/client/v2/model/HourlyUsage.java | 58 ++++++++++++++- .../v2/model/HourlyUsageAttributes.java | 59 ++++++++++++++- .../v2/model/HourlyUsageMeasurement.java | 58 ++++++++++++++- .../client/v2/model/HourlyUsageMetadata.java | 58 ++++++++++++++- .../v2/model/HourlyUsagePagination.java | 58 ++++++++++++++- .../client/v2/model/HourlyUsageResponse.java | 58 ++++++++++++++- .../v2/model/IPAllowlistAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/IPAllowlistData.java | 58 ++++++++++++++- .../api/client/v2/model/IPAllowlistEntry.java | 58 ++++++++++++++- .../v2/model/IPAllowlistEntryAttributes.java | 59 ++++++++++++++- .../client/v2/model/IPAllowlistEntryData.java | 58 ++++++++++++++- .../client/v2/model/IPAllowlistResponse.java | 58 ++++++++++++++- .../v2/model/IPAllowlistUpdateRequest.java | 58 ++++++++++++++- .../client/v2/model/IdPMetadataFormData.java | 58 ++++++++++++++- .../v2/model/IncidentAttachmentData.java | 58 ++++++++++++++- .../IncidentAttachmentLinkAttributes.java | 59 ++++++++++++++- ...achmentLinkAttributesAttachmentObject.java | 61 +++++++++++++++- ...ncidentAttachmentPostmortemAttributes.java | 59 ++++++++++++++- .../IncidentAttachmentRelationships.java | 59 ++++++++++++++- .../model/IncidentAttachmentUpdateData.java | 59 ++++++++++++++- .../IncidentAttachmentUpdateRequest.java | 59 ++++++++++++++- .../IncidentAttachmentUpdateResponse.java | 59 ++++++++++++++- ...sPostmortemAttributesAttachmentObject.java | 60 +++++++++++++++- .../v2/model/IncidentAttachmentsResponse.java | 59 ++++++++++++++- .../v2/model/IncidentCreateAttributes.java | 62 +++++++++++++++- .../client/v2/model/IncidentCreateData.java | 58 ++++++++++++++- .../v2/model/IncidentCreateRelationships.java | 59 ++++++++++++++- .../v2/model/IncidentCreateRequest.java | 58 ++++++++++++++- .../IncidentFieldAttributesMultipleValue.java | 59 ++++++++++++++- .../IncidentFieldAttributesSingleValue.java | 59 ++++++++++++++- ...IncidentIntegrationMetadataAttributes.java | 59 ++++++++++++++- ...IncidentIntegrationMetadataCreateData.java | 59 ++++++++++++++- ...identIntegrationMetadataCreateRequest.java | 60 +++++++++++++++- ...cidentIntegrationMetadataListResponse.java | 60 +++++++++++++++- .../IncidentIntegrationMetadataPatchData.java | 59 ++++++++++++++- ...cidentIntegrationMetadataPatchRequest.java | 60 +++++++++++++++- .../IncidentIntegrationMetadataResponse.java | 59 ++++++++++++++- ...cidentIntegrationMetadataResponseData.java | 60 +++++++++++++++- .../v2/model/IncidentNotificationHandle.java | 59 ++++++++++++++- .../api/client/v2/model/IncidentResponse.java | 58 ++++++++++++++- .../v2/model/IncidentResponseAttributes.java | 58 ++++++++++++++- .../client/v2/model/IncidentResponseData.java | 58 ++++++++++++++- .../client/v2/model/IncidentResponseMeta.java | 58 ++++++++++++++- .../model/IncidentResponseMetaPagination.java | 59 ++++++++++++++- .../model/IncidentResponseRelationships.java | 63 +++++++++++++++- .../v2/model/IncidentSearchResponse.java | 58 ++++++++++++++- .../IncidentSearchResponseAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentSearchResponseData.java | 59 ++++++++++++++- .../IncidentSearchResponseFacetsData.java | 60 +++++++++++++++- .../IncidentSearchResponseFieldFacetData.java | 59 ++++++++++++++- .../IncidentSearchResponseIncidentsData.java | 59 ++++++++++++++- .../v2/model/IncidentSearchResponseMeta.java | 59 ++++++++++++++- ...ncidentSearchResponseNumericFacetData.java | 59 ++++++++++++++- ...rchResponseNumericFacetDataAggregates.java | 61 +++++++++++++++- ...tSearchResponsePropertyFieldFacetData.java | 61 +++++++++++++++- .../IncidentSearchResponseUserFacetData.java | 59 ++++++++++++++- .../IncidentServiceCreateAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentServiceCreateData.java | 59 ++++++++++++++- .../model/IncidentServiceCreateRequest.java | 59 ++++++++++++++- .../model/IncidentServiceRelationships.java | 59 ++++++++++++++- .../v2/model/IncidentServiceResponse.java | 58 ++++++++++++++- .../IncidentServiceResponseAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentServiceResponseData.java | 59 ++++++++++++++- .../IncidentServiceUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentServiceUpdateData.java | 59 ++++++++++++++- .../model/IncidentServiceUpdateRequest.java | 59 ++++++++++++++- .../v2/model/IncidentServicesResponse.java | 58 ++++++++++++++- .../model/IncidentTeamCreateAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentTeamCreateData.java | 58 ++++++++++++++- .../v2/model/IncidentTeamCreateRequest.java | 59 ++++++++++++++- .../v2/model/IncidentTeamRelationships.java | 59 ++++++++++++++- .../client/v2/model/IncidentTeamResponse.java | 58 ++++++++++++++- .../model/IncidentTeamResponseAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentTeamResponseData.java | 58 ++++++++++++++- .../model/IncidentTeamUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/IncidentTeamUpdateData.java | 58 ++++++++++++++- .../v2/model/IncidentTeamUpdateRequest.java | 59 ++++++++++++++- .../v2/model/IncidentTeamsResponse.java | 58 ++++++++++++++- ...tTimelineCellMarkdownCreateAttributes.java | 61 +++++++++++++++- ...neCellMarkdownCreateAttributesContent.java | 62 +++++++++++++++- .../model/IncidentTodoAnonymousAssignee.java | 59 ++++++++++++++- .../v2/model/IncidentTodoAttributes.java | 58 ++++++++++++++- .../v2/model/IncidentTodoCreateData.java | 58 ++++++++++++++- .../v2/model/IncidentTodoCreateRequest.java | 59 ++++++++++++++- .../v2/model/IncidentTodoListResponse.java | 58 ++++++++++++++- .../v2/model/IncidentTodoPatchData.java | 58 ++++++++++++++- .../v2/model/IncidentTodoPatchRequest.java | 58 ++++++++++++++- .../client/v2/model/IncidentTodoResponse.java | 58 ++++++++++++++- .../v2/model/IncidentTodoResponseData.java | 58 ++++++++++++++- .../v2/model/IncidentUpdateAttributes.java | 57 ++++++++++++++- .../client/v2/model/IncidentUpdateData.java | 58 ++++++++++++++- .../v2/model/IncidentUpdateRelationships.java | 59 ++++++++++++++- .../v2/model/IncidentUpdateRequest.java | 58 ++++++++++++++- .../client/v2/model/IncidentsResponse.java | 58 ++++++++++++++- .../v2/model/IntakePayloadAccepted.java | 58 ++++++++++++++- .../api/client/v2/model/JSONAPIErrorItem.java | 58 ++++++++++++++- .../client/v2/model/JSONAPIErrorResponse.java | 58 ++++++++++++++- .../v2/model/JiraIntegrationMetadata.java | 58 ++++++++++++++- .../JiraIntegrationMetadataIssuesItem.java | 60 +++++++++++++++- .../v2/model/ListApplicationKeysResponse.java | 59 ++++++++++++++- .../client/v2/model/ListFindingsResponse.java | 58 ++++++++++++++- .../com/datadog/api/client/v2/model/Log.java | 58 ++++++++++++++- .../api/client/v2/model/LogAttributes.java | 57 ++++++++++++++- .../client/v2/model/LogsAggregateBucket.java | 56 ++++++++++++++- .../LogsAggregateBucketValueTimeseries.java | 55 +++++++++++++- ...gsAggregateBucketValueTimeseriesPoint.java | 60 +++++++++++++++- .../client/v2/model/LogsAggregateRequest.java | 58 ++++++++++++++- .../v2/model/LogsAggregateRequestPage.java | 58 ++++++++++++++- .../v2/model/LogsAggregateResponse.java | 58 ++++++++++++++- .../v2/model/LogsAggregateResponseData.java | 59 ++++++++++++++- .../client/v2/model/LogsAggregateSort.java | 58 ++++++++++++++- .../api/client/v2/model/LogsArchive.java | 58 ++++++++++++++- .../v2/model/LogsArchiveAttributes.java | 65 ++++++++++++++++- .../v2/model/LogsArchiveCreateRequest.java | 58 ++++++++++++++- .../LogsArchiveCreateRequestAttributes.java | 65 ++++++++++++++++- .../LogsArchiveCreateRequestDefinition.java | 59 ++++++++++++++- .../v2/model/LogsArchiveDefinition.java | 58 ++++++++++++++- .../v2/model/LogsArchiveDestinationAzure.java | 60 +++++++++++++++- .../v2/model/LogsArchiveDestinationGCS.java | 59 ++++++++++++++- .../v2/model/LogsArchiveDestinationS3.java | 58 ++++++++++++++- .../v2/model/LogsArchiveIntegrationAzure.java | 59 ++++++++++++++- .../v2/model/LogsArchiveIntegrationGCS.java | 59 ++++++++++++++- .../v2/model/LogsArchiveIntegrationS3.java | 58 ++++++++++++++- .../api/client/v2/model/LogsArchiveOrder.java | 58 ++++++++++++++- .../v2/model/LogsArchiveOrderAttributes.java | 59 ++++++++++++++- .../v2/model/LogsArchiveOrderDefinition.java | 59 ++++++++++++++- .../api/client/v2/model/LogsArchives.java | 58 ++++++++++++++- .../api/client/v2/model/LogsCompute.java | 58 ++++++++++++++- .../api/client/v2/model/LogsGroupBy.java | 58 ++++++++++++++- .../client/v2/model/LogsGroupByHistogram.java | 58 ++++++++++++++- .../api/client/v2/model/LogsListRequest.java | 58 ++++++++++++++- .../client/v2/model/LogsListRequestPage.java | 58 ++++++++++++++- .../api/client/v2/model/LogsListResponse.java | 58 ++++++++++++++- .../v2/model/LogsListResponseLinks.java | 58 ++++++++++++++- .../client/v2/model/LogsMetricCompute.java | 58 ++++++++++++++- .../v2/model/LogsMetricCreateAttributes.java | 59 ++++++++++++++- .../client/v2/model/LogsMetricCreateData.java | 58 ++++++++++++++- .../v2/model/LogsMetricCreateRequest.java | 58 ++++++++++++++- .../api/client/v2/model/LogsMetricFilter.java | 58 ++++++++++++++- .../client/v2/model/LogsMetricGroupBy.java | 58 ++++++++++++++- .../client/v2/model/LogsMetricResponse.java | 58 ++++++++++++++- .../model/LogsMetricResponseAttributes.java | 59 ++++++++++++++- .../v2/model/LogsMetricResponseCompute.java | 59 ++++++++++++++- .../v2/model/LogsMetricResponseData.java | 58 ++++++++++++++- .../v2/model/LogsMetricResponseFilter.java | 58 ++++++++++++++- .../v2/model/LogsMetricResponseGroupBy.java | 59 ++++++++++++++- .../v2/model/LogsMetricUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/LogsMetricUpdateCompute.java | 58 ++++++++++++++- .../client/v2/model/LogsMetricUpdateData.java | 58 ++++++++++++++- .../v2/model/LogsMetricUpdateRequest.java | 58 ++++++++++++++- .../client/v2/model/LogsMetricsResponse.java | 58 ++++++++++++++- .../api/client/v2/model/LogsQueryFilter.java | 58 ++++++++++++++- .../api/client/v2/model/LogsQueryOptions.java | 58 ++++++++++++++- .../client/v2/model/LogsResponseMetadata.java | 58 ++++++++++++++- .../v2/model/LogsResponseMetadataPage.java | 58 ++++++++++++++- .../api/client/v2/model/LogsWarning.java | 58 ++++++++++++++- .../datadog/api/client/v2/model/Metric.java | 59 ++++++++++++++- .../api/client/v2/model/MetricAllTags.java | 58 ++++++++++++++- .../v2/model/MetricAllTagsAttributes.java | 58 ++++++++++++++- .../v2/model/MetricAllTagsResponse.java | 58 ++++++++++++++- .../v2/model/MetricBulkTagConfigCreate.java | 59 ++++++++++++++- .../MetricBulkTagConfigCreateAttributes.java | 59 ++++++++++++++- .../MetricBulkTagConfigCreateRequest.java | 59 ++++++++++++++- .../v2/model/MetricBulkTagConfigDelete.java | 59 ++++++++++++++- .../MetricBulkTagConfigDeleteAttributes.java | 59 ++++++++++++++- .../MetricBulkTagConfigDeleteRequest.java | 59 ++++++++++++++- .../v2/model/MetricBulkTagConfigResponse.java | 59 ++++++++++++++- .../v2/model/MetricBulkTagConfigStatus.java | 59 ++++++++++++++- .../MetricBulkTagConfigStatusAttributes.java | 59 ++++++++++++++- .../v2/model/MetricCustomAggregation.java | 58 ++++++++++++++- .../client/v2/model/MetricDistinctVolume.java | 58 ++++++++++++++- .../model/MetricDistinctVolumeAttributes.java | 59 ++++++++++++++- .../api/client/v2/model/MetricEstimate.java | 58 ++++++++++++++- .../v2/model/MetricEstimateAttributes.java | 58 ++++++++++++++- .../v2/model/MetricEstimateResponse.java | 58 ++++++++++++++- .../v2/model/MetricIngestedIndexedVolume.java | 59 ++++++++++++++- ...MetricIngestedIndexedVolumeAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/MetricMetadata.java | 58 ++++++++++++++- .../api/client/v2/model/MetricOrigin.java | 58 ++++++++++++++- .../api/client/v2/model/MetricPayload.java | 58 ++++++++++++++- .../api/client/v2/model/MetricPoint.java | 58 ++++++++++++++- .../api/client/v2/model/MetricResource.java | 58 ++++++++++++++- .../api/client/v2/model/MetricSeries.java | 67 ++++++++++++++++- .../MetricSuggestedTagsAndAggregations.java | 59 ++++++++++++++- ...cSuggestedTagsAndAggregationsResponse.java | 61 +++++++++++++++- .../model/MetricSuggestedTagsAttributes.java | 59 ++++++++++++++- .../v2/model/MetricTagConfiguration.java | 58 ++++++++++++++- .../MetricTagConfigurationAttributes.java | 66 ++++++++++++++++- ...etricTagConfigurationCreateAttributes.java | 59 ++++++++++++++- .../MetricTagConfigurationCreateData.java | 59 ++++++++++++++- .../MetricTagConfigurationCreateRequest.java | 59 ++++++++++++++- .../model/MetricTagConfigurationResponse.java | 59 ++++++++++++++- ...etricTagConfigurationUpdateAttributes.java | 59 ++++++++++++++- .../MetricTagConfigurationUpdateData.java | 59 ++++++++++++++- .../MetricTagConfigurationUpdateRequest.java | 59 ++++++++++++++- .../v2/model/MetricVolumesResponse.java | 58 ++++++++++++++- ...icsAndMetricTagConfigurationsResponse.java | 60 +++++++++++++++- .../client/v2/model/MetricsScalarQuery.java | 58 ++++++++++++++- .../v2/model/MetricsTimeseriesQuery.java | 58 ++++++++++++++- ...torConfigPolicyAttributeCreateRequest.java | 60 +++++++++++++++- ...nitorConfigPolicyAttributeEditRequest.java | 60 +++++++++++++++- .../MonitorConfigPolicyAttributeResponse.java | 59 ++++++++++++++- .../model/MonitorConfigPolicyCreateData.java | 59 ++++++++++++++- .../MonitorConfigPolicyCreateRequest.java | 59 ++++++++++++++- .../v2/model/MonitorConfigPolicyEditData.java | 59 ++++++++++++++- .../model/MonitorConfigPolicyEditRequest.java | 59 ++++++++++++++- .../MonitorConfigPolicyListResponse.java | 59 ++++++++++++++- .../v2/model/MonitorConfigPolicyResponse.java | 59 ++++++++++++++- .../MonitorConfigPolicyResponseData.java | 59 ++++++++++++++- .../model/MonitorConfigPolicyTagPolicy.java | 59 ++++++++++++++- ...torConfigPolicyTagPolicyCreateRequest.java | 60 +++++++++++++++- .../api/client/v2/model/MonitorType.java | 59 ++++++++++++++- .../client/v2/model/MuteFindingRequest.java | 58 ++++++++++++++- .../v2/model/MuteFindingRequestData.java | 58 ++++++++++++++- .../client/v2/model/MuteFindingResponse.java | 58 ++++++++++++++- .../model/MuteFindingResponseAttributes.java | 60 +++++++++++++++- .../v2/model/MuteFindingResponseData.java | 58 ++++++++++++++- .../v2/model/NullableRelationshipToUser.java | 59 ++++++++++++++- .../model/NullableRelationshipToUserData.java | 59 ++++++++++++++- .../v2/model/OnDemandConcurrencyCap.java | 58 ++++++++++++++- .../OnDemandConcurrencyCapAttributes.java | 59 ++++++++++++++- .../model/OnDemandConcurrencyCapResponse.java | 59 ++++++++++++++- .../OpsgenieServiceCreateAttributes.java | 59 ++++++++++++++- .../v2/model/OpsgenieServiceCreateData.java | 59 ++++++++++++++- .../model/OpsgenieServiceCreateRequest.java | 59 ++++++++++++++- .../v2/model/OpsgenieServiceResponse.java | 58 ++++++++++++++- .../OpsgenieServiceResponseAttributes.java | 59 ++++++++++++++- .../v2/model/OpsgenieServiceResponseData.java | 59 ++++++++++++++- .../OpsgenieServiceUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/OpsgenieServiceUpdateData.java | 59 ++++++++++++++- .../model/OpsgenieServiceUpdateRequest.java | 59 ++++++++++++++- .../v2/model/OpsgenieServicesResponse.java | 58 ++++++++++++++- .../api/client/v2/model/Organization.java | 58 ++++++++++++++- .../v2/model/OrganizationAttributes.java | 67 ++++++++++++++++- .../api/client/v2/model/Pagination.java | 58 ++++++++++++++- .../api/client/v2/model/PartialAPIKey.java | 58 ++++++++++++++- .../v2/model/PartialAPIKeyAttributes.java | 58 ++++++++++++++- .../v2/model/PartialApplicationKey.java | 58 ++++++++++++++- .../PartialApplicationKeyAttributes.java | 59 ++++++++++++++- .../model/PartialApplicationKeyResponse.java | 59 ++++++++++++++- .../api/client/v2/model/Permission.java | 58 ++++++++++++++- .../client/v2/model/PermissionAttributes.java | 65 ++++++++++++++++- .../client/v2/model/PermissionsResponse.java | 58 ++++++++++++++- .../client/v2/model/ProcessSummariesMeta.java | 58 ++++++++++++++- .../v2/model/ProcessSummariesMetaPage.java | 58 ++++++++++++++- .../v2/model/ProcessSummariesResponse.java | 58 ++++++++++++++- .../api/client/v2/model/ProcessSummary.java | 58 ++++++++++++++- .../v2/model/ProcessSummaryAttributes.java | 59 ++++++++++++++- .../api/client/v2/model/QueryFormula.java | 58 ++++++++++++++- .../RUMAggregateBucketValueTimeseries.java | 55 +++++++++++++- ...UMAggregateBucketValueTimeseriesPoint.java | 59 ++++++++++++++- .../client/v2/model/RUMAggregateRequest.java | 58 ++++++++++++++- .../api/client/v2/model/RUMAggregateSort.java | 58 ++++++++++++++- .../model/RUMAggregationBucketsResponse.java | 59 ++++++++++++++- .../model/RUMAnalyticsAggregateResponse.java | 59 ++++++++++++++- .../api/client/v2/model/RUMApplication.java | 58 ++++++++++++++- .../v2/model/RUMApplicationAttributes.java | 59 ++++++++++++++- .../client/v2/model/RUMApplicationCreate.java | 58 ++++++++++++++- .../model/RUMApplicationCreateAttributes.java | 59 ++++++++++++++- .../v2/model/RUMApplicationCreateRequest.java | 59 ++++++++++++++- .../client/v2/model/RUMApplicationList.java | 58 ++++++++++++++- .../model/RUMApplicationListAttributes.java | 60 +++++++++++++++- .../v2/model/RUMApplicationResponse.java | 58 ++++++++++++++- .../client/v2/model/RUMApplicationUpdate.java | 58 ++++++++++++++- .../model/RUMApplicationUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/RUMApplicationUpdateRequest.java | 59 ++++++++++++++- .../v2/model/RUMApplicationsResponse.java | 58 ++++++++++++++- .../client/v2/model/RUMBucketResponse.java | 56 ++++++++++++++- .../api/client/v2/model/RUMCompute.java | 58 ++++++++++++++- .../datadog/api/client/v2/model/RUMEvent.java | 58 ++++++++++++++- .../client/v2/model/RUMEventAttributes.java | 56 ++++++++++++++- .../client/v2/model/RUMEventsResponse.java | 58 ++++++++++++++- .../api/client/v2/model/RUMGroupBy.java | 58 ++++++++++++++- .../client/v2/model/RUMGroupByHistogram.java | 58 ++++++++++++++- .../api/client/v2/model/RUMQueryFilter.java | 58 ++++++++++++++- .../api/client/v2/model/RUMQueryOptions.java | 58 ++++++++++++++- .../client/v2/model/RUMQueryPageOptions.java | 58 ++++++++++++++- .../api/client/v2/model/RUMResponseLinks.java | 58 ++++++++++++++- .../client/v2/model/RUMResponseMetadata.java | 58 ++++++++++++++- .../api/client/v2/model/RUMResponsePage.java | 58 ++++++++++++++- .../v2/model/RUMSearchEventsRequest.java | 58 ++++++++++++++- .../api/client/v2/model/RUMWarning.java | 58 ++++++++++++++- .../RelationshipToIncidentAttachment.java | 59 ++++++++++++++- .../RelationshipToIncidentAttachmentData.java | 59 ++++++++++++++- ...shipToIncidentIntegrationMetadataData.java | 61 +++++++++++++++- ...ionshipToIncidentIntegrationMetadatas.java | 61 +++++++++++++++- .../RelationshipToIncidentPostmortem.java | 59 ++++++++++++++- .../RelationshipToIncidentPostmortemData.java | 59 ++++++++++++++- .../v2/model/RelationshipToOrganization.java | 59 ++++++++++++++- .../model/RelationshipToOrganizationData.java | 59 ++++++++++++++- .../v2/model/RelationshipToOrganizations.java | 59 ++++++++++++++- .../v2/model/RelationshipToPermission.java | 58 ++++++++++++++- .../model/RelationshipToPermissionData.java | 59 ++++++++++++++- .../v2/model/RelationshipToPermissions.java | 59 ++++++++++++++- .../client/v2/model/RelationshipToRole.java | 58 ++++++++++++++- .../v2/model/RelationshipToRoleData.java | 58 ++++++++++++++- .../client/v2/model/RelationshipToRoles.java | 58 ++++++++++++++- .../RelationshipToSAMLAssertionAttribute.java | 59 ++++++++++++++- ...ationshipToSAMLAssertionAttributeData.java | 60 +++++++++++++++- .../v2/model/RelationshipToTeamLinkData.java | 59 ++++++++++++++- .../v2/model/RelationshipToTeamLinks.java | 58 ++++++++++++++- .../client/v2/model/RelationshipToUser.java | 58 ++++++++++++++- .../v2/model/RelationshipToUserData.java | 58 ++++++++++++++- .../RelationshipToUserTeamPermission.java | 59 ++++++++++++++- .../RelationshipToUserTeamPermissionData.java | 59 ++++++++++++++- .../v2/model/RelationshipToUserTeamUser.java | 59 ++++++++++++++- .../model/RelationshipToUserTeamUserData.java | 59 ++++++++++++++- .../client/v2/model/RelationshipToUsers.java | 58 ++++++++++++++- .../v2/model/ResponseMetaAttributes.java | 58 ++++++++++++++- .../client/v2/model/RestrictionPolicy.java | 58 ++++++++++++++- .../v2/model/RestrictionPolicyAttributes.java | 59 ++++++++++++++- .../v2/model/RestrictionPolicyBinding.java | 58 ++++++++++++++- .../v2/model/RestrictionPolicyResponse.java | 59 ++++++++++++++- .../model/RestrictionPolicyUpdateRequest.java | 59 ++++++++++++++- .../com/datadog/api/client/v2/model/Role.java | 58 ++++++++++++++- .../api/client/v2/model/RoleAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/RoleClone.java | 58 ++++++++++++++- .../client/v2/model/RoleCloneAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/RoleCloneRequest.java | 58 ++++++++++++++- .../client/v2/model/RoleCreateAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/RoleCreateData.java | 58 ++++++++++++++- .../client/v2/model/RoleCreateRequest.java | 58 ++++++++++++++- .../client/v2/model/RoleCreateResponse.java | 58 ++++++++++++++- .../v2/model/RoleCreateResponseData.java | 58 ++++++++++++++- .../client/v2/model/RoleRelationships.java | 58 ++++++++++++++- .../api/client/v2/model/RoleResponse.java | 58 ++++++++++++++- .../v2/model/RoleResponseRelationships.java | 59 ++++++++++++++- .../client/v2/model/RoleUpdateAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/RoleUpdateData.java | 58 ++++++++++++++- .../client/v2/model/RoleUpdateRequest.java | 58 ++++++++++++++- .../client/v2/model/RoleUpdateResponse.java | 58 ++++++++++++++- .../v2/model/RoleUpdateResponseData.java | 58 ++++++++++++++- .../api/client/v2/model/RolesResponse.java | 58 ++++++++++++++- .../v2/model/SAMLAssertionAttribute.java | 58 ++++++++++++++- .../SAMLAssertionAttributeAttributes.java | 59 ++++++++++++++- .../v2/model/ScalarFormulaQueryRequest.java | 59 ++++++++++++++- .../v2/model/ScalarFormulaQueryResponse.java | 59 ++++++++++++++- .../client/v2/model/ScalarFormulaRequest.java | 58 ++++++++++++++- .../model/ScalarFormulaRequestAttributes.java | 59 ++++++++++++++- .../ScalarFormulaResponseAtrributes.java | 59 ++++++++++++++- .../api/client/v2/model/ScalarMeta.java | 58 ++++++++++++++- .../api/client/v2/model/ScalarResponse.java | 58 ++++++++++++++- .../api/client/v2/model/SecurityFilter.java | 58 ++++++++++++++- .../v2/model/SecurityFilterAttributes.java | 65 ++++++++++++++++- .../model/SecurityFilterCreateAttributes.java | 60 +++++++++++++++- .../v2/model/SecurityFilterCreateData.java | 58 ++++++++++++++- .../v2/model/SecurityFilterCreateRequest.java | 59 ++++++++++++++- .../model/SecurityFilterExclusionFilter.java | 59 ++++++++++++++- ...SecurityFilterExclusionFilterResponse.java | 59 ++++++++++++++- .../client/v2/model/SecurityFilterMeta.java | 58 ++++++++++++++- .../v2/model/SecurityFilterResponse.java | 58 ++++++++++++++- .../model/SecurityFilterUpdateAttributes.java | 60 +++++++++++++++- .../v2/model/SecurityFilterUpdateData.java | 58 ++++++++++++++- .../v2/model/SecurityFilterUpdateRequest.java | 59 ++++++++++++++- .../v2/model/SecurityFiltersResponse.java | 58 ++++++++++++++- .../v2/model/SecurityMonitoringFilter.java | 58 ++++++++++++++- .../SecurityMonitoringListRulesResponse.java | 59 ++++++++++++++- .../v2/model/SecurityMonitoringRuleCase.java | 59 ++++++++++++++- .../SecurityMonitoringRuleCaseCreate.java | 59 ++++++++++++++- ...MonitoringRuleImpossibleTravelOptions.java | 63 +++++++++++++++- ...SecurityMonitoringRuleNewValueOptions.java | 60 +++++++++++++++- .../model/SecurityMonitoringRuleOptions.java | 60 +++++++++++++++- .../SecurityMonitoringRuleUpdatePayload.java | 60 +++++++++++++++- .../v2/model/SecurityMonitoringSignal.java | 58 ++++++++++++++- ...itoringSignalAssigneeUpdateAttributes.java | 61 +++++++++++++++- ...ityMonitoringSignalAssigneeUpdateData.java | 61 +++++++++++++++- ...MonitoringSignalAssigneeUpdateRequest.java | 61 +++++++++++++++- .../SecurityMonitoringSignalAttributes.java | 57 ++++++++++++++- ...toringSignalIncidentsUpdateAttributes.java | 61 +++++++++++++++- ...tyMonitoringSignalIncidentsUpdateData.java | 61 +++++++++++++++- ...onitoringSignalIncidentsUpdateRequest.java | 61 +++++++++++++++- .../SecurityMonitoringSignalListRequest.java | 59 ++++++++++++++- ...rityMonitoringSignalListRequestFilter.java | 60 +++++++++++++++- ...curityMonitoringSignalListRequestPage.java | 60 +++++++++++++++- ...rityMonitoringSignalRuleCreatePayload.java | 70 +++++++++++++++++- .../SecurityMonitoringSignalRuleQuery.java | 65 ++++++++++++++++- .../SecurityMonitoringSignalRuleResponse.java | 60 +++++++++++++++- ...rityMonitoringSignalRuleResponseQuery.java | 61 +++++++++++++++- ...MonitoringSignalStateUpdateAttributes.java | 61 +++++++++++++++- ...curityMonitoringSignalStateUpdateData.java | 60 +++++++++++++++- ...ityMonitoringSignalStateUpdateRequest.java | 61 +++++++++++++++- ...urityMonitoringSignalTriageAttributes.java | 61 +++++++++++++++- ...urityMonitoringSignalTriageUpdateData.java | 60 +++++++++++++++- ...yMonitoringSignalTriageUpdateResponse.java | 61 +++++++++++++++- ...SecurityMonitoringSignalsListResponse.java | 59 ++++++++++++++- ...ityMonitoringSignalsListResponseLinks.java | 61 +++++++++++++++- ...rityMonitoringSignalsListResponseMeta.java | 60 +++++++++++++++- ...MonitoringSignalsListResponseMetaPage.java | 61 +++++++++++++++- ...tyMonitoringStandardRuleCreatePayload.java | 71 +++++++++++++++++- .../SecurityMonitoringStandardRuleQuery.java | 67 ++++++++++++++++- ...ecurityMonitoringStandardRuleResponse.java | 60 +++++++++++++++- .../model/SecurityMonitoringTriageUser.java | 59 ++++++++++++++- .../SensitiveDataScannerConfigRequest.java | 59 ++++++++++++++- .../SensitiveDataScannerConfiguration.java | 59 ++++++++++++++- ...SensitiveDataScannerConfigurationData.java | 59 ++++++++++++++- ...DataScannerConfigurationRelationships.java | 61 +++++++++++++++- ...nsitiveDataScannerCreateGroupResponse.java | 60 +++++++++++++++- ...ensitiveDataScannerCreateRuleResponse.java | 59 ++++++++++++++- .../v2/model/SensitiveDataScannerFilter.java | 59 ++++++++++++++- ...SensitiveDataScannerGetConfigResponse.java | 59 ++++++++++++++- ...itiveDataScannerGetConfigResponseData.java | 60 +++++++++++++++- .../v2/model/SensitiveDataScannerGroup.java | 59 ++++++++++++++- .../SensitiveDataScannerGroupAttributes.java | 59 ++++++++++++++- .../SensitiveDataScannerGroupCreate.java | 59 ++++++++++++++- ...ensitiveDataScannerGroupCreateRequest.java | 59 ++++++++++++++- .../model/SensitiveDataScannerGroupData.java | 59 ++++++++++++++- ...ensitiveDataScannerGroupDeleteRequest.java | 59 ++++++++++++++- ...nsitiveDataScannerGroupDeleteResponse.java | 60 +++++++++++++++- ...SensitiveDataScannerGroupIncludedItem.java | 59 ++++++++++++++- .../model/SensitiveDataScannerGroupItem.java | 59 ++++++++++++++- .../model/SensitiveDataScannerGroupList.java | 59 ++++++++++++++- ...ensitiveDataScannerGroupRelationships.java | 59 ++++++++++++++- .../SensitiveDataScannerGroupResponse.java | 59 ++++++++++++++- .../SensitiveDataScannerGroupUpdate.java | 59 ++++++++++++++- ...ensitiveDataScannerGroupUpdateRequest.java | 59 ++++++++++++++- ...nsitiveDataScannerGroupUpdateResponse.java | 60 +++++++++++++++- .../v2/model/SensitiveDataScannerMeta.java | 64 ++++++++++++++++- .../SensitiveDataScannerMetaVersionOnly.java | 59 ++++++++++++++- .../SensitiveDataScannerReorderConfig.java | 59 ++++++++++++++- ...itiveDataScannerReorderGroupsResponse.java | 60 +++++++++++++++- .../v2/model/SensitiveDataScannerRule.java | 58 ++++++++++++++- .../SensitiveDataScannerRuleAttributes.java | 60 +++++++++++++++- .../model/SensitiveDataScannerRuleCreate.java | 59 ++++++++++++++- ...SensitiveDataScannerRuleCreateRequest.java | 59 ++++++++++++++- .../model/SensitiveDataScannerRuleData.java | 59 ++++++++++++++- ...SensitiveDataScannerRuleDeleteRequest.java | 59 ++++++++++++++- ...ensitiveDataScannerRuleDeleteResponse.java | 59 ++++++++++++++- .../SensitiveDataScannerRuleIncludedItem.java | 59 ++++++++++++++- ...SensitiveDataScannerRuleRelationships.java | 59 ++++++++++++++- .../SensitiveDataScannerRuleResponse.java | 59 ++++++++++++++- .../model/SensitiveDataScannerRuleUpdate.java | 59 ++++++++++++++- ...SensitiveDataScannerRuleUpdateRequest.java | 59 ++++++++++++++- ...ensitiveDataScannerRuleUpdateResponse.java | 59 ++++++++++++++- .../SensitiveDataScannerStandardPattern.java | 59 ++++++++++++++- ...eDataScannerStandardPatternAttributes.java | 61 +++++++++++++++- ...nsitiveDataScannerStandardPatternData.java | 60 +++++++++++++++- ...taScannerStandardPatternsResponseData.java | 61 +++++++++++++++- ...taScannerStandardPatternsResponseItem.java | 61 +++++++++++++++- .../SensitiveDataScannerTextReplacement.java | 59 ++++++++++++++- .../model/ServiceAccountCreateAttributes.java | 59 ++++++++++++++- .../v2/model/ServiceAccountCreateData.java | 58 ++++++++++++++- .../v2/model/ServiceAccountCreateRequest.java | 59 ++++++++++++++- .../ServiceDefinitionCreateResponse.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionData.java | 58 ++++++++++++++- .../ServiceDefinitionDataAttributes.java | 59 ++++++++++++++- .../model/ServiceDefinitionGetResponse.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionMeta.java | 63 +++++++++++++++- .../client/v2/model/ServiceDefinitionV1.java | 64 ++++++++++++++++- .../v2/model/ServiceDefinitionV1Contact.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV1Info.java | 58 ++++++++++++++- .../ServiceDefinitionV1Integrations.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV1Org.java | 58 ++++++++++++++- .../v2/model/ServiceDefinitionV1Resource.java | 59 ++++++++++++++- .../client/v2/model/ServiceDefinitionV2.java | 57 ++++++++++++++- .../v2/model/ServiceDefinitionV2Doc.java | 58 ++++++++++++++- .../v2/model/ServiceDefinitionV2Dot1.java | 57 ++++++++++++++- .../model/ServiceDefinitionV2Dot1Email.java | 59 ++++++++++++++- .../ServiceDefinitionV2Dot1Integrations.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV2Dot1Link.java | 59 ++++++++++++++- .../model/ServiceDefinitionV2Dot1MSTeams.java | 59 ++++++++++++++- .../ServiceDefinitionV2Dot1Opsgenie.java | 59 ++++++++++++++- .../ServiceDefinitionV2Dot1Pagerduty.java | 59 ++++++++++++++- .../model/ServiceDefinitionV2Dot1Slack.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV2Email.java | 58 ++++++++++++++- .../ServiceDefinitionV2Integrations.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV2Link.java | 58 ++++++++++++++- .../v2/model/ServiceDefinitionV2MSTeams.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV2Opsgenie.java | 59 ++++++++++++++- .../v2/model/ServiceDefinitionV2Repo.java | 58 ++++++++++++++- .../v2/model/ServiceDefinitionV2Slack.java | 58 ++++++++++++++- .../model/ServiceDefinitionsListResponse.java | 59 ++++++++++++++- .../v2/model/SlackIntegrationMetadata.java | 58 ++++++++++++++- .../SlackIntegrationMetadataChannelItem.java | 59 ++++++++++++++- .../client/v2/model/SpansMetricCompute.java | 58 ++++++++++++++- .../v2/model/SpansMetricCreateAttributes.java | 59 ++++++++++++++- .../v2/model/SpansMetricCreateData.java | 58 ++++++++++++++- .../v2/model/SpansMetricCreateRequest.java | 58 ++++++++++++++- .../client/v2/model/SpansMetricFilter.java | 58 ++++++++++++++- .../client/v2/model/SpansMetricGroupBy.java | 58 ++++++++++++++- .../client/v2/model/SpansMetricResponse.java | 58 ++++++++++++++- .../model/SpansMetricResponseAttributes.java | 59 ++++++++++++++- .../v2/model/SpansMetricResponseCompute.java | 59 ++++++++++++++- .../v2/model/SpansMetricResponseData.java | 58 ++++++++++++++- .../v2/model/SpansMetricResponseFilter.java | 59 ++++++++++++++- .../v2/model/SpansMetricResponseGroupBy.java | 59 ++++++++++++++- .../v2/model/SpansMetricUpdateAttributes.java | 59 ++++++++++++++- .../v2/model/SpansMetricUpdateCompute.java | 58 ++++++++++++++- .../v2/model/SpansMetricUpdateData.java | 58 ++++++++++++++- .../v2/model/SpansMetricUpdateRequest.java | 58 ++++++++++++++- .../client/v2/model/SpansMetricsResponse.java | 58 ++++++++++++++- .../com/datadog/api/client/v2/model/Team.java | 58 ++++++++++++++- .../api/client/v2/model/TeamAttributes.java | 66 ++++++++++++++++- .../api/client/v2/model/TeamCreate.java | 58 ++++++++++++++- .../client/v2/model/TeamCreateAttributes.java | 58 ++++++++++++++- .../v2/model/TeamCreateRelationships.java | 58 ++++++++++++++- .../client/v2/model/TeamCreateRequest.java | 58 ++++++++++++++- .../datadog/api/client/v2/model/TeamData.java | 58 ++++++++++++++- .../datadog/api/client/v2/model/TeamLink.java | 58 ++++++++++++++- .../client/v2/model/TeamLinkAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/TeamLinkCreate.java | 58 ++++++++++++++- .../v2/model/TeamLinkCreateRequest.java | 58 ++++++++++++++- .../api/client/v2/model/TeamLinkResponse.java | 58 ++++++++++++++- .../client/v2/model/TeamLinksResponse.java | 58 ++++++++++++++- .../v2/model/TeamPermissionSetting.java | 58 ++++++++++++++- .../TeamPermissionSettingAttributes.java | 59 ++++++++++++++- .../model/TeamPermissionSettingResponse.java | 59 ++++++++++++++- .../v2/model/TeamPermissionSettingUpdate.java | 59 ++++++++++++++- ...TeamPermissionSettingUpdateAttributes.java | 59 ++++++++++++++- .../TeamPermissionSettingUpdateRequest.java | 59 ++++++++++++++- .../model/TeamPermissionSettingsResponse.java | 59 ++++++++++++++- .../client/v2/model/TeamRelationships.java | 58 ++++++++++++++- .../api/client/v2/model/TeamResponse.java | 58 ++++++++++++++- .../api/client/v2/model/TeamUpdate.java | 58 ++++++++++++++- .../client/v2/model/TeamUpdateAttributes.java | 58 ++++++++++++++- .../v2/model/TeamUpdateRelationships.java | 58 ++++++++++++++- .../client/v2/model/TeamUpdateRequest.java | 58 ++++++++++++++- .../api/client/v2/model/TeamsResponse.java | 58 ++++++++++++++- .../model/TimeseriesFormulaQueryRequest.java | 59 ++++++++++++++- .../model/TimeseriesFormulaQueryResponse.java | 59 ++++++++++++++- .../v2/model/TimeseriesFormulaRequest.java | 58 ++++++++++++++- .../TimeseriesFormulaRequestAttributes.java | 59 ++++++++++++++- .../client/v2/model/TimeseriesResponse.java | 58 ++++++++++++++- .../model/TimeseriesResponseAttributes.java | 59 ++++++++++++++- .../v2/model/TimeseriesResponseSeries.java | 58 ++++++++++++++- .../com/datadog/api/client/v2/model/Unit.java | 58 ++++++++++++++- ...ApplicationSecurityMonitoringResponse.java | 61 +++++++++++++++- .../v2/model/UsageAttributesObject.java | 59 ++++++++++++++- .../api/client/v2/model/UsageDataObject.java | 58 ++++++++++++++- .../UsageLambdaTracedInvocationsResponse.java | 59 ++++++++++++++- .../UsageObservabilityPipelinesResponse.java | 59 ++++++++++++++- .../v2/model/UsageTimeSeriesObject.java | 58 ++++++++++++++- .../com/datadog/api/client/v2/model/User.java | 58 ++++++++++++++- .../api/client/v2/model/UserAttributes.java | 59 ++++++++++++++- .../client/v2/model/UserCreateAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/UserCreateData.java | 58 ++++++++++++++- .../client/v2/model/UserCreateRequest.java | 58 ++++++++++++++- .../client/v2/model/UserInvitationData.java | 58 ++++++++++++++- .../model/UserInvitationDataAttributes.java | 59 ++++++++++++++- .../v2/model/UserInvitationRelationships.java | 59 ++++++++++++++- .../v2/model/UserInvitationResponse.java | 58 ++++++++++++++- .../v2/model/UserInvitationResponseData.java | 59 ++++++++++++++- .../v2/model/UserInvitationsRequest.java | 58 ++++++++++++++- .../v2/model/UserInvitationsResponse.java | 58 ++++++++++++++- .../client/v2/model/UserRelationships.java | 58 ++++++++++++++- .../api/client/v2/model/UserResponse.java | 58 ++++++++++++++- .../v2/model/UserResponseRelationships.java | 59 ++++++++++++++- .../datadog/api/client/v2/model/UserTeam.java | 58 ++++++++++++++- .../client/v2/model/UserTeamAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/UserTeamCreate.java | 58 ++++++++++++++- .../client/v2/model/UserTeamPermission.java | 58 ++++++++++++++- .../model/UserTeamPermissionAttributes.java | 59 ++++++++++++++- .../v2/model/UserTeamRelationships.java | 58 ++++++++++++++- .../api/client/v2/model/UserTeamRequest.java | 58 ++++++++++++++- .../api/client/v2/model/UserTeamResponse.java | 58 ++++++++++++++- .../api/client/v2/model/UserTeamUpdate.java | 58 ++++++++++++++- .../v2/model/UserTeamUpdateRequest.java | 58 ++++++++++++++- .../client/v2/model/UserTeamsResponse.java | 58 ++++++++++++++- .../client/v2/model/UserUpdateAttributes.java | 58 ++++++++++++++- .../api/client/v2/model/UserUpdateData.java | 58 ++++++++++++++- .../client/v2/model/UserUpdateRequest.java | 58 ++++++++++++++- .../api/client/v2/model/UsersResponse.java | 58 ++++++++++++++- 1340 files changed, 76336 insertions(+), 2683 deletions(-) diff --git a/src/main/java/com/datadog/api/client/v1/model/APIErrorResponse.java b/src/main/java/com/datadog/api/client/v1/model/APIErrorResponse.java index 36c6bfa5146..e2825d8117b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/APIErrorResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/APIErrorResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Error response object. */ @@ -57,6 +61,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIErrorResponse + */ + @JsonAnySetter + public APIErrorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIErrorResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,13 @@ public boolean equals(Object o) { return false; } APIErrorResponse apiErrorResponse = (APIErrorResponse) o; - return Objects.equals(this.errors, apiErrorResponse.errors); + return Objects.equals(this.errors, apiErrorResponse.errors) + && Objects.equals(this.additionalProperties, apiErrorResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors); + return Objects.hash(errors, additionalProperties); } @Override @@ -80,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIErrorResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSAccount.java b/src/main/java/com/datadog/api/client/v1/model/AWSAccount.java index 216254865c5..82bbba31393 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSAccount.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSAccount.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -345,6 +347,52 @@ public void setSecretAccessKey(String secretAccessKey) { this.secretAccessKey = secretAccessKey; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSAccount + */ + @JsonAnySetter + public AWSAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -367,7 +415,8 @@ public boolean equals(Object o) { && Objects.equals(this.metricsCollectionEnabled, awsAccount.metricsCollectionEnabled) && Objects.equals(this.resourceCollectionEnabled, awsAccount.resourceCollectionEnabled) && Objects.equals(this.roleName, awsAccount.roleName) - && Objects.equals(this.secretAccessKey, awsAccount.secretAccessKey); + && Objects.equals(this.secretAccessKey, awsAccount.secretAccessKey) + && Objects.equals(this.additionalProperties, awsAccount.additionalProperties); } @Override @@ -383,7 +432,8 @@ public int hashCode() { metricsCollectionEnabled, resourceCollectionEnabled, roleName, - secretAccessKey); + secretAccessKey, + additionalProperties); } @Override @@ -409,6 +459,9 @@ public String toString() { .append("\n"); sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); sb.append(" secretAccessKey: ").append(toIndentedString(secretAccessKey)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSAccountAndLambdaRequest.java b/src/main/java/com/datadog/api/client/v1/model/AWSAccountAndLambdaRequest.java index f3c828dc3b4..5f8ca1fa7d4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSAccountAndLambdaRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSAccountAndLambdaRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** AWS account ID and Lambda ARN. */ @@ -78,6 +82,52 @@ public void setLambdaArn(String lambdaArn) { this.lambdaArn = lambdaArn; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSAccountAndLambdaRequest + */ + @JsonAnySetter + public AWSAccountAndLambdaRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSAccountAndLambdaRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { } AWSAccountAndLambdaRequest awsAccountAndLambdaRequest = (AWSAccountAndLambdaRequest) o; return Objects.equals(this.accountId, awsAccountAndLambdaRequest.accountId) - && Objects.equals(this.lambdaArn, awsAccountAndLambdaRequest.lambdaArn); + && Objects.equals(this.lambdaArn, awsAccountAndLambdaRequest.lambdaArn) + && Objects.equals( + this.additionalProperties, awsAccountAndLambdaRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, lambdaArn); + return Objects.hash(accountId, lambdaArn, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class AWSAccountAndLambdaRequest {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" lambdaArn: ").append(toIndentedString(lambdaArn)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSAccountCreateResponse.java b/src/main/java/com/datadog/api/client/v1/model/AWSAccountCreateResponse.java index 57ca62c2694..df224dc2436 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSAccountCreateResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSAccountCreateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The Response returned by the AWS Create Account call. */ @@ -42,6 +46,52 @@ public void setExternalId(String externalId) { this.externalId = externalId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSAccountCreateResponse + */ + @JsonAnySetter + public AWSAccountCreateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSAccountCreateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } AWSAccountCreateResponse awsAccountCreateResponse = (AWSAccountCreateResponse) o; - return Objects.equals(this.externalId, awsAccountCreateResponse.externalId); + return Objects.equals(this.externalId, awsAccountCreateResponse.externalId) + && Objects.equals(this.additionalProperties, awsAccountCreateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(externalId); + return Objects.hash(externalId, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AWSAccountCreateResponse {\n"); sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSAccountDeleteRequest.java b/src/main/java/com/datadog/api/client/v1/model/AWSAccountDeleteRequest.java index a49bf49b364..f0226e709b3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSAccountDeleteRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSAccountDeleteRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of AWS accounts to delete. */ @@ -94,6 +98,52 @@ public void setRoleName(String roleName) { this.roleName = roleName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSAccountDeleteRequest + */ + @JsonAnySetter + public AWSAccountDeleteRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSAccountDeleteRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { AWSAccountDeleteRequest awsAccountDeleteRequest = (AWSAccountDeleteRequest) o; return Objects.equals(this.accessKeyId, awsAccountDeleteRequest.accessKeyId) && Objects.equals(this.accountId, awsAccountDeleteRequest.accountId) - && Objects.equals(this.roleName, awsAccountDeleteRequest.roleName); + && Objects.equals(this.roleName, awsAccountDeleteRequest.roleName) + && Objects.equals(this.additionalProperties, awsAccountDeleteRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accessKeyId, accountId, roleName); + return Objects.hash(accessKeyId, accountId, roleName, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" accessKeyId: ").append(toIndentedString(accessKeyId)).append("\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSAccountListResponse.java b/src/main/java/com/datadog/api/client/v1/model/AWSAccountListResponse.java index d5708f546a5..9b3312b474e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSAccountListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSAccountListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List of enabled AWS accounts. */ @@ -56,6 +60,52 @@ public void setAccounts(List accounts) { this.accounts = accounts; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSAccountListResponse + */ + @JsonAnySetter + public AWSAccountListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSAccountListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } AWSAccountListResponse awsAccountListResponse = (AWSAccountListResponse) o; - return Objects.equals(this.accounts, awsAccountListResponse.accounts); + return Objects.equals(this.accounts, awsAccountListResponse.accounts) + && Objects.equals(this.additionalProperties, awsAccountListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accounts); + return Objects.hash(accounts, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AWSAccountListResponse {\n"); sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncError.java b/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncError.java index 2b0190a3334..4ee7753c4f0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncError.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncError.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Description of errors. */ @@ -66,6 +70,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSLogsAsyncError + */ + @JsonAnySetter + public AWSLogsAsyncError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSLogsAsyncError object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,13 @@ public boolean equals(Object o) { } AWSLogsAsyncError awsLogsAsyncError = (AWSLogsAsyncError) o; return Objects.equals(this.code, awsLogsAsyncError.code) - && Objects.equals(this.message, awsLogsAsyncError.message); + && Objects.equals(this.message, awsLogsAsyncError.message) + && Objects.equals(this.additionalProperties, awsLogsAsyncError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, message); + return Objects.hash(code, message, additionalProperties); } @Override @@ -91,6 +142,9 @@ public String toString() { sb.append("class AWSLogsAsyncError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncResponse.java b/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncResponse.java index c74e4966992..5ac03bbc614 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSLogsAsyncResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A list of all Datadog-AWS logs integrations available in your Datadog organization. */ @@ -83,6 +87,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSLogsAsyncResponse + */ + @JsonAnySetter + public AWSLogsAsyncResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSLogsAsyncResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } AWSLogsAsyncResponse awsLogsAsyncResponse = (AWSLogsAsyncResponse) o; return Objects.equals(this.errors, awsLogsAsyncResponse.errors) - && Objects.equals(this.status, awsLogsAsyncResponse.status); + && Objects.equals(this.status, awsLogsAsyncResponse.status) + && Objects.equals(this.additionalProperties, awsLogsAsyncResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors, status); + return Objects.hash(errors, status, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class AWSLogsAsyncResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSLogsLambda.java b/src/main/java/com/datadog/api/client/v1/model/AWSLogsLambda.java index 5797078e84c..487da07620b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSLogsLambda.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSLogsLambda.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Description of the Lambdas. */ @@ -42,6 +46,52 @@ public void setArn(String arn) { this.arn = arn; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSLogsLambda + */ + @JsonAnySetter + public AWSLogsLambda putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSLogsLambda object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } AWSLogsLambda awsLogsLambda = (AWSLogsLambda) o; - return Objects.equals(this.arn, awsLogsLambda.arn); + return Objects.equals(this.arn, awsLogsLambda.arn) + && Objects.equals(this.additionalProperties, awsLogsLambda.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arn); + return Objects.hash(arn, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AWSLogsLambda {\n"); sb.append(" arn: ").append(toIndentedString(arn)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSLogsListResponse.java b/src/main/java/com/datadog/api/client/v1/model/AWSLogsListResponse.java index 4fb7494d9c0..ef8a010211e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSLogsListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSLogsListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A list of all Datadog-AWS logs integrations available in your Datadog organization. */ @@ -116,6 +120,52 @@ public void setServices(List services) { this.services = services; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSLogsListResponse + */ + @JsonAnySetter + public AWSLogsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSLogsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +178,13 @@ public boolean equals(Object o) { AWSLogsListResponse awsLogsListResponse = (AWSLogsListResponse) o; return Objects.equals(this.accountId, awsLogsListResponse.accountId) && Objects.equals(this.lambdas, awsLogsListResponse.lambdas) - && Objects.equals(this.services, awsLogsListResponse.services); + && Objects.equals(this.services, awsLogsListResponse.services) + && Objects.equals(this.additionalProperties, awsLogsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, lambdas, services); + return Objects.hash(accountId, lambdas, services, additionalProperties); } @Override @@ -143,6 +194,9 @@ public String toString() { sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" lambdas: ").append(toIndentedString(lambdas)).append("\n"); sb.append(" services: ").append(toIndentedString(services)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSLogsListServicesResponse.java b/src/main/java/com/datadog/api/client/v1/model/AWSLogsListServicesResponse.java index bd12c3d3e94..f40f7214e4f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSLogsListServicesResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSLogsListServicesResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The list of current AWS services for which Datadog offers automatic log collection. */ @@ -69,6 +73,52 @@ public void setLabel(String label) { this.label = label; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSLogsListServicesResponse + */ + @JsonAnySetter + public AWSLogsListServicesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSLogsListServicesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } AWSLogsListServicesResponse awsLogsListServicesResponse = (AWSLogsListServicesResponse) o; return Objects.equals(this.id, awsLogsListServicesResponse.id) - && Objects.equals(this.label, awsLogsListServicesResponse.label); + && Objects.equals(this.label, awsLogsListServicesResponse.label) + && Objects.equals( + this.additionalProperties, awsLogsListServicesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, label); + return Objects.hash(id, label, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class AWSLogsListServicesResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSLogsServicesRequest.java b/src/main/java/com/datadog/api/client/v1/model/AWSLogsServicesRequest.java index b0628e188b6..3436f6520c5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSLogsServicesRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSLogsServicesRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A list of current AWS services for which Datadog offers automatic log collection. */ @@ -86,6 +90,52 @@ public void setServices(List services) { this.services = services; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSLogsServicesRequest + */ + @JsonAnySetter + public AWSLogsServicesRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSLogsServicesRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } AWSLogsServicesRequest awsLogsServicesRequest = (AWSLogsServicesRequest) o; return Objects.equals(this.accountId, awsLogsServicesRequest.accountId) - && Objects.equals(this.services, awsLogsServicesRequest.services); + && Objects.equals(this.services, awsLogsServicesRequest.services) + && Objects.equals(this.additionalProperties, awsLogsServicesRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, services); + return Objects.hash(accountId, services, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class AWSLogsServicesRequest {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" services: ").append(toIndentedString(services)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilter.java b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilter.java index 40c9dd948a9..c82034b0bc1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilter.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A tag filter. */ @@ -73,6 +77,52 @@ public void setTagFilterStr(String tagFilterStr) { this.tagFilterStr = tagFilterStr; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSTagFilter + */ + @JsonAnySetter + public AWSTagFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSTagFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } AWSTagFilter awsTagFilter = (AWSTagFilter) o; return Objects.equals(this.namespace, awsTagFilter.namespace) - && Objects.equals(this.tagFilterStr, awsTagFilter.tagFilterStr); + && Objects.equals(this.tagFilterStr, awsTagFilter.tagFilterStr) + && Objects.equals(this.additionalProperties, awsTagFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(namespace, tagFilterStr); + return Objects.hash(namespace, tagFilterStr, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class AWSTagFilter {\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" tagFilterStr: ").append(toIndentedString(tagFilterStr)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterCreateRequest.java b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterCreateRequest.java index 96eb6c97df8..a696efacf93 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterCreateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The objects used to set an AWS tag filter. */ @@ -98,6 +102,52 @@ public void setTagFilterStr(String tagFilterStr) { this.tagFilterStr = tagFilterStr; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSTagFilterCreateRequest + */ + @JsonAnySetter + public AWSTagFilterCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSTagFilterCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,12 +160,14 @@ public boolean equals(Object o) { AWSTagFilterCreateRequest awsTagFilterCreateRequest = (AWSTagFilterCreateRequest) o; return Objects.equals(this.accountId, awsTagFilterCreateRequest.accountId) && Objects.equals(this.namespace, awsTagFilterCreateRequest.namespace) - && Objects.equals(this.tagFilterStr, awsTagFilterCreateRequest.tagFilterStr); + && Objects.equals(this.tagFilterStr, awsTagFilterCreateRequest.tagFilterStr) + && Objects.equals( + this.additionalProperties, awsTagFilterCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, namespace, tagFilterStr); + return Objects.hash(accountId, namespace, tagFilterStr, additionalProperties); } @Override @@ -125,6 +177,9 @@ public String toString() { sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" tagFilterStr: ").append(toIndentedString(tagFilterStr)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterDeleteRequest.java b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterDeleteRequest.java index 95ba04f53d7..7dd0c774c1b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterDeleteRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterDeleteRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The objects used to delete an AWS tag filter entry. */ @@ -73,6 +77,52 @@ public void setNamespace(AWSNamespace namespace) { this.namespace = namespace; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSTagFilterDeleteRequest + */ + @JsonAnySetter + public AWSTagFilterDeleteRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSTagFilterDeleteRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,14 @@ public boolean equals(Object o) { } AWSTagFilterDeleteRequest awsTagFilterDeleteRequest = (AWSTagFilterDeleteRequest) o; return Objects.equals(this.accountId, awsTagFilterDeleteRequest.accountId) - && Objects.equals(this.namespace, awsTagFilterDeleteRequest.namespace); + && Objects.equals(this.namespace, awsTagFilterDeleteRequest.namespace) + && Objects.equals( + this.additionalProperties, awsTagFilterDeleteRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, namespace); + return Objects.hash(accountId, namespace, additionalProperties); } @Override @@ -98,6 +150,9 @@ public String toString() { sb.append("class AWSTagFilterDeleteRequest {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterListResponse.java b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterListResponse.java index d4c15fb8aa6..4086aa43246 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AWSTagFilterListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An array of tag filter rules by namespace and tag filter string. */ @@ -56,6 +60,52 @@ public void setFilters(List filters) { this.filters = filters; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AWSTagFilterListResponse + */ + @JsonAnySetter + public AWSTagFilterListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AWSTagFilterListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } AWSTagFilterListResponse awsTagFilterListResponse = (AWSTagFilterListResponse) o; - return Objects.equals(this.filters, awsTagFilterListResponse.filters); + return Objects.equals(this.filters, awsTagFilterListResponse.filters) + && Objects.equals(this.additionalProperties, awsTagFilterListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filters); + return Objects.hash(filters, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AWSTagFilterListResponse {\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AddSignalToIncidentRequest.java b/src/main/java/com/datadog/api/client/v1/model/AddSignalToIncidentRequest.java index 5f8a3e7031a..a94b9082bb6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AddSignalToIncidentRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/AddSignalToIncidentRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes describing which incident to add the signal to. */ @@ -102,6 +106,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AddSignalToIncidentRequest + */ + @JsonAnySetter + public AddSignalToIncidentRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AddSignalToIncidentRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,14 @@ public boolean equals(Object o) { AddSignalToIncidentRequest addSignalToIncidentRequest = (AddSignalToIncidentRequest) o; return Objects.equals(this.addToSignalTimeline, addSignalToIncidentRequest.addToSignalTimeline) && Objects.equals(this.incidentId, addSignalToIncidentRequest.incidentId) - && Objects.equals(this.version, addSignalToIncidentRequest.version); + && Objects.equals(this.version, addSignalToIncidentRequest.version) + && Objects.equals( + this.additionalProperties, addSignalToIncidentRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(addToSignalTimeline, incidentId, version); + return Objects.hash(addToSignalTimeline, incidentId, version, additionalProperties); } @Override @@ -131,6 +183,9 @@ public String toString() { .append("\n"); sb.append(" incidentId: ").append(toIndentedString(incidentId)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AlertGraphWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/AlertGraphWidgetDefinition.java index 0a55cedb871..d8395f3cb91 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AlertGraphWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/AlertGraphWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -223,6 +227,52 @@ public void setVizType(WidgetVizType vizType) { this.vizType = vizType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AlertGraphWidgetDefinition + */ + @JsonAnySetter + public AlertGraphWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AlertGraphWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -239,12 +289,15 @@ public boolean equals(Object o) { && Objects.equals(this.titleAlign, alertGraphWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, alertGraphWidgetDefinition.titleSize) && Objects.equals(this.type, alertGraphWidgetDefinition.type) - && Objects.equals(this.vizType, alertGraphWidgetDefinition.vizType); + && Objects.equals(this.vizType, alertGraphWidgetDefinition.vizType) + && Objects.equals( + this.additionalProperties, alertGraphWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(alertId, time, title, titleAlign, titleSize, type, vizType); + return Objects.hash( + alertId, time, title, titleAlign, titleSize, type, vizType, additionalProperties); } @Override @@ -258,6 +311,9 @@ public String toString() { sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" vizType: ").append(toIndentedString(vizType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AlertValueWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/AlertValueWidgetDefinition.java index 1cd4c3ed80e..659601a0646 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AlertValueWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/AlertValueWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -245,6 +249,52 @@ public void setUnit(String unit) { this.unit = unit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AlertValueWidgetDefinition + */ + @JsonAnySetter + public AlertValueWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AlertValueWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -262,12 +312,23 @@ public boolean equals(Object o) { && Objects.equals(this.titleAlign, alertValueWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, alertValueWidgetDefinition.titleSize) && Objects.equals(this.type, alertValueWidgetDefinition.type) - && Objects.equals(this.unit, alertValueWidgetDefinition.unit); + && Objects.equals(this.unit, alertValueWidgetDefinition.unit) + && Objects.equals( + this.additionalProperties, alertValueWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(alertId, precision, textAlign, title, titleAlign, titleSize, type, unit); + return Objects.hash( + alertId, + precision, + textAlign, + title, + titleAlign, + titleSize, + type, + unit, + additionalProperties); } @Override @@ -282,6 +343,9 @@ public String toString() { sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApiKey.java b/src/main/java/com/datadog/api/client/v1/model/ApiKey.java index eca037aff2f..7f1d44fe033 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApiKey.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApiKey.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Datadog API key. */ @@ -92,6 +96,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApiKey + */ + @JsonAnySetter + public ApiKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApiKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -105,12 +155,13 @@ public boolean equals(Object o) { return Objects.equals(this.created, apiKey.created) && Objects.equals(this.createdBy, apiKey.createdBy) && Objects.equals(this.key, apiKey.key) - && Objects.equals(this.name, apiKey.name); + && Objects.equals(this.name, apiKey.name) + && Objects.equals(this.additionalProperties, apiKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(created, createdBy, key, name); + return Objects.hash(created, createdBy, key, name, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApiKeyListResponse.java b/src/main/java/com/datadog/api/client/v1/model/ApiKeyListResponse.java index 542a9f92439..80513fd2670 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApiKeyListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApiKeyListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List of API and application keys available for a given organization. */ @@ -56,6 +60,52 @@ public void setApiKeys(List apiKeys) { this.apiKeys = apiKeys; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApiKeyListResponse + */ + @JsonAnySetter + public ApiKeyListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApiKeyListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } ApiKeyListResponse apiKeyListResponse = (ApiKeyListResponse) o; - return Objects.equals(this.apiKeys, apiKeyListResponse.apiKeys); + return Objects.equals(this.apiKeys, apiKeyListResponse.apiKeys) + && Objects.equals(this.additionalProperties, apiKeyListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKeys); + return Objects.hash(apiKeys, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyListResponse {\n"); sb.append(" apiKeys: ").append(toIndentedString(apiKeys)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApiKeyResponse.java b/src/main/java/com/datadog/api/client/v1/model/ApiKeyResponse.java index f24d4fa7f9d..36aefe1313d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApiKeyResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApiKeyResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An API key with its associated metadata. */ @@ -43,6 +47,52 @@ public void setApiKey(ApiKey apiKey) { this.apiKey = apiKey; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApiKeyResponse + */ + @JsonAnySetter + public ApiKeyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApiKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } ApiKeyResponse apiKeyResponse = (ApiKeyResponse) o; - return Objects.equals(this.apiKey, apiKeyResponse.apiKey); + return Objects.equals(this.apiKey, apiKeyResponse.apiKey) + && Objects.equals(this.additionalProperties, apiKeyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey); + return Objects.hash(apiKey, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyResponse {\n"); sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryColumnType.java b/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryColumnType.java index 481488bf652..c7a275d74bf 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryColumnType.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryColumnType.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Column properties. */ @@ -135,6 +139,52 @@ public void setOrder(WidgetSort order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApmStatsQueryColumnType + */ + @JsonAnySetter + public ApmStatsQueryColumnType putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApmStatsQueryColumnType object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.alias, apmStatsQueryColumnType.alias) && Objects.equals(this.cellDisplayMode, apmStatsQueryColumnType.cellDisplayMode) && Objects.equals(this.name, apmStatsQueryColumnType.name) - && Objects.equals(this.order, apmStatsQueryColumnType.order); + && Objects.equals(this.order, apmStatsQueryColumnType.order) + && Objects.equals(this.additionalProperties, apmStatsQueryColumnType.additionalProperties); } @Override public int hashCode() { - return Objects.hash(alias, cellDisplayMode, name, order); + return Objects.hash(alias, cellDisplayMode, name, order, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" cellDisplayMode: ").append(toIndentedString(cellDisplayMode)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryDefinition.java index e848c41edc3..6289f5c3f6c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApmStatsQueryDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The APM stats query for table and distributions widgets. */ @@ -225,6 +229,52 @@ public void setService(String service) { this.service = service; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApmStatsQueryDefinition + */ + @JsonAnySetter + public ApmStatsQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApmStatsQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -241,12 +291,14 @@ public boolean equals(Object o) { && Objects.equals(this.primaryTag, apmStatsQueryDefinition.primaryTag) && Objects.equals(this.resource, apmStatsQueryDefinition.resource) && Objects.equals(this.rowType, apmStatsQueryDefinition.rowType) - && Objects.equals(this.service, apmStatsQueryDefinition.service); + && Objects.equals(this.service, apmStatsQueryDefinition.service) + && Objects.equals(this.additionalProperties, apmStatsQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(columns, env, name, primaryTag, resource, rowType, service); + return Objects.hash( + columns, env, name, primaryTag, resource, rowType, service, additionalProperties); } @Override @@ -260,6 +312,9 @@ public String toString() { sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" rowType: ").append(toIndentedString(rowType)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApplicationKey.java b/src/main/java/com/datadog/api/client/v1/model/ApplicationKey.java index 6727d6be976..17b6f2f1ad8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApplicationKey.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApplicationKey.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An application key with its associated metadata. */ @@ -76,6 +80,52 @@ public String getOwner() { return owner; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKey + */ + @JsonAnySetter + public ApplicationKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -88,12 +138,13 @@ public boolean equals(Object o) { ApplicationKey applicationKey = (ApplicationKey) o; return Objects.equals(this.hash, applicationKey.hash) && Objects.equals(this.name, applicationKey.name) - && Objects.equals(this.owner, applicationKey.owner); + && Objects.equals(this.owner, applicationKey.owner) + && Objects.equals(this.additionalProperties, applicationKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hash, name, owner); + return Objects.hash(hash, name, owner, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append(" hash: ").append(toIndentedString(hash)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyListResponse.java b/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyListResponse.java index 509cb54f380..7737d8140ba 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An application key response. */ @@ -56,6 +60,52 @@ public void setApplicationKeys(List applicationKeys) { this.applicationKeys = applicationKeys; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyListResponse + */ + @JsonAnySetter + public ApplicationKeyListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } ApplicationKeyListResponse applicationKeyListResponse = (ApplicationKeyListResponse) o; - return Objects.equals(this.applicationKeys, applicationKeyListResponse.applicationKeys); + return Objects.equals(this.applicationKeys, applicationKeyListResponse.applicationKeys) + && Objects.equals( + this.additionalProperties, applicationKeyListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(applicationKeys); + return Objects.hash(applicationKeys, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApplicationKeyListResponse {\n"); sb.append(" applicationKeys: ").append(toIndentedString(applicationKeys)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyResponse.java b/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyResponse.java index c61b0e9a148..2ba49f67b15 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/ApplicationKeyResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An application key response. */ @@ -43,6 +47,52 @@ public void setApplicationKey(ApplicationKey applicationKey) { this.applicationKey = applicationKey; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyResponse + */ + @JsonAnySetter + public ApplicationKeyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } ApplicationKeyResponse applicationKeyResponse = (ApplicationKeyResponse) o; - return Objects.equals(this.applicationKey, applicationKeyResponse.applicationKey); + return Objects.equals(this.applicationKey, applicationKeyResponse.applicationKey) + && Objects.equals(this.additionalProperties, applicationKeyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(applicationKey); + return Objects.hash(applicationKey, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApplicationKeyResponse {\n"); sb.append(" applicationKey: ").append(toIndentedString(applicationKey)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AuthenticationValidationResponse.java b/src/main/java/com/datadog/api/client/v1/model/AuthenticationValidationResponse.java index 4144d8d710e..006f91eb72a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AuthenticationValidationResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/AuthenticationValidationResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Represent validation endpoint responses. */ @@ -33,6 +37,52 @@ public Boolean getValid() { return valid; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthenticationValidationResponse + */ + @JsonAnySetter + public AuthenticationValidationResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthenticationValidationResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -44,12 +94,14 @@ public boolean equals(Object o) { } AuthenticationValidationResponse authenticationValidationResponse = (AuthenticationValidationResponse) o; - return Objects.equals(this.valid, authenticationValidationResponse.valid); + return Objects.equals(this.valid, authenticationValidationResponse.valid) + && Objects.equals( + this.additionalProperties, authenticationValidationResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(valid); + return Objects.hash(valid, additionalProperties); } @Override @@ -57,6 +109,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthenticationValidationResponse {\n"); sb.append(" valid: ").append(toIndentedString(valid)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/AzureAccount.java b/src/main/java/com/datadog/api/client/v1/model/AzureAccount.java index bcfe1cda45c..ee7a6200a87 100644 --- a/src/main/java/com/datadog/api/client/v1/model/AzureAccount.java +++ b/src/main/java/com/datadog/api/client/v1/model/AzureAccount.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Datadog-Azure integrations configured for your organization. */ @@ -230,6 +234,52 @@ public void setTenantName(String tenantName) { this.tenantName = tenantName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AzureAccount + */ + @JsonAnySetter + public AzureAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AzureAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -247,7 +297,8 @@ public boolean equals(Object o) { && Objects.equals(this.hostFilters, azureAccount.hostFilters) && Objects.equals(this.newClientId, azureAccount.newClientId) && Objects.equals(this.newTenantName, azureAccount.newTenantName) - && Objects.equals(this.tenantName, azureAccount.tenantName); + && Objects.equals(this.tenantName, azureAccount.tenantName) + && Objects.equals(this.additionalProperties, azureAccount.additionalProperties); } @Override @@ -260,7 +311,8 @@ public int hashCode() { hostFilters, newClientId, newTenantName, - tenantName); + tenantName, + additionalProperties); } @Override @@ -275,6 +327,9 @@ public String toString() { sb.append(" newClientId: ").append(toIndentedString(newClientId)).append("\n"); sb.append(" newTenantName: ").append(toIndentedString(newTenantName)).append("\n"); sb.append(" tenantName: ").append(toIndentedString(tenantName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/CancelDowntimesByScopeRequest.java b/src/main/java/com/datadog/api/client/v1/model/CancelDowntimesByScopeRequest.java index fb71f5bd3db..5a497f1ce2a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CancelDowntimesByScopeRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/CancelDowntimesByScopeRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Cancel downtimes according to scope. */ @@ -53,6 +57,52 @@ public void setScope(String scope) { this.scope = scope; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CancelDowntimesByScopeRequest + */ + @JsonAnySetter + public CancelDowntimesByScopeRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CancelDowntimesByScopeRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } CancelDowntimesByScopeRequest cancelDowntimesByScopeRequest = (CancelDowntimesByScopeRequest) o; - return Objects.equals(this.scope, cancelDowntimesByScopeRequest.scope); + return Objects.equals(this.scope, cancelDowntimesByScopeRequest.scope) + && Objects.equals( + this.additionalProperties, cancelDowntimesByScopeRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(scope); + return Objects.hash(scope, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CancelDowntimesByScopeRequest {\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/CanceledDowntimesIds.java b/src/main/java/com/datadog/api/client/v1/model/CanceledDowntimesIds.java index d8f87fdbeed..0986c4761e6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CanceledDowntimesIds.java +++ b/src/main/java/com/datadog/api/client/v1/model/CanceledDowntimesIds.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing array of IDs of canceled downtimes. */ @@ -52,6 +56,52 @@ public void setCancelledIds(List cancelledIds) { this.cancelledIds = cancelledIds; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CanceledDowntimesIds + */ + @JsonAnySetter + public CanceledDowntimesIds putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CanceledDowntimesIds object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } CanceledDowntimesIds canceledDowntimesIds = (CanceledDowntimesIds) o; - return Objects.equals(this.cancelledIds, canceledDowntimesIds.cancelledIds); + return Objects.equals(this.cancelledIds, canceledDowntimesIds.cancelledIds) + && Objects.equals(this.additionalProperties, canceledDowntimesIds.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cancelledIds); + return Objects.hash(cancelledIds, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CanceledDowntimesIds {\n"); sb.append(" cancelledIds: ").append(toIndentedString(cancelledIds)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetDefinition.java index ba3a15073f1..bcbdcc7502f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The Change graph shows you the change in a value over the time period chosen. */ @@ -241,6 +245,52 @@ public void setType(ChangeWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ChangeWidgetDefinition + */ + @JsonAnySetter + public ChangeWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ChangeWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -257,12 +307,14 @@ public boolean equals(Object o) { && Objects.equals(this.title, changeWidgetDefinition.title) && Objects.equals(this.titleAlign, changeWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, changeWidgetDefinition.titleSize) - && Objects.equals(this.type, changeWidgetDefinition.type); + && Objects.equals(this.type, changeWidgetDefinition.type) + && Objects.equals(this.additionalProperties, changeWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customLinks, requests, time, title, titleAlign, titleSize, type); + return Objects.hash( + customLinks, requests, time, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -276,6 +328,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetRequest.java index 6c9fbed6b4b..38d85e658aa 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ChangeWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated change widget. */ @@ -523,6 +527,52 @@ public void setShowPresent(Boolean showPresent) { this.showPresent = showPresent; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ChangeWidgetRequest + */ + @JsonAnySetter + public ChangeWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ChangeWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -550,7 +600,8 @@ public boolean equals(Object o) { && Objects.equals(this.responseFormat, changeWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, changeWidgetRequest.rumQuery) && Objects.equals(this.securityQuery, changeWidgetRequest.securityQuery) - && Objects.equals(this.showPresent, changeWidgetRequest.showPresent); + && Objects.equals(this.showPresent, changeWidgetRequest.showPresent) + && Objects.equals(this.additionalProperties, changeWidgetRequest.additionalProperties); } @Override @@ -573,7 +624,8 @@ public int hashCode() { responseFormat, rumQuery, securityQuery, - showPresent); + showPresent, + additionalProperties); } @Override @@ -600,6 +652,9 @@ public String toString() { sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); sb.append(" showPresent: ").append(toIndentedString(showPresent)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 c738f5df936..6915031e100 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -107,6 +109,52 @@ public void setErrors(Map> errors) { this.errors = JsonNullable.>>of(errors); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CheckCanDeleteMonitorResponse + */ + @JsonAnySetter + public CheckCanDeleteMonitorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CheckCanDeleteMonitorResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -118,12 +166,14 @@ public boolean equals(Object o) { } CheckCanDeleteMonitorResponse checkCanDeleteMonitorResponse = (CheckCanDeleteMonitorResponse) o; return Objects.equals(this.data, checkCanDeleteMonitorResponse.data) - && Objects.equals(this.errors, checkCanDeleteMonitorResponse.errors); + && Objects.equals(this.errors, checkCanDeleteMonitorResponse.errors) + && Objects.equals( + this.additionalProperties, checkCanDeleteMonitorResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -132,6 +182,9 @@ public String toString() { sb.append("class CheckCanDeleteMonitorResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponseData.java b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponseData.java index d88cbd3ce99..7efc8204bef 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponseData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Wrapper object with the list of monitor IDs. */ @@ -52,6 +56,52 @@ public void setOk(List ok) { this.ok = ok; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CheckCanDeleteMonitorResponseData + */ + @JsonAnySetter + public CheckCanDeleteMonitorResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CheckCanDeleteMonitorResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } CheckCanDeleteMonitorResponseData checkCanDeleteMonitorResponseData = (CheckCanDeleteMonitorResponseData) o; - return Objects.equals(this.ok, checkCanDeleteMonitorResponseData.ok); + return Objects.equals(this.ok, checkCanDeleteMonitorResponseData.ok) + && Objects.equals( + this.additionalProperties, checkCanDeleteMonitorResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(ok); + return Objects.hash(ok, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckCanDeleteMonitorResponseData {\n"); sb.append(" ok: ").append(toIndentedString(ok)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponse.java b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponse.java index f3ee747184a..38458bcb3ca 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponse.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -80,6 +82,52 @@ public void setErrors(Map errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CheckCanDeleteSLOResponse + */ + @JsonAnySetter + public CheckCanDeleteSLOResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CheckCanDeleteSLOResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +139,14 @@ public boolean equals(Object o) { } CheckCanDeleteSLOResponse checkCanDeleteSloResponse = (CheckCanDeleteSLOResponse) o; return Objects.equals(this.data, checkCanDeleteSloResponse.data) - && Objects.equals(this.errors, checkCanDeleteSloResponse.errors); + && Objects.equals(this.errors, checkCanDeleteSloResponse.errors) + && Objects.equals( + this.additionalProperties, checkCanDeleteSloResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -105,6 +155,9 @@ public String toString() { sb.append("class CheckCanDeleteSLOResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponseData.java b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponseData.java index a3c8178d4aa..22d5ae05540 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteSLOResponseData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An array of service level objective objects. */ @@ -52,6 +56,52 @@ public void setOk(List ok) { this.ok = ok; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CheckCanDeleteSLOResponseData + */ + @JsonAnySetter + public CheckCanDeleteSLOResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CheckCanDeleteSLOResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } CheckCanDeleteSLOResponseData checkCanDeleteSloResponseData = (CheckCanDeleteSLOResponseData) o; - return Objects.equals(this.ok, checkCanDeleteSloResponseData.ok); + return Objects.equals(this.ok, checkCanDeleteSloResponseData.ok) + && Objects.equals( + this.additionalProperties, checkCanDeleteSloResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(ok); + return Objects.hash(ok, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckCanDeleteSLOResponseData {\n"); sb.append(" ok: ").append(toIndentedString(ok)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/CheckStatusWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/CheckStatusWidgetDefinition.java index 8ce09a9e043..2e131ab59ed 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CheckStatusWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/CheckStatusWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Check status shows the current status or number of results for any check performed. */ @@ -313,6 +317,52 @@ public void setType(CheckStatusWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CheckStatusWidgetDefinition + */ + @JsonAnySetter + public CheckStatusWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CheckStatusWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -332,13 +382,25 @@ public boolean equals(Object o) { && Objects.equals(this.title, checkStatusWidgetDefinition.title) && Objects.equals(this.titleAlign, checkStatusWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, checkStatusWidgetDefinition.titleSize) - && Objects.equals(this.type, checkStatusWidgetDefinition.type); + && Objects.equals(this.type, checkStatusWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, checkStatusWidgetDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - check, group, groupBy, grouping, tags, time, title, titleAlign, titleSize, type); + check, + group, + groupBy, + grouping, + tags, + time, + title, + titleAlign, + titleSize, + type, + additionalProperties); } @Override @@ -355,6 +417,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Creator.java b/src/main/java/com/datadog/api/client/v1/model/Creator.java index bcb8812748a..a03304fc9ba 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Creator.java +++ b/src/main/java/com/datadog/api/client/v1/model/Creator.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -105,6 +109,52 @@ public void setName(String name) { this.name = JsonNullable.of(name); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Creator + */ + @JsonAnySetter + public Creator putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Creator object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +167,13 @@ public boolean equals(Object o) { Creator creator = (Creator) o; return Objects.equals(this.email, creator.email) && Objects.equals(this.handle, creator.handle) - && Objects.equals(this.name, creator.name); + && Objects.equals(this.name, creator.name) + && Objects.equals(this.additionalProperties, creator.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, handle, name); + return Objects.hash(email, handle, name, additionalProperties); } @Override @@ -132,6 +183,9 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Dashboard.java b/src/main/java/com/datadog/api/client/v1/model/Dashboard.java index 129cf856c40..3d975be9aef 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Dashboard.java +++ b/src/main/java/com/datadog/api/client/v1/model/Dashboard.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -13,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -564,6 +568,52 @@ public void setWidgets(List widgets) { this.widgets = widgets; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Dashboard + */ + @JsonAnySetter + public Dashboard putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Dashboard object is equal to o. */ @Override public boolean equals(Object o) { @@ -590,7 +640,8 @@ public boolean equals(Object o) { && Objects.equals(this.templateVariables, dashboard.templateVariables) && Objects.equals(this.title, dashboard.title) && Objects.equals(this.url, dashboard.url) - && Objects.equals(this.widgets, dashboard.widgets); + && Objects.equals(this.widgets, dashboard.widgets) + && Objects.equals(this.additionalProperties, dashboard.additionalProperties); } @Override @@ -612,7 +663,8 @@ public int hashCode() { templateVariables, title, url, - widgets); + widgets, + additionalProperties); } @Override @@ -638,6 +690,9 @@ public String toString() { sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" widgets: ").append(toIndentedString(widgets)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardBulkActionData.java b/src/main/java/com/datadog/api/client/v1/model/DashboardBulkActionData.java index 09c1fd3a7c1..0c17e475924 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardBulkActionData.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardBulkActionData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Dashboard bulk action request data. */ @@ -83,6 +87,52 @@ public void setType(DashboardResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardBulkActionData + */ + @JsonAnySetter + public DashboardBulkActionData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardBulkActionData object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } DashboardBulkActionData dashboardBulkActionData = (DashboardBulkActionData) o; return Objects.equals(this.id, dashboardBulkActionData.id) - && Objects.equals(this.type, dashboardBulkActionData.type); + && Objects.equals(this.type, dashboardBulkActionData.type) + && Objects.equals(this.additionalProperties, dashboardBulkActionData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class DashboardBulkActionData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardBulkDeleteRequest.java b/src/main/java/com/datadog/api/client/v1/model/DashboardBulkDeleteRequest.java index 057062fe138..c17771ac28c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardBulkDeleteRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardBulkDeleteRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Dashboard bulk delete request body. */ @@ -62,6 +66,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardBulkDeleteRequest + */ + @JsonAnySetter + public DashboardBulkDeleteRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardBulkDeleteRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,14 @@ public boolean equals(Object o) { return false; } DashboardBulkDeleteRequest dashboardBulkDeleteRequest = (DashboardBulkDeleteRequest) o; - return Objects.equals(this.data, dashboardBulkDeleteRequest.data); + return Objects.equals(this.data, dashboardBulkDeleteRequest.data) + && Objects.equals( + this.additionalProperties, dashboardBulkDeleteRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -85,6 +137,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardBulkDeleteRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardDeleteResponse.java b/src/main/java/com/datadog/api/client/v1/model/DashboardDeleteResponse.java index 6885d83a139..8ee7a3dfa49 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardDeleteResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardDeleteResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response from the delete dashboard call. */ @@ -42,6 +46,52 @@ public void setDeletedDashboardId(String deletedDashboardId) { this.deletedDashboardId = deletedDashboardId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardDeleteResponse + */ + @JsonAnySetter + public DashboardDeleteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardDeleteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } DashboardDeleteResponse dashboardDeleteResponse = (DashboardDeleteResponse) o; - return Objects.equals(this.deletedDashboardId, dashboardDeleteResponse.deletedDashboardId); + return Objects.equals(this.deletedDashboardId, dashboardDeleteResponse.deletedDashboardId) + && Objects.equals(this.additionalProperties, dashboardDeleteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedDashboardId); + return Objects.hash(deletedDashboardId, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardDeleteResponse {\n"); sb.append(" deletedDashboardId: ").append(toIndentedString(deletedDashboardId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardGlobalTime.java b/src/main/java/com/datadog/api/client/v1/model/DashboardGlobalTime.java index 88461f9a929..3172b53e221 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardGlobalTime.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardGlobalTime.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the live span selection for the dashboard. */ @@ -46,6 +50,52 @@ public void setLiveSpan(DashboardGlobalTimeLiveSpan liveSpan) { this.liveSpan = liveSpan; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardGlobalTime + */ + @JsonAnySetter + public DashboardGlobalTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardGlobalTime object is equal to o. */ @Override public boolean equals(Object o) { @@ -56,12 +106,13 @@ public boolean equals(Object o) { return false; } DashboardGlobalTime dashboardGlobalTime = (DashboardGlobalTime) o; - return Objects.equals(this.liveSpan, dashboardGlobalTime.liveSpan); + return Objects.equals(this.liveSpan, dashboardGlobalTime.liveSpan) + && Objects.equals(this.additionalProperties, dashboardGlobalTime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(liveSpan); + return Objects.hash(liveSpan, additionalProperties); } @Override @@ -69,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardGlobalTime {\n"); sb.append(" liveSpan: ").append(toIndentedString(liveSpan)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardList.java b/src/main/java/com/datadog/api/client/v1/model/DashboardList.java index 928739733fc..8ca28434b1a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardList.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardList.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Your Datadog Dashboards. */ @@ -164,6 +168,52 @@ public String getType() { return type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardList + */ + @JsonAnySetter + public DashboardList putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardList object is equal to o. */ @Override public boolean equals(Object o) { @@ -181,12 +231,22 @@ public boolean equals(Object o) { && Objects.equals(this.isFavorite, dashboardList.isFavorite) && Objects.equals(this.modified, dashboardList.modified) && Objects.equals(this.name, dashboardList.name) - && Objects.equals(this.type, dashboardList.type); + && Objects.equals(this.type, dashboardList.type) + && Objects.equals(this.additionalProperties, dashboardList.additionalProperties); } @Override public int hashCode() { - return Objects.hash(author, created, dashboardCount, id, isFavorite, modified, name, type); + return Objects.hash( + author, + created, + dashboardCount, + id, + isFavorite, + modified, + name, + type, + additionalProperties); } @Override @@ -201,6 +261,9 @@ public String toString() { sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardListDeleteResponse.java b/src/main/java/com/datadog/api/client/v1/model/DashboardListDeleteResponse.java index 81fe5c7a940..bf70b02b6f5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardListDeleteResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardListDeleteResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Deleted dashboard details. */ @@ -42,6 +46,52 @@ public void setDeletedDashboardListId(Long deletedDashboardListId) { this.deletedDashboardListId = deletedDashboardListId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListDeleteResponse + */ + @JsonAnySetter + public DashboardListDeleteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListDeleteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } DashboardListDeleteResponse dashboardListDeleteResponse = (DashboardListDeleteResponse) o; return Objects.equals( - this.deletedDashboardListId, dashboardListDeleteResponse.deletedDashboardListId); + this.deletedDashboardListId, dashboardListDeleteResponse.deletedDashboardListId) + && Objects.equals( + this.additionalProperties, dashboardListDeleteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedDashboardListId); + return Objects.hash(deletedDashboardListId, additionalProperties); } @Override @@ -68,6 +120,9 @@ public String toString() { sb.append(" deletedDashboardListId: ") .append(toIndentedString(deletedDashboardListId)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardListListResponse.java b/src/main/java/com/datadog/api/client/v1/model/DashboardListListResponse.java index 2218607afaa..1e87567d4f0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardListListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardListListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Information on your dashboard lists. */ @@ -56,6 +60,52 @@ public void setDashboardLists(List dashboardLists) { this.dashboardLists = dashboardLists; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListListResponse + */ + @JsonAnySetter + public DashboardListListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } DashboardListListResponse dashboardListListResponse = (DashboardListListResponse) o; - return Objects.equals(this.dashboardLists, dashboardListListResponse.dashboardLists); + return Objects.equals(this.dashboardLists, dashboardListListResponse.dashboardLists) + && Objects.equals( + this.additionalProperties, dashboardListListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboardLists); + return Objects.hash(dashboardLists, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardListListResponse {\n"); sb.append(" dashboardLists: ").append(toIndentedString(dashboardLists)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardRestoreRequest.java b/src/main/java/com/datadog/api/client/v1/model/DashboardRestoreRequest.java index a4f1474cbf9..735da356cc7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardRestoreRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardRestoreRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Dashboard restore request body. */ @@ -62,6 +66,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardRestoreRequest + */ + @JsonAnySetter + public DashboardRestoreRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardRestoreRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,13 @@ public boolean equals(Object o) { return false; } DashboardRestoreRequest dashboardRestoreRequest = (DashboardRestoreRequest) o; - return Objects.equals(this.data, dashboardRestoreRequest.data); + return Objects.equals(this.data, dashboardRestoreRequest.data) + && Objects.equals(this.additionalProperties, dashboardRestoreRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -85,6 +136,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardRestoreRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardSummary.java b/src/main/java/com/datadog/api/client/v1/model/DashboardSummary.java index 24e95b34cac..90e5a4b63e9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardSummary.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardSummary.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Dashboard summary response. */ @@ -56,6 +60,52 @@ public void setDashboards(List dashboards) { this.dashboards = dashboards; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardSummary + */ + @JsonAnySetter + public DashboardSummary putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardSummary object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } DashboardSummary dashboardSummary = (DashboardSummary) o; - return Objects.equals(this.dashboards, dashboardSummary.dashboards); + return Objects.equals(this.dashboards, dashboardSummary.dashboards) + && Objects.equals(this.additionalProperties, dashboardSummary.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboards); + return Objects.hash(dashboards, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardSummary {\n"); sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardSummaryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/DashboardSummaryDefinition.java index 03363c61782..e6a3c7407ec 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardSummaryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardSummaryDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -261,6 +265,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardSummaryDefinition + */ + @JsonAnySetter + public DashboardSummaryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardSummaryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -279,13 +329,24 @@ public boolean equals(Object o) { && Objects.equals(this.layoutType, dashboardSummaryDefinition.layoutType) && Objects.equals(this.modifiedAt, dashboardSummaryDefinition.modifiedAt) && Objects.equals(this.title, dashboardSummaryDefinition.title) - && Objects.equals(this.url, dashboardSummaryDefinition.url); + && Objects.equals(this.url, dashboardSummaryDefinition.url) + && Objects.equals( + this.additionalProperties, dashboardSummaryDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - authorHandle, createdAt, description, id, isReadOnly, layoutType, modifiedAt, title, url); + authorHandle, + createdAt, + description, + id, + isReadOnly, + layoutType, + modifiedAt, + title, + url, + additionalProperties); } @Override @@ -301,6 +362,9 @@ public String toString() { sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariable.java b/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariable.java index b3364dea27b..9bd6a597c36 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariable.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariable.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -212,6 +216,52 @@ public void setPrefix(String prefix) { this.prefix = JsonNullable.of(prefix); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardTemplateVariable + */ + @JsonAnySetter + public DashboardTemplateVariable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardTemplateVariable object is equal to o. */ @Override public boolean equals(Object o) { @@ -226,12 +276,14 @@ public boolean equals(Object o) { && Objects.equals(this._default, dashboardTemplateVariable._default) && Objects.equals(this.defaults, dashboardTemplateVariable.defaults) && Objects.equals(this.name, dashboardTemplateVariable.name) - && Objects.equals(this.prefix, dashboardTemplateVariable.prefix); + && Objects.equals(this.prefix, dashboardTemplateVariable.prefix) + && Objects.equals( + this.additionalProperties, dashboardTemplateVariable.additionalProperties); } @Override public int hashCode() { - return Objects.hash(availableValues, _default, defaults, name, prefix); + return Objects.hash(availableValues, _default, defaults, name, prefix, additionalProperties); } @Override @@ -243,6 +295,9 @@ public String toString() { sb.append(" defaults: ").append(toIndentedString(defaults)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePreset.java b/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePreset.java index 030dc81a247..103c7f601f3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePreset.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePreset.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Template variables saved views. */ @@ -85,6 +89,52 @@ public void setTemplateVariables(List temp this.templateVariables = templateVariables; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardTemplateVariablePreset + */ + @JsonAnySetter + public DashboardTemplateVariablePreset putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardTemplateVariablePreset object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,13 +147,14 @@ public boolean equals(Object o) { DashboardTemplateVariablePreset dashboardTemplateVariablePreset = (DashboardTemplateVariablePreset) o; return Objects.equals(this.name, dashboardTemplateVariablePreset.name) + && Objects.equals(this.templateVariables, dashboardTemplateVariablePreset.templateVariables) && Objects.equals( - this.templateVariables, dashboardTemplateVariablePreset.templateVariables); + this.additionalProperties, dashboardTemplateVariablePreset.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, templateVariables); + return Objects.hash(name, templateVariables, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class DashboardTemplateVariablePreset {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" templateVariables: ").append(toIndentedString(templateVariables)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePresetValue.java b/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePresetValue.java index 9d4df1c23d5..f308f239001 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePresetValue.java +++ b/src/main/java/com/datadog/api/client/v1/model/DashboardTemplateVariablePresetValue.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Template variables saved views. */ @@ -110,6 +114,52 @@ public void setValues(List values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardTemplateVariablePresetValue + */ + @JsonAnySetter + public DashboardTemplateVariablePresetValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardTemplateVariablePresetValue object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +173,14 @@ public boolean equals(Object o) { (DashboardTemplateVariablePresetValue) o; return Objects.equals(this.name, dashboardTemplateVariablePresetValue.name) && Objects.equals(this.value, dashboardTemplateVariablePresetValue.value) - && Objects.equals(this.values, dashboardTemplateVariablePresetValue.values); + && Objects.equals(this.values, dashboardTemplateVariablePresetValue.values) + && Objects.equals( + this.additionalProperties, dashboardTemplateVariablePresetValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, value, values); + return Objects.hash(name, value, values, additionalProperties); } @Override @@ -138,6 +190,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DeleteSharedDashboardResponse.java b/src/main/java/com/datadog/api/client/v1/model/DeleteSharedDashboardResponse.java index bf03bfbfa5e..9ed898186ba 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DeleteSharedDashboardResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/DeleteSharedDashboardResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing token of deleted shared dashboard. */ @@ -44,6 +48,52 @@ public void setDeletedPublicDashboardToken(String deletedPublicDashboardToken) { this.deletedPublicDashboardToken = deletedPublicDashboardToken; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DeleteSharedDashboardResponse + */ + @JsonAnySetter + public DeleteSharedDashboardResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DeleteSharedDashboardResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,13 +105,15 @@ public boolean equals(Object o) { } DeleteSharedDashboardResponse deleteSharedDashboardResponse = (DeleteSharedDashboardResponse) o; return Objects.equals( - this.deletedPublicDashboardToken, - deleteSharedDashboardResponse.deletedPublicDashboardToken); + this.deletedPublicDashboardToken, + deleteSharedDashboardResponse.deletedPublicDashboardToken) + && Objects.equals( + this.additionalProperties, deleteSharedDashboardResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedPublicDashboardToken); + return Objects.hash(deletedPublicDashboardToken, additionalProperties); } @Override @@ -71,6 +123,9 @@ public String toString() { sb.append(" deletedPublicDashboardToken: ") .append(toIndentedString(deletedPublicDashboardToken)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DeletedMonitor.java b/src/main/java/com/datadog/api/client/v1/model/DeletedMonitor.java index d9606218cee..bf9db60d5fb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DeletedMonitor.java +++ b/src/main/java/com/datadog/api/client/v1/model/DeletedMonitor.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response from the delete monitor call. */ @@ -42,6 +46,52 @@ public void setDeletedMonitorId(Long deletedMonitorId) { this.deletedMonitorId = deletedMonitorId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DeletedMonitor + */ + @JsonAnySetter + public DeletedMonitor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DeletedMonitor object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } DeletedMonitor deletedMonitor = (DeletedMonitor) o; - return Objects.equals(this.deletedMonitorId, deletedMonitor.deletedMonitorId); + return Objects.equals(this.deletedMonitorId, deletedMonitor.deletedMonitorId) + && Objects.equals(this.additionalProperties, deletedMonitor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedMonitorId); + return Objects.hash(deletedMonitorId, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeletedMonitor {\n"); sb.append(" deletedMonitorId: ").append(toIndentedString(deletedMonitorId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DistributionPointsPayload.java b/src/main/java/com/datadog/api/client/v1/model/DistributionPointsPayload.java index e23a2a2b2ae..5a3a0312379 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DistributionPointsPayload.java +++ b/src/main/java/com/datadog/api/client/v1/model/DistributionPointsPayload.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The distribution points payload. */ @@ -62,6 +66,52 @@ public void setSeries(List series) { this.series = series; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DistributionPointsPayload + */ + @JsonAnySetter + public DistributionPointsPayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DistributionPointsPayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,14 @@ public boolean equals(Object o) { return false; } DistributionPointsPayload distributionPointsPayload = (DistributionPointsPayload) o; - return Objects.equals(this.series, distributionPointsPayload.series); + return Objects.equals(this.series, distributionPointsPayload.series) + && Objects.equals( + this.additionalProperties, distributionPointsPayload.additionalProperties); } @Override public int hashCode() { - return Objects.hash(series); + return Objects.hash(series, additionalProperties); } @Override @@ -85,6 +137,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DistributionPointsPayload {\n"); sb.append(" series: ").append(toIndentedString(series)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DistributionPointsSeries.java b/src/main/java/com/datadog/api/client/v1/model/DistributionPointsSeries.java index 0d4437d7c6b..524213d9e13 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DistributionPointsSeries.java +++ b/src/main/java/com/datadog/api/client/v1/model/DistributionPointsSeries.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A distribution points metric to submit to Datadog. */ @@ -174,6 +178,52 @@ public void setType(DistributionPointsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DistributionPointsSeries + */ + @JsonAnySetter + public DistributionPointsSeries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DistributionPointsSeries object is equal to o. */ @Override public boolean equals(Object o) { @@ -188,12 +238,13 @@ public boolean equals(Object o) { && Objects.equals(this.metric, distributionPointsSeries.metric) && Objects.equals(this.points, distributionPointsSeries.points) && Objects.equals(this.tags, distributionPointsSeries.tags) - && Objects.equals(this.type, distributionPointsSeries.type); + && Objects.equals(this.type, distributionPointsSeries.type) + && Objects.equals(this.additionalProperties, distributionPointsSeries.additionalProperties); } @Override public int hashCode() { - return Objects.hash(host, metric, points, tags, type); + return Objects.hash(host, metric, points, tags, type, additionalProperties); } @Override @@ -205,6 +256,9 @@ public String toString() { sb.append(" points: ").append(toIndentedString(points)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetDefinition.java index bb8f7874bff..0d248b8964e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -354,6 +358,52 @@ public void setYaxis(DistributionWidgetYAxis yaxis) { this.yaxis = yaxis; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DistributionWidgetDefinition + */ + @JsonAnySetter + public DistributionWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DistributionWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -374,7 +424,9 @@ public boolean equals(Object o) { && Objects.equals(this.titleSize, distributionWidgetDefinition.titleSize) && Objects.equals(this.type, distributionWidgetDefinition.type) && Objects.equals(this.xaxis, distributionWidgetDefinition.xaxis) - && Objects.equals(this.yaxis, distributionWidgetDefinition.yaxis); + && Objects.equals(this.yaxis, distributionWidgetDefinition.yaxis) + && Objects.equals( + this.additionalProperties, distributionWidgetDefinition.additionalProperties); } @Override @@ -390,7 +442,8 @@ public int hashCode() { titleSize, type, xaxis, - yaxis); + yaxis, + additionalProperties); } @Override @@ -408,6 +461,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" xaxis: ").append(toIndentedString(xaxis)).append("\n"); sb.append(" yaxis: ").append(toIndentedString(yaxis)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetRequest.java index 7768999d60e..4e5fa0fae57 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated distribution widget. */ @@ -359,6 +363,52 @@ public void setStyle(WidgetStyle style) { this.style = style; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DistributionWidgetRequest + */ + @JsonAnySetter + public DistributionWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DistributionWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -381,7 +431,9 @@ public boolean equals(Object o) { && Objects.equals(this.requestType, distributionWidgetRequest.requestType) && Objects.equals(this.rumQuery, distributionWidgetRequest.rumQuery) && Objects.equals(this.securityQuery, distributionWidgetRequest.securityQuery) - && Objects.equals(this.style, distributionWidgetRequest.style); + && Objects.equals(this.style, distributionWidgetRequest.style) + && Objects.equals( + this.additionalProperties, distributionWidgetRequest.additionalProperties); } @Override @@ -399,7 +451,8 @@ public int hashCode() { requestType, rumQuery, securityQuery, - style); + style, + additionalProperties); } @Override @@ -421,6 +474,9 @@ public String toString() { sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetXAxis.java b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetXAxis.java index 44ce4b3d575..eff373b7fb3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetXAxis.java +++ b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetXAxis.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** X Axis controls for the distribution widget. */ @@ -121,6 +125,52 @@ public void setScale(String scale) { this.scale = scale; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DistributionWidgetXAxis + */ + @JsonAnySetter + public DistributionWidgetXAxis putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DistributionWidgetXAxis object is equal to o. */ @Override public boolean equals(Object o) { @@ -134,12 +184,13 @@ public boolean equals(Object o) { return Objects.equals(this.includeZero, distributionWidgetXAxis.includeZero) && Objects.equals(this.max, distributionWidgetXAxis.max) && Objects.equals(this.min, distributionWidgetXAxis.min) - && Objects.equals(this.scale, distributionWidgetXAxis.scale); + && Objects.equals(this.scale, distributionWidgetXAxis.scale) + && Objects.equals(this.additionalProperties, distributionWidgetXAxis.additionalProperties); } @Override public int hashCode() { - return Objects.hash(includeZero, max, min, scale); + return Objects.hash(includeZero, max, min, scale, additionalProperties); } @Override @@ -150,6 +201,9 @@ public String toString() { sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append(" scale: ").append(toIndentedString(scale)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetYAxis.java b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetYAxis.java index 9d3279013d7..cdfd43f0e5b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetYAxis.java +++ b/src/main/java/com/datadog/api/client/v1/model/DistributionWidgetYAxis.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Y Axis controls for the distribution widget. */ @@ -145,6 +149,52 @@ public void setScale(String scale) { this.scale = scale; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DistributionWidgetYAxis + */ + @JsonAnySetter + public DistributionWidgetYAxis putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DistributionWidgetYAxis object is equal to o. */ @Override public boolean equals(Object o) { @@ -159,12 +209,13 @@ public boolean equals(Object o) { && Objects.equals(this.label, distributionWidgetYAxis.label) && Objects.equals(this.max, distributionWidgetYAxis.max) && Objects.equals(this.min, distributionWidgetYAxis.min) - && Objects.equals(this.scale, distributionWidgetYAxis.scale); + && Objects.equals(this.scale, distributionWidgetYAxis.scale) + && Objects.equals(this.additionalProperties, distributionWidgetYAxis.additionalProperties); } @Override public int hashCode() { - return Objects.hash(includeZero, label, max, min, scale); + return Objects.hash(includeZero, label, max, min, scale, additionalProperties); } @Override @@ -176,6 +227,9 @@ public String toString() { sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append(" scale: ").append(toIndentedString(scale)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 1e220f38eca..df5c084373c 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -609,6 +613,52 @@ private void setUpdaterId_JsonNullable(JsonNullable updaterId) { this.updaterId = updaterId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Downtime + */ + @JsonAnySetter + public Downtime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Downtime object is equal to o. */ @Override public boolean equals(Object o) { @@ -639,7 +689,8 @@ public boolean equals(Object o) { && Objects.equals(this.scope, downtime.scope) && Objects.equals(this.start, downtime.start) && Objects.equals(this.timezone, downtime.timezone) - && Objects.equals(this.updaterId, downtime.updaterId); + && Objects.equals(this.updaterId, downtime.updaterId) + && Objects.equals(this.additionalProperties, downtime.additionalProperties); } @Override @@ -664,7 +715,8 @@ public int hashCode() { scope, start, timezone, - updaterId); + updaterId, + additionalProperties); } @Override @@ -693,6 +745,9 @@ public String toString() { sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" updaterId: ").append(toIndentedString(updaterId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 21d933f4859..c47de5c5bed 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -577,6 +581,52 @@ private void setUpdaterId_JsonNullable(JsonNullable updaterId) { this.updaterId = updaterId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DowntimeChild + */ + @JsonAnySetter + public DowntimeChild putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DowntimeChild object is equal to o. */ @Override public boolean equals(Object o) { @@ -606,7 +656,8 @@ public boolean equals(Object o) { && Objects.equals(this.scope, downtimeChild.scope) && Objects.equals(this.start, downtimeChild.start) && Objects.equals(this.timezone, downtimeChild.timezone) - && Objects.equals(this.updaterId, downtimeChild.updaterId); + && Objects.equals(this.updaterId, downtimeChild.updaterId) + && Objects.equals(this.additionalProperties, downtimeChild.additionalProperties); } @Override @@ -630,7 +681,8 @@ public int hashCode() { scope, start, timezone, - updaterId); + updaterId, + additionalProperties); } @Override @@ -658,6 +710,9 @@ public String toString() { sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" updaterId: ").append(toIndentedString(updaterId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/DowntimeRecurrence.java b/src/main/java/com/datadog/api/client/v1/model/DowntimeRecurrence.java index 67d2b53bb78..62b68437ce8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DowntimeRecurrence.java +++ b/src/main/java/com/datadog/api/client/v1/model/DowntimeRecurrence.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -230,6 +234,52 @@ public void setWeekDays(List weekDays) { this.weekDays = JsonNullable.>of(weekDays); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DowntimeRecurrence + */ + @JsonAnySetter + public DowntimeRecurrence putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DowntimeRecurrence object is equal to o. */ @Override public boolean equals(Object o) { @@ -245,12 +295,14 @@ public boolean equals(Object o) { && Objects.equals(this.type, downtimeRecurrence.type) && Objects.equals(this.untilDate, downtimeRecurrence.untilDate) && Objects.equals(this.untilOccurrences, downtimeRecurrence.untilOccurrences) - && Objects.equals(this.weekDays, downtimeRecurrence.weekDays); + && Objects.equals(this.weekDays, downtimeRecurrence.weekDays) + && Objects.equals(this.additionalProperties, downtimeRecurrence.additionalProperties); } @Override public int hashCode() { - return Objects.hash(period, rrule, type, untilDate, untilOccurrences, weekDays); + return Objects.hash( + period, rrule, type, untilDate, untilOccurrences, weekDays, additionalProperties); } @Override @@ -263,6 +315,9 @@ public String toString() { sb.append(" untilDate: ").append(toIndentedString(untilDate)).append("\n"); sb.append(" untilOccurrences: ").append(toIndentedString(untilOccurrences)).append("\n"); sb.append(" weekDays: ").append(toIndentedString(weekDays)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Event.java b/src/main/java/com/datadog/api/client/v1/model/Event.java index 3791a569e9e..dc4961ce2aa 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Event.java +++ b/src/main/java/com/datadog/api/client/v1/model/Event.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -346,6 +350,52 @@ public String getUrl() { return url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Event + */ + @JsonAnySetter + public Event putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Event object is equal to o. */ @Override public boolean equals(Object o) { @@ -368,7 +418,8 @@ public boolean equals(Object o) { && Objects.equals(this.tags, event.tags) && Objects.equals(this.text, event.text) && Objects.equals(this.title, event.title) - && Objects.equals(this.url, event.url); + && Objects.equals(this.url, event.url) + && Objects.equals(this.additionalProperties, event.additionalProperties); } @Override @@ -386,7 +437,8 @@ public int hashCode() { tags, text, title, - url); + url, + additionalProperties); } @Override @@ -406,6 +458,9 @@ public String toString() { sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventCreateRequest.java b/src/main/java/com/datadog/api/client/v1/model/EventCreateRequest.java index b9f231dce4c..80bd5d3c4a5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventCreateRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -341,6 +345,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventCreateRequest + */ + @JsonAnySetter + public EventCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -361,7 +411,8 @@ public boolean equals(Object o) { && Objects.equals(this.sourceTypeName, eventCreateRequest.sourceTypeName) && Objects.equals(this.tags, eventCreateRequest.tags) && Objects.equals(this.text, eventCreateRequest.text) - && Objects.equals(this.title, eventCreateRequest.title); + && Objects.equals(this.title, eventCreateRequest.title) + && Objects.equals(this.additionalProperties, eventCreateRequest.additionalProperties); } @Override @@ -377,7 +428,8 @@ public int hashCode() { sourceTypeName, tags, text, - title); + title, + additionalProperties); } @Override @@ -395,6 +447,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventCreateResponse.java b/src/main/java/com/datadog/api/client/v1/model/EventCreateResponse.java index ba9658fd866..90486f00b6b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventCreateResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventCreateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing an event response. */ @@ -70,6 +74,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventCreateResponse + */ + @JsonAnySetter + public EventCreateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventCreateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } EventCreateResponse eventCreateResponse = (EventCreateResponse) o; return Objects.equals(this.event, eventCreateResponse.event) - && Objects.equals(this.status, eventCreateResponse.status); + && Objects.equals(this.status, eventCreateResponse.status) + && Objects.equals(this.additionalProperties, eventCreateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(event, status); + return Objects.hash(event, status, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class EventCreateResponse {\n"); sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventListResponse.java b/src/main/java/com/datadog/api/client/v1/model/EventListResponse.java index 0b260fd8a9f..297ac0b9fb5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An event list response. */ @@ -80,6 +84,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventListResponse + */ + @JsonAnySetter + public EventListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,13 @@ public boolean equals(Object o) { } EventListResponse eventListResponse = (EventListResponse) o; return Objects.equals(this.events, eventListResponse.events) - && Objects.equals(this.status, eventListResponse.status); + && Objects.equals(this.status, eventListResponse.status) + && Objects.equals(this.additionalProperties, eventListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(events, status); + return Objects.hash(events, status, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append("class EventListResponse {\n"); sb.append(" events: ").append(toIndentedString(events)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/EventQueryDefinition.java index b03e331f69d..a228080cffe 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventQueryDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The event query. */ @@ -78,6 +82,52 @@ public void setTagsExecution(String tagsExecution) { this.tagsExecution = tagsExecution; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventQueryDefinition + */ + @JsonAnySetter + public EventQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { } EventQueryDefinition eventQueryDefinition = (EventQueryDefinition) o; return Objects.equals(this.search, eventQueryDefinition.search) - && Objects.equals(this.tagsExecution, eventQueryDefinition.tagsExecution); + && Objects.equals(this.tagsExecution, eventQueryDefinition.tagsExecution) + && Objects.equals(this.additionalProperties, eventQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(search, tagsExecution); + return Objects.hash(search, tagsExecution, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append("class EventQueryDefinition {\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); sb.append(" tagsExecution: ").append(toIndentedString(tagsExecution)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventResponse.java b/src/main/java/com/datadog/api/client/v1/model/EventResponse.java index 1397668cd7e..2de11a83dfb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing an event response. */ @@ -67,6 +71,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventResponse + */ + @JsonAnySetter + public EventResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -78,12 +128,13 @@ public boolean equals(Object o) { } EventResponse eventResponse = (EventResponse) o; return Objects.equals(this.event, eventResponse.event) - && Objects.equals(this.status, eventResponse.status); + && Objects.equals(this.status, eventResponse.status) + && Objects.equals(this.additionalProperties, eventResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(event, status); + return Objects.hash(event, status, additionalProperties); } @Override @@ -92,6 +143,9 @@ public String toString() { sb.append("class EventResponse {\n"); sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventStreamWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/EventStreamWidgetDefinition.java index e840f3f8004..ba9f74dc66a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventStreamWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventStreamWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -246,6 +250,52 @@ public void setType(EventStreamWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventStreamWidgetDefinition + */ + @JsonAnySetter + public EventStreamWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventStreamWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -263,12 +313,23 @@ public boolean equals(Object o) { && Objects.equals(this.title, eventStreamWidgetDefinition.title) && Objects.equals(this.titleAlign, eventStreamWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, eventStreamWidgetDefinition.titleSize) - && Objects.equals(this.type, eventStreamWidgetDefinition.type); + && Objects.equals(this.type, eventStreamWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, eventStreamWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(eventSize, query, tagsExecution, time, title, titleAlign, titleSize, type); + return Objects.hash( + eventSize, + query, + tagsExecution, + time, + title, + titleAlign, + titleSize, + type, + additionalProperties); } @Override @@ -283,6 +344,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/EventTimelineWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/EventTimelineWidgetDefinition.java index 595c1022388..5dfa602e13b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/EventTimelineWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/EventTimelineWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -217,6 +221,52 @@ public void setType(EventTimelineWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventTimelineWidgetDefinition + */ + @JsonAnySetter + public EventTimelineWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventTimelineWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -233,12 +283,15 @@ public boolean equals(Object o) { && Objects.equals(this.title, eventTimelineWidgetDefinition.title) && Objects.equals(this.titleAlign, eventTimelineWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, eventTimelineWidgetDefinition.titleSize) - && Objects.equals(this.type, eventTimelineWidgetDefinition.type); + && Objects.equals(this.type, eventTimelineWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, eventTimelineWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query, tagsExecution, time, title, titleAlign, titleSize, type); + return Objects.hash( + query, tagsExecution, time, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -252,6 +305,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmDependencyStatsQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmDependencyStatsQueryDefinition.java index 7d263e7b7af..af91fc07bd9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmDependencyStatsQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmDependencyStatsQueryDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A formula and functions APM dependency stats query. */ @@ -301,6 +305,53 @@ public void setStat(FormulaAndFunctionApmDependencyStatName stat) { this.stat = stat; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionApmDependencyStatsQueryDefinition + */ + @JsonAnySetter + public FormulaAndFunctionApmDependencyStatsQueryDefinition putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** * Return true if this FormulaAndFunctionApmDependencyStatsQueryDefinition object is equal to o. */ @@ -331,7 +382,10 @@ public boolean equals(Object o) { && Objects.equals( this.resourceName, formulaAndFunctionApmDependencyStatsQueryDefinition.resourceName) && Objects.equals(this.service, formulaAndFunctionApmDependencyStatsQueryDefinition.service) - && Objects.equals(this.stat, formulaAndFunctionApmDependencyStatsQueryDefinition.stat); + && Objects.equals(this.stat, formulaAndFunctionApmDependencyStatsQueryDefinition.stat) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionApmDependencyStatsQueryDefinition.additionalProperties); } @Override @@ -346,7 +400,8 @@ public int hashCode() { primaryTagValue, resourceName, service, - stat); + stat, + additionalProperties); } @Override @@ -363,6 +418,9 @@ public String toString() { sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" stat: ").append(toIndentedString(stat)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmResourceStatsQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmResourceStatsQueryDefinition.java index 41f63d35340..5467dc858b8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmResourceStatsQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionApmResourceStatsQueryDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** APM resource stats query using formulas and functions. */ @@ -308,6 +312,53 @@ public void setStat(FormulaAndFunctionApmResourceStatName stat) { this.stat = stat; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionApmResourceStatsQueryDefinition + */ + @JsonAnySetter + public FormulaAndFunctionApmResourceStatsQueryDefinition putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionApmResourceStatsQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -334,7 +385,10 @@ public boolean equals(Object o) { && Objects.equals( this.resourceName, formulaAndFunctionApmResourceStatsQueryDefinition.resourceName) && Objects.equals(this.service, formulaAndFunctionApmResourceStatsQueryDefinition.service) - && Objects.equals(this.stat, formulaAndFunctionApmResourceStatsQueryDefinition.stat); + && Objects.equals(this.stat, formulaAndFunctionApmResourceStatsQueryDefinition.stat) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionApmResourceStatsQueryDefinition.additionalProperties); } @Override @@ -349,7 +403,8 @@ public int hashCode() { primaryTagValue, resourceName, service, - stat); + stat, + additionalProperties); } @Override @@ -366,6 +421,9 @@ public String toString() { sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" stat: ").append(toIndentedString(stat)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinition.java index 3a300aa9b02..56e354a7a48 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A formula and functions events query. */ @@ -242,6 +246,52 @@ public void setStorage(String storage) { this.storage = storage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionEventQueryDefinition + */ + @JsonAnySetter + public FormulaAndFunctionEventQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionEventQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -259,12 +309,15 @@ public boolean equals(Object o) { && Objects.equals(this.indexes, formulaAndFunctionEventQueryDefinition.indexes) && Objects.equals(this.name, formulaAndFunctionEventQueryDefinition.name) && Objects.equals(this.search, formulaAndFunctionEventQueryDefinition.search) - && Objects.equals(this.storage, formulaAndFunctionEventQueryDefinition.storage); + && Objects.equals(this.storage, formulaAndFunctionEventQueryDefinition.storage) + && Objects.equals( + this.additionalProperties, formulaAndFunctionEventQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, dataSource, groupBy, indexes, name, search, storage); + return Objects.hash( + compute, dataSource, groupBy, indexes, name, search, storage, additionalProperties); } @Override @@ -278,6 +331,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionCompute.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionCompute.java index ef404da3e6f..b3a275b9547 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionCompute.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Compute options. */ @@ -109,6 +113,53 @@ public void setMetric(String metric) { this.metric = metric; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionEventQueryDefinitionCompute + */ + @JsonAnySetter + public FormulaAndFunctionEventQueryDefinitionCompute putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionEventQueryDefinitionCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +174,15 @@ public boolean equals(Object o) { return Objects.equals( this.aggregation, formulaAndFunctionEventQueryDefinitionCompute.aggregation) && Objects.equals(this.interval, formulaAndFunctionEventQueryDefinitionCompute.interval) - && Objects.equals(this.metric, formulaAndFunctionEventQueryDefinitionCompute.metric); + && Objects.equals(this.metric, formulaAndFunctionEventQueryDefinitionCompute.metric) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionEventQueryDefinitionCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, interval, metric); + return Objects.hash(aggregation, interval, metric, additionalProperties); } @Override @@ -138,6 +192,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionSearch.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionSearch.java index 8b87d1ac380..99013e5a975 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionSearch.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryDefinitionSearch.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Search options. */ @@ -50,6 +54,53 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionEventQueryDefinitionSearch + */ + @JsonAnySetter + public FormulaAndFunctionEventQueryDefinitionSearch putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionEventQueryDefinitionSearch object is equal to o. */ @Override public boolean equals(Object o) { @@ -61,12 +112,15 @@ public boolean equals(Object o) { } FormulaAndFunctionEventQueryDefinitionSearch formulaAndFunctionEventQueryDefinitionSearch = (FormulaAndFunctionEventQueryDefinitionSearch) o; - return Objects.equals(this.query, formulaAndFunctionEventQueryDefinitionSearch.query); + return Objects.equals(this.query, formulaAndFunctionEventQueryDefinitionSearch.query) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionEventQueryDefinitionSearch.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -74,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FormulaAndFunctionEventQueryDefinitionSearch {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBy.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBy.java index b7f2d726df7..fb36749ce0c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBy.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of objects used to group by. */ @@ -103,6 +107,52 @@ public void setSort(FormulaAndFunctionEventQueryGroupBySort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionEventQueryGroupBy + */ + @JsonAnySetter + public FormulaAndFunctionEventQueryGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionEventQueryGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,12 +166,14 @@ public boolean equals(Object o) { (FormulaAndFunctionEventQueryGroupBy) o; return Objects.equals(this.facet, formulaAndFunctionEventQueryGroupBy.facet) && Objects.equals(this.limit, formulaAndFunctionEventQueryGroupBy.limit) - && Objects.equals(this.sort, formulaAndFunctionEventQueryGroupBy.sort); + && Objects.equals(this.sort, formulaAndFunctionEventQueryGroupBy.sort) + && Objects.equals( + this.additionalProperties, formulaAndFunctionEventQueryGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, limit, sort); + return Objects.hash(facet, limit, sort, additionalProperties); } @Override @@ -131,6 +183,9 @@ public String toString() { sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBySort.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBySort.java index aa2da3a9ea2..201d9a476fd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBySort.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionEventQueryGroupBySort.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options for sorting group by results. */ @@ -113,6 +117,52 @@ public void setOrder(QuerySortOrder order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionEventQueryGroupBySort + */ + @JsonAnySetter + public FormulaAndFunctionEventQueryGroupBySort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionEventQueryGroupBySort object is equal to o. */ @Override public boolean equals(Object o) { @@ -126,12 +176,15 @@ public boolean equals(Object o) { (FormulaAndFunctionEventQueryGroupBySort) o; return Objects.equals(this.aggregation, formulaAndFunctionEventQueryGroupBySort.aggregation) && Objects.equals(this.metric, formulaAndFunctionEventQueryGroupBySort.metric) - && Objects.equals(this.order, formulaAndFunctionEventQueryGroupBySort.order); + && Objects.equals(this.order, formulaAndFunctionEventQueryGroupBySort.order) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionEventQueryGroupBySort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, metric, order); + return Objects.hash(aggregation, metric, order, additionalProperties); } @Override @@ -141,6 +194,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionMetricQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionMetricQueryDefinition.java index eef7077eea3..f8d88498df6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionMetricQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionMetricQueryDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A formula and functions metrics query. */ @@ -141,6 +145,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionMetricQueryDefinition + */ + @JsonAnySetter + public FormulaAndFunctionMetricQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionMetricQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -155,12 +205,15 @@ public boolean equals(Object o) { return Objects.equals(this.aggregator, formulaAndFunctionMetricQueryDefinition.aggregator) && Objects.equals(this.dataSource, formulaAndFunctionMetricQueryDefinition.dataSource) && Objects.equals(this.name, formulaAndFunctionMetricQueryDefinition.name) - && Objects.equals(this.query, formulaAndFunctionMetricQueryDefinition.query); + && Objects.equals(this.query, formulaAndFunctionMetricQueryDefinition.query) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionMetricQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregator, dataSource, name, query); + return Objects.hash(aggregator, dataSource, name, query, additionalProperties); } @Override @@ -171,6 +224,9 @@ public String toString() { sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionProcessQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionProcessQueryDefinition.java index 7c8aa42c81a..e13fec165ae 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionProcessQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionProcessQueryDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Process query using formulas and functions. */ @@ -280,6 +284,52 @@ public void setTextFilter(String textFilter) { this.textFilter = textFilter; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionProcessQueryDefinition + */ + @JsonAnySetter + public FormulaAndFunctionProcessQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionProcessQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -300,13 +350,25 @@ public boolean equals(Object o) { && Objects.equals(this.name, formulaAndFunctionProcessQueryDefinition.name) && Objects.equals(this.sort, formulaAndFunctionProcessQueryDefinition.sort) && Objects.equals(this.tagFilters, formulaAndFunctionProcessQueryDefinition.tagFilters) - && Objects.equals(this.textFilter, formulaAndFunctionProcessQueryDefinition.textFilter); + && Objects.equals(this.textFilter, formulaAndFunctionProcessQueryDefinition.textFilter) + && Objects.equals( + this.additionalProperties, + formulaAndFunctionProcessQueryDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - aggregator, dataSource, isNormalizedCpu, limit, metric, name, sort, tagFilters, textFilter); + aggregator, + dataSource, + isNormalizedCpu, + limit, + metric, + name, + sort, + tagFilters, + textFilter, + additionalProperties); } @Override @@ -322,6 +384,9 @@ public String toString() { sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" tagFilters: ").append(toIndentedString(tagFilters)).append("\n"); sb.append(" textFilter: ").append(toIndentedString(textFilter)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionSLOQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionSLOQueryDefinition.java index ed4dabd9ae5..a80c0a82b8e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionSLOQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FormulaAndFunctionSLOQueryDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A formula and functions metrics query. */ @@ -201,6 +205,52 @@ public void setSloQueryType(FormulaAndFunctionSLOQueryType sloQueryType) { this.sloQueryType = sloQueryType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaAndFunctionSLOQueryDefinition + */ + @JsonAnySetter + public FormulaAndFunctionSLOQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaAndFunctionSLOQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -217,12 +267,15 @@ public boolean equals(Object o) { && Objects.equals(this.measure, formulaAndFunctionSloQueryDefinition.measure) && Objects.equals(this.name, formulaAndFunctionSloQueryDefinition.name) && Objects.equals(this.sloId, formulaAndFunctionSloQueryDefinition.sloId) - && Objects.equals(this.sloQueryType, formulaAndFunctionSloQueryDefinition.sloQueryType); + && Objects.equals(this.sloQueryType, formulaAndFunctionSloQueryDefinition.sloQueryType) + && Objects.equals( + this.additionalProperties, formulaAndFunctionSloQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dataSource, groupMode, measure, name, sloId, sloQueryType); + return Objects.hash( + dataSource, groupMode, measure, name, sloId, sloQueryType, additionalProperties); } @Override @@ -235,6 +288,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sloId: ").append(toIndentedString(sloId)).append("\n"); sb.append(" sloQueryType: ").append(toIndentedString(sloQueryType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FreeTextWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FreeTextWidgetDefinition.java index e3a2ac6ad76..6ba5b5efae2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FreeTextWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FreeTextWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -166,6 +170,52 @@ public void setType(FreeTextWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FreeTextWidgetDefinition + */ + @JsonAnySetter + public FreeTextWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FreeTextWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -180,12 +230,13 @@ public boolean equals(Object o) { && Objects.equals(this.fontSize, freeTextWidgetDefinition.fontSize) && Objects.equals(this.text, freeTextWidgetDefinition.text) && Objects.equals(this.textAlign, freeTextWidgetDefinition.textAlign) - && Objects.equals(this.type, freeTextWidgetDefinition.type); + && Objects.equals(this.type, freeTextWidgetDefinition.type) + && Objects.equals(this.additionalProperties, freeTextWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(color, fontSize, text, textAlign, type); + return Objects.hash(color, fontSize, text, textAlign, type, additionalProperties); } @Override @@ -197,6 +248,9 @@ public String toString() { sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" textAlign: ").append(toIndentedString(textAlign)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FunnelQuery.java b/src/main/java/com/datadog/api/client/v1/model/FunnelQuery.java index 9723a4c4ddd..97568db0ff4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FunnelQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/FunnelQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated funnel widget. */ @@ -120,6 +124,52 @@ public void setSteps(List steps) { this.steps = steps; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelQuery + */ + @JsonAnySetter + public FunnelQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FunnelQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,13 @@ public boolean equals(Object o) { FunnelQuery funnelQuery = (FunnelQuery) o; return Objects.equals(this.dataSource, funnelQuery.dataSource) && Objects.equals(this.queryString, funnelQuery.queryString) - && Objects.equals(this.steps, funnelQuery.steps); + && Objects.equals(this.steps, funnelQuery.steps) + && Objects.equals(this.additionalProperties, funnelQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dataSource, queryString, steps); + return Objects.hash(dataSource, queryString, steps, additionalProperties); } @Override @@ -147,6 +198,9 @@ public String toString() { sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n"); sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FunnelStep.java b/src/main/java/com/datadog/api/client/v1/model/FunnelStep.java index 5d85e10d09e..747b45004fb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FunnelStep.java +++ b/src/main/java/com/datadog/api/client/v1/model/FunnelStep.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The funnel step. */ @@ -75,6 +79,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelStep + */ + @JsonAnySetter + public FunnelStep putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FunnelStep object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,13 @@ public boolean equals(Object o) { } FunnelStep funnelStep = (FunnelStep) o; return Objects.equals(this.facet, funnelStep.facet) - && Objects.equals(this.value, funnelStep.value); + && Objects.equals(this.value, funnelStep.value) + && Objects.equals(this.additionalProperties, funnelStep.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, value); + return Objects.hash(facet, value, additionalProperties); } @Override @@ -100,6 +151,9 @@ public String toString() { sb.append("class FunnelStep {\n"); sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetDefinition.java index dd373dd6042..27a39f7a01d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -203,6 +207,52 @@ public void setType(FunnelWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelWidgetDefinition + */ + @JsonAnySetter + public FunnelWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FunnelWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -218,12 +268,13 @@ public boolean equals(Object o) { && Objects.equals(this.title, funnelWidgetDefinition.title) && Objects.equals(this.titleAlign, funnelWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, funnelWidgetDefinition.titleSize) - && Objects.equals(this.type, funnelWidgetDefinition.type); + && Objects.equals(this.type, funnelWidgetDefinition.type) + && Objects.equals(this.additionalProperties, funnelWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(requests, time, title, titleAlign, titleSize, type); + return Objects.hash(requests, time, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -236,6 +287,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetRequest.java index 32dc8b86605..3407859d94b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/FunnelWidgetRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated funnel widget. */ @@ -86,6 +90,52 @@ public void setRequestType(FunnelRequestType requestType) { this.requestType = requestType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelWidgetRequest + */ + @JsonAnySetter + public FunnelWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FunnelWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } FunnelWidgetRequest funnelWidgetRequest = (FunnelWidgetRequest) o; return Objects.equals(this.query, funnelWidgetRequest.query) - && Objects.equals(this.requestType, funnelWidgetRequest.requestType); + && Objects.equals(this.requestType, funnelWidgetRequest.requestType) + && Objects.equals(this.additionalProperties, funnelWidgetRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query, requestType); + return Objects.hash(query, requestType, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class FunnelWidgetRequest {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" requestType: ").append(toIndentedString(requestType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GCPAccount.java b/src/main/java/com/datadog/api/client/v1/model/GCPAccount.java index 51ffd059869..a10113eebf6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GCPAccount.java +++ b/src/main/java/com/datadog/api/client/v1/model/GCPAccount.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Your Google Cloud Platform Account. */ @@ -383,6 +387,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPAccount + */ + @JsonAnySetter + public GCPAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -406,7 +456,8 @@ public boolean equals(Object o) { && Objects.equals(this.privateKeyId, gcpAccount.privateKeyId) && Objects.equals(this.projectId, gcpAccount.projectId) && Objects.equals(this.tokenUri, gcpAccount.tokenUri) - && Objects.equals(this.type, gcpAccount.type); + && Objects.equals(this.type, gcpAccount.type) + && Objects.equals(this.additionalProperties, gcpAccount.additionalProperties); } @Override @@ -425,7 +476,8 @@ public int hashCode() { privateKeyId, projectId, tokenUri, - type); + type, + additionalProperties); } @Override @@ -448,6 +500,9 @@ public String toString() { sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" tokenUri: ").append(toIndentedString(tokenUri)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinition.java index 229b3d54d3c..69fb88634fc 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** This visualization displays a series of values by country on a world map. */ @@ -297,6 +301,52 @@ public void setView(GeomapWidgetDefinitionView view) { this.view = view; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GeomapWidgetDefinition + */ + @JsonAnySetter + public GeomapWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GeomapWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -315,13 +365,23 @@ public boolean equals(Object o) { && Objects.equals(this.titleAlign, geomapWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, geomapWidgetDefinition.titleSize) && Objects.equals(this.type, geomapWidgetDefinition.type) - && Objects.equals(this.view, geomapWidgetDefinition.view); + && Objects.equals(this.view, geomapWidgetDefinition.view) + && Objects.equals(this.additionalProperties, geomapWidgetDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - customLinks, requests, style, time, title, titleAlign, titleSize, type, view); + customLinks, + requests, + style, + time, + title, + titleAlign, + titleSize, + type, + view, + additionalProperties); } @Override @@ -337,6 +397,9 @@ public String toString() { sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" view: ").append(toIndentedString(view)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionStyle.java b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionStyle.java index 63761251067..9e153930baa 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionStyle.java +++ b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionStyle.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The style to apply to the widget. */ @@ -78,6 +82,52 @@ public void setPaletteFlip(Boolean paletteFlip) { this.paletteFlip = paletteFlip; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GeomapWidgetDefinitionStyle + */ + @JsonAnySetter + public GeomapWidgetDefinitionStyle putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GeomapWidgetDefinitionStyle object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { } GeomapWidgetDefinitionStyle geomapWidgetDefinitionStyle = (GeomapWidgetDefinitionStyle) o; return Objects.equals(this.palette, geomapWidgetDefinitionStyle.palette) - && Objects.equals(this.paletteFlip, geomapWidgetDefinitionStyle.paletteFlip); + && Objects.equals(this.paletteFlip, geomapWidgetDefinitionStyle.paletteFlip) + && Objects.equals( + this.additionalProperties, geomapWidgetDefinitionStyle.additionalProperties); } @Override public int hashCode() { - return Objects.hash(palette, paletteFlip); + return Objects.hash(palette, paletteFlip, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class GeomapWidgetDefinitionStyle {\n"); sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); sb.append(" paletteFlip: ").append(toIndentedString(paletteFlip)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionView.java b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionView.java index 7bfa18e4f55..f0a26529e10 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionView.java +++ b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionView.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The view of the world that the map should render. */ @@ -50,6 +54,52 @@ public void setFocus(String focus) { this.focus = focus; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GeomapWidgetDefinitionView + */ + @JsonAnySetter + public GeomapWidgetDefinitionView putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GeomapWidgetDefinitionView object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,14 @@ public boolean equals(Object o) { return false; } GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView) o; - return Objects.equals(this.focus, geomapWidgetDefinitionView.focus); + return Objects.equals(this.focus, geomapWidgetDefinitionView.focus) + && Objects.equals( + this.additionalProperties, geomapWidgetDefinitionView.additionalProperties); } @Override public int hashCode() { - return Objects.hash(focus); + return Objects.hash(focus, additionalProperties); } @Override @@ -73,6 +125,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GeomapWidgetDefinitionView {\n"); sb.append(" focus: ").append(toIndentedString(focus)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetRequest.java index 0def9ac930c..8dee40d6140 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/GeomapWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An updated geomap widget. */ @@ -227,6 +231,52 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GeomapWidgetRequest + */ + @JsonAnySetter + public GeomapWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GeomapWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -243,12 +293,21 @@ public boolean equals(Object o) { && Objects.equals(this.queries, geomapWidgetRequest.queries) && Objects.equals(this.responseFormat, geomapWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, geomapWidgetRequest.rumQuery) - && Objects.equals(this.securityQuery, geomapWidgetRequest.securityQuery); + && Objects.equals(this.securityQuery, geomapWidgetRequest.securityQuery) + && Objects.equals(this.additionalProperties, geomapWidgetRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formulas, logQuery, q, queries, responseFormat, rumQuery, securityQuery); + return Objects.hash( + formulas, + logQuery, + q, + queries, + responseFormat, + rumQuery, + securityQuery, + additionalProperties); } @Override @@ -262,6 +321,9 @@ public String toString() { sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GraphSnapshot.java b/src/main/java/com/datadog/api/client/v1/model/GraphSnapshot.java index 8c3ecd94d0a..c02f0838655 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GraphSnapshot.java +++ b/src/main/java/com/datadog/api/client/v1/model/GraphSnapshot.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object representing a graph snapshot. */ @@ -97,6 +101,52 @@ public void setSnapshotUrl(String snapshotUrl) { this.snapshotUrl = snapshotUrl; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GraphSnapshot + */ + @JsonAnySetter + public GraphSnapshot putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GraphSnapshot object is equal to o. */ @Override public boolean equals(Object o) { @@ -109,12 +159,13 @@ public boolean equals(Object o) { GraphSnapshot graphSnapshot = (GraphSnapshot) o; return Objects.equals(this.graphDef, graphSnapshot.graphDef) && Objects.equals(this.metricQuery, graphSnapshot.metricQuery) - && Objects.equals(this.snapshotUrl, graphSnapshot.snapshotUrl); + && Objects.equals(this.snapshotUrl, graphSnapshot.snapshotUrl) + && Objects.equals(this.additionalProperties, graphSnapshot.additionalProperties); } @Override public int hashCode() { - return Objects.hash(graphDef, metricQuery, snapshotUrl); + return Objects.hash(graphDef, metricQuery, snapshotUrl, additionalProperties); } @Override @@ -124,6 +175,9 @@ public String toString() { sb.append(" graphDef: ").append(toIndentedString(graphDef)).append("\n"); sb.append(" metricQuery: ").append(toIndentedString(metricQuery)).append("\n"); sb.append(" snapshotUrl: ").append(toIndentedString(snapshotUrl)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/GroupWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/GroupWidgetDefinition.java index 5999fd25719..5aad8aa0e57 100644 --- a/src/main/java/com/datadog/api/client/v1/model/GroupWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/GroupWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -257,6 +261,52 @@ public void setWidgets(List widgets) { this.widgets = widgets; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GroupWidgetDefinition + */ + @JsonAnySetter + public GroupWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GroupWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -274,13 +324,22 @@ public boolean equals(Object o) { && Objects.equals(this.title, groupWidgetDefinition.title) && Objects.equals(this.titleAlign, groupWidgetDefinition.titleAlign) && Objects.equals(this.type, groupWidgetDefinition.type) - && Objects.equals(this.widgets, groupWidgetDefinition.widgets); + && Objects.equals(this.widgets, groupWidgetDefinition.widgets) + && Objects.equals(this.additionalProperties, groupWidgetDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - backgroundColor, bannerImg, layoutType, showTitle, title, titleAlign, type, widgets); + backgroundColor, + bannerImg, + layoutType, + showTitle, + title, + titleAlign, + type, + widgets, + additionalProperties); } @Override @@ -295,6 +354,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" widgets: ").append(toIndentedString(widgets)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HTTPLogError.java b/src/main/java/com/datadog/api/client/v1/model/HTTPLogError.java index 7903fde8301..10d3ab53ee5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HTTPLogError.java +++ b/src/main/java/com/datadog/api/client/v1/model/HTTPLogError.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Invalid query performed. */ @@ -75,6 +79,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HTTPLogError + */ + @JsonAnySetter + public HTTPLogError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HTTPLogError object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,13 @@ public boolean equals(Object o) { } HTTPLogError httpLogError = (HTTPLogError) o; return Objects.equals(this.code, httpLogError.code) - && Objects.equals(this.message, httpLogError.message); + && Objects.equals(this.message, httpLogError.message) + && Objects.equals(this.additionalProperties, httpLogError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, message); + return Objects.hash(code, message, additionalProperties); } @Override @@ -100,6 +151,9 @@ public String toString() { sb.append("class HTTPLogError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetDefinition.java index 59e9ec1e3f3..e0baae698d7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -353,6 +357,52 @@ public void setYaxis(WidgetAxis yaxis) { this.yaxis = yaxis; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HeatMapWidgetDefinition + */ + @JsonAnySetter + public HeatMapWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HeatMapWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -373,7 +423,8 @@ public boolean equals(Object o) { && Objects.equals(this.titleAlign, heatMapWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, heatMapWidgetDefinition.titleSize) && Objects.equals(this.type, heatMapWidgetDefinition.type) - && Objects.equals(this.yaxis, heatMapWidgetDefinition.yaxis); + && Objects.equals(this.yaxis, heatMapWidgetDefinition.yaxis) + && Objects.equals(this.additionalProperties, heatMapWidgetDefinition.additionalProperties); } @Override @@ -389,7 +440,8 @@ public int hashCode() { titleAlign, titleSize, type, - yaxis); + yaxis, + additionalProperties); } @Override @@ -407,6 +459,9 @@ public String toString() { sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" yaxis: ").append(toIndentedString(yaxis)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetRequest.java index 3476901621d..558e89c23f4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/HeatMapWidgetRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated heat map widget. */ @@ -278,6 +282,52 @@ public void setStyle(WidgetStyle style) { this.style = style; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HeatMapWidgetRequest + */ + @JsonAnySetter + public HeatMapWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HeatMapWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -297,7 +347,8 @@ public boolean equals(Object o) { && Objects.equals(this.q, heatMapWidgetRequest.q) && Objects.equals(this.rumQuery, heatMapWidgetRequest.rumQuery) && Objects.equals(this.securityQuery, heatMapWidgetRequest.securityQuery) - && Objects.equals(this.style, heatMapWidgetRequest.style); + && Objects.equals(this.style, heatMapWidgetRequest.style) + && Objects.equals(this.additionalProperties, heatMapWidgetRequest.additionalProperties); } @Override @@ -312,7 +363,8 @@ public int hashCode() { q, rumQuery, securityQuery, - style); + style, + additionalProperties); } @Override @@ -331,6 +383,9 @@ public String toString() { sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 4bc7aa745fa..685393056ed 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -419,6 +421,52 @@ public void setUp(Boolean up) { this.up = up; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Host + */ + @JsonAnySetter + public Host putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Host object is equal to o. */ @Override public boolean equals(Object o) { @@ -442,7 +490,8 @@ public boolean equals(Object o) { && Objects.equals(this.name, host.name) && Objects.equals(this.sources, host.sources) && Objects.equals(this.tagsBySource, host.tagsBySource) - && Objects.equals(this.up, host.up); + && Objects.equals(this.up, host.up) + && Objects.equals(this.additionalProperties, host.additionalProperties); } @Override @@ -461,7 +510,8 @@ public int hashCode() { name, sources, tagsBySource, - up); + up, + additionalProperties); } @Override @@ -482,6 +532,9 @@ public String toString() { sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" tagsBySource: ").append(toIndentedString(tagsBySource)).append("\n"); sb.append(" up: ").append(toIndentedString(up)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostListResponse.java b/src/main/java/com/datadog/api/client/v1/model/HostListResponse.java index c1e320ac7c0..3d04d6bfc2e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with Host information from Datadog. */ @@ -108,6 +112,52 @@ public void setTotalReturned(Long totalReturned) { this.totalReturned = totalReturned; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostListResponse + */ + @JsonAnySetter + public HostListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { HostListResponse hostListResponse = (HostListResponse) o; return Objects.equals(this.hostList, hostListResponse.hostList) && Objects.equals(this.totalMatching, hostListResponse.totalMatching) - && Objects.equals(this.totalReturned, hostListResponse.totalReturned); + && Objects.equals(this.totalReturned, hostListResponse.totalReturned) + && Objects.equals(this.additionalProperties, hostListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hostList, totalMatching, totalReturned); + return Objects.hash(hostList, totalMatching, totalReturned, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" hostList: ").append(toIndentedString(hostList)).append("\n"); sb.append(" totalMatching: ").append(toIndentedString(totalMatching)).append("\n"); sb.append(" totalReturned: ").append(toIndentedString(totalReturned)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMapRequest.java b/src/main/java/com/datadog/api/client/v1/model/HostMapRequest.java index 1885b8cf9c9..cf280e8dab1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMapRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMapRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated host map. */ @@ -252,6 +256,52 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMapRequest + */ + @JsonAnySetter + public HostMapRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMapRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -270,7 +320,8 @@ public boolean equals(Object o) { && Objects.equals(this.profileMetricsQuery, hostMapRequest.profileMetricsQuery) && Objects.equals(this.q, hostMapRequest.q) && Objects.equals(this.rumQuery, hostMapRequest.rumQuery) - && Objects.equals(this.securityQuery, hostMapRequest.securityQuery); + && Objects.equals(this.securityQuery, hostMapRequest.securityQuery) + && Objects.equals(this.additionalProperties, hostMapRequest.additionalProperties); } @Override @@ -284,7 +335,8 @@ public int hashCode() { profileMetricsQuery, q, rumQuery, - securityQuery); + securityQuery, + additionalProperties); } @Override @@ -302,6 +354,9 @@ public String toString() { sb.append(" q: ").append(toIndentedString(q)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinition.java index eaa87724ff9..374c37d660e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -403,6 +407,52 @@ public void setType(HostMapWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMapWidgetDefinition + */ + @JsonAnySetter + public HostMapWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMapWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -425,7 +475,8 @@ public boolean equals(Object o) { && Objects.equals(this.title, hostMapWidgetDefinition.title) && Objects.equals(this.titleAlign, hostMapWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, hostMapWidgetDefinition.titleSize) - && Objects.equals(this.type, hostMapWidgetDefinition.type); + && Objects.equals(this.type, hostMapWidgetDefinition.type) + && Objects.equals(this.additionalProperties, hostMapWidgetDefinition.additionalProperties); } @Override @@ -443,7 +494,8 @@ public int hashCode() { title, titleAlign, titleSize, - type); + type, + additionalProperties); } @Override @@ -463,6 +515,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionRequests.java b/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionRequests.java index 5d0ee2a0004..3398989ce20 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionRequests.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionRequests.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of definitions. */ @@ -71,6 +75,52 @@ public void setSize(HostMapRequest size) { this.size = size; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMapWidgetDefinitionRequests + */ + @JsonAnySetter + public HostMapWidgetDefinitionRequests putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMapWidgetDefinitionRequests object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { HostMapWidgetDefinitionRequests hostMapWidgetDefinitionRequests = (HostMapWidgetDefinitionRequests) o; return Objects.equals(this.fill, hostMapWidgetDefinitionRequests.fill) - && Objects.equals(this.size, hostMapWidgetDefinitionRequests.size); + && Objects.equals(this.size, hostMapWidgetDefinitionRequests.size) + && Objects.equals( + this.additionalProperties, hostMapWidgetDefinitionRequests.additionalProperties); } @Override public int hashCode() { - return Objects.hash(fill, size); + return Objects.hash(fill, size, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class HostMapWidgetDefinitionRequests {\n"); sb.append(" fill: ").append(toIndentedString(fill)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionStyle.java b/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionStyle.java index 033a377b86b..ac18c7e6a77 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionStyle.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMapWidgetDefinitionStyle.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The style to apply to the widget. */ @@ -119,6 +123,52 @@ public void setPaletteFlip(Boolean paletteFlip) { this.paletteFlip = paletteFlip; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMapWidgetDefinitionStyle + */ + @JsonAnySetter + public HostMapWidgetDefinitionStyle putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMapWidgetDefinitionStyle object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,14 @@ public boolean equals(Object o) { return Objects.equals(this.fillMax, hostMapWidgetDefinitionStyle.fillMax) && Objects.equals(this.fillMin, hostMapWidgetDefinitionStyle.fillMin) && Objects.equals(this.palette, hostMapWidgetDefinitionStyle.palette) - && Objects.equals(this.paletteFlip, hostMapWidgetDefinitionStyle.paletteFlip); + && Objects.equals(this.paletteFlip, hostMapWidgetDefinitionStyle.paletteFlip) + && Objects.equals( + this.additionalProperties, hostMapWidgetDefinitionStyle.additionalProperties); } @Override public int hashCode() { - return Objects.hash(fillMax, fillMin, palette, paletteFlip); + return Objects.hash(fillMax, fillMin, palette, paletteFlip, additionalProperties); } @Override @@ -148,6 +200,9 @@ public String toString() { sb.append(" fillMin: ").append(toIndentedString(fillMin)).append("\n"); sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); sb.append(" paletteFlip: ").append(toIndentedString(paletteFlip)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMeta.java b/src/main/java/com/datadog/api/client/v1/model/HostMeta.java index 2b0271eef59..e54a39786d2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMeta.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMeta.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Metadata associated with your host. */ @@ -437,6 +441,52 @@ public void setWinV(List winV) { this.winV = winV; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMeta + */ + @JsonAnySetter + public HostMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -461,7 +511,8 @@ public boolean equals(Object o) { && Objects.equals(this.pythonV, hostMeta.pythonV) && Objects.equals(this.socketFqdn, hostMeta.socketFqdn) && Objects.equals(this.socketHostname, hostMeta.socketHostname) - && Objects.equals(this.winV, hostMeta.winV); + && Objects.equals(this.winV, hostMeta.winV) + && Objects.equals(this.additionalProperties, hostMeta.additionalProperties); } @Override @@ -481,7 +532,8 @@ public int hashCode() { pythonV, socketFqdn, socketHostname, - winV); + winV, + additionalProperties); } @Override @@ -503,6 +555,9 @@ public String toString() { sb.append(" socketFqdn: ").append(toIndentedString(socketFqdn)).append("\n"); sb.append(" socketHostname: ").append(toIndentedString(socketHostname)).append("\n"); sb.append(" winV: ").append(toIndentedString(winV)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMetaInstallMethod.java b/src/main/java/com/datadog/api/client/v1/model/HostMetaInstallMethod.java index a30253a13c5..c39bdcca4a8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMetaInstallMethod.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMetaInstallMethod.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Agent install method. */ @@ -94,6 +98,52 @@ public void setToolVersion(String toolVersion) { this.toolVersion = toolVersion; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMetaInstallMethod + */ + @JsonAnySetter + public HostMetaInstallMethod putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMetaInstallMethod object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { HostMetaInstallMethod hostMetaInstallMethod = (HostMetaInstallMethod) o; return Objects.equals(this.installerVersion, hostMetaInstallMethod.installerVersion) && Objects.equals(this.tool, hostMetaInstallMethod.tool) - && Objects.equals(this.toolVersion, hostMetaInstallMethod.toolVersion); + && Objects.equals(this.toolVersion, hostMetaInstallMethod.toolVersion) + && Objects.equals(this.additionalProperties, hostMetaInstallMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(installerVersion, tool, toolVersion); + return Objects.hash(installerVersion, tool, toolVersion, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" installerVersion: ").append(toIndentedString(installerVersion)).append("\n"); sb.append(" tool: ").append(toIndentedString(tool)).append("\n"); sb.append(" toolVersion: ").append(toIndentedString(toolVersion)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMetrics.java b/src/main/java/com/datadog/api/client/v1/model/HostMetrics.java index f60fd3561ca..97489e30fa1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMetrics.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMetrics.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Host Metrics collected. */ @@ -94,6 +98,52 @@ public void setLoad(Double load) { this.load = load; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMetrics + */ + @JsonAnySetter + public HostMetrics putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMetrics object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { HostMetrics hostMetrics = (HostMetrics) o; return Objects.equals(this.cpu, hostMetrics.cpu) && Objects.equals(this.iowait, hostMetrics.iowait) - && Objects.equals(this.load, hostMetrics.load); + && Objects.equals(this.load, hostMetrics.load) + && Objects.equals(this.additionalProperties, hostMetrics.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cpu, iowait, load); + return Objects.hash(cpu, iowait, load, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); sb.append(" iowait: ").append(toIndentedString(iowait)).append("\n"); sb.append(" load: ").append(toIndentedString(load)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMuteResponse.java b/src/main/java/com/datadog/api/client/v1/model/HostMuteResponse.java index aa6ba818b17..1851c23d9cd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMuteResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMuteResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response with the list of muted host for your organization. */ @@ -119,6 +123,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMuteResponse + */ + @JsonAnySetter + public HostMuteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMuteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,13 @@ public boolean equals(Object o) { return Objects.equals(this.action, hostMuteResponse.action) && Objects.equals(this.end, hostMuteResponse.end) && Objects.equals(this.hostname, hostMuteResponse.hostname) - && Objects.equals(this.message, hostMuteResponse.message); + && Objects.equals(this.message, hostMuteResponse.message) + && Objects.equals(this.additionalProperties, hostMuteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(action, end, hostname, message); + return Objects.hash(action, end, hostname, message, additionalProperties); } @Override @@ -148,6 +199,9 @@ public String toString() { sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostMuteSettings.java b/src/main/java/com/datadog/api/client/v1/model/HostMuteSettings.java index aeb377cfc71..e121b3e2d2d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostMuteSettings.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostMuteSettings.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Combination of settings to mute a host. */ @@ -95,6 +99,52 @@ public void setOverride(Boolean override) { this.override = override; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostMuteSettings + */ + @JsonAnySetter + public HostMuteSettings putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostMuteSettings object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,13 @@ public boolean equals(Object o) { HostMuteSettings hostMuteSettings = (HostMuteSettings) o; return Objects.equals(this.end, hostMuteSettings.end) && Objects.equals(this.message, hostMuteSettings.message) - && Objects.equals(this.override, hostMuteSettings.override); + && Objects.equals(this.override, hostMuteSettings.override) + && Objects.equals(this.additionalProperties, hostMuteSettings.additionalProperties); } @Override public int hashCode() { - return Objects.hash(end, message, override); + return Objects.hash(end, message, override, additionalProperties); } @Override @@ -122,6 +173,9 @@ public String toString() { sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" override: ").append(toIndentedString(override)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostTags.java b/src/main/java/com/datadog/api/client/v1/model/HostTags.java index 904b0d2f382..92e038f6002 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostTags.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostTags.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Set of tags to associate with your host. */ @@ -76,6 +80,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostTags + */ + @JsonAnySetter + public HostTags putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostTags object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,14 @@ public boolean equals(Object o) { return false; } HostTags hostTags = (HostTags) o; - return Objects.equals(this.host, hostTags.host) && Objects.equals(this.tags, hostTags.tags); + return Objects.equals(this.host, hostTags.host) + && Objects.equals(this.tags, hostTags.tags) + && Objects.equals(this.additionalProperties, hostTags.additionalProperties); } @Override public int hashCode() { - return Objects.hash(host, tags); + return Objects.hash(host, tags, additionalProperties); } @Override @@ -100,6 +152,9 @@ public String toString() { sb.append("class HostTags {\n"); sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HostTotals.java b/src/main/java/com/datadog/api/client/v1/model/HostTotals.java index 8f0a081c9ba..b62d4fddbbf 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HostTotals.java +++ b/src/main/java/com/datadog/api/client/v1/model/HostTotals.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Total number of host currently monitored by Datadog. */ @@ -66,6 +70,52 @@ public void setTotalUp(Long totalUp) { this.totalUp = totalUp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HostTotals + */ + @JsonAnySetter + public HostTotals putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HostTotals object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,13 @@ public boolean equals(Object o) { } HostTotals hostTotals = (HostTotals) o; return Objects.equals(this.totalActive, hostTotals.totalActive) - && Objects.equals(this.totalUp, hostTotals.totalUp); + && Objects.equals(this.totalUp, hostTotals.totalUp) + && Objects.equals(this.additionalProperties, hostTotals.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalActive, totalUp); + return Objects.hash(totalActive, totalUp, additionalProperties); } @Override @@ -91,6 +142,9 @@ public String toString() { sb.append("class HostTotals {\n"); sb.append(" totalActive: ").append(toIndentedString(totalActive)).append("\n"); sb.append(" totalUp: ").append(toIndentedString(totalUp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 f0232117539..bf56314eb6c 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -286,6 +288,52 @@ public void setUsageType(HourlyUsageAttributionUsageType usageType) { this.usageType = usageType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageAttributionBody + */ + @JsonAnySetter + public HourlyUsageAttributionBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageAttributionBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -304,7 +352,9 @@ public boolean equals(Object o) { && Objects.equals(this.tags, hourlyUsageAttributionBody.tags) && Objects.equals(this.totalUsageSum, hourlyUsageAttributionBody.totalUsageSum) && Objects.equals(this.updatedAt, hourlyUsageAttributionBody.updatedAt) - && Objects.equals(this.usageType, hourlyUsageAttributionBody.usageType); + && Objects.equals(this.usageType, hourlyUsageAttributionBody.usageType) + && Objects.equals( + this.additionalProperties, hourlyUsageAttributionBody.additionalProperties); } @Override @@ -318,7 +368,8 @@ public int hashCode() { tags, totalUsageSum, updatedAt, - usageType); + usageType, + additionalProperties); } @Override @@ -334,6 +385,9 @@ public String toString() { sb.append(" totalUsageSum: ").append(toIndentedString(totalUsageSum)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" usageType: ").append(toIndentedString(usageType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionMetadata.java b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionMetadata.java index 01021f44217..52f8fd50c05 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -43,6 +47,52 @@ public void setPagination(HourlyUsageAttributionPagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageAttributionMetadata + */ + @JsonAnySetter + public HourlyUsageAttributionMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageAttributionMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } HourlyUsageAttributionMetadata hourlyUsageAttributionMetadata = (HourlyUsageAttributionMetadata) o; - return Objects.equals(this.pagination, hourlyUsageAttributionMetadata.pagination); + return Objects.equals(this.pagination, hourlyUsageAttributionMetadata.pagination) + && Objects.equals( + this.additionalProperties, hourlyUsageAttributionMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pagination); + return Objects.hash(pagination, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HourlyUsageAttributionMetadata {\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionPagination.java b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionPagination.java index 4bad1249e0b..d1627076626 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionPagination.java +++ b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionPagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -54,6 +58,52 @@ public void setNextRecordId(String nextRecordId) { this.nextRecordId = JsonNullable.of(nextRecordId); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageAttributionPagination + */ + @JsonAnySetter + public HourlyUsageAttributionPagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageAttributionPagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +115,14 @@ public boolean equals(Object o) { } HourlyUsageAttributionPagination hourlyUsageAttributionPagination = (HourlyUsageAttributionPagination) o; - return Objects.equals(this.nextRecordId, hourlyUsageAttributionPagination.nextRecordId); + return Objects.equals(this.nextRecordId, hourlyUsageAttributionPagination.nextRecordId) + && Objects.equals( + this.additionalProperties, hourlyUsageAttributionPagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(nextRecordId); + return Objects.hash(nextRecordId, additionalProperties); } @Override @@ -78,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HourlyUsageAttributionPagination {\n"); sb.append(" nextRecordId: ").append(toIndentedString(nextRecordId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionResponse.java b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionResponse.java index b83468ea2c2..8d9a87100bd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the hourly usage attribution by tag(s). */ @@ -84,6 +88,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageAttributionResponse + */ + @JsonAnySetter + public HourlyUsageAttributionResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageAttributionResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { HourlyUsageAttributionResponse hourlyUsageAttributionResponse = (HourlyUsageAttributionResponse) o; return Objects.equals(this.metadata, hourlyUsageAttributionResponse.metadata) - && Objects.equals(this.usage, hourlyUsageAttributionResponse.usage); + && Objects.equals(this.usage, hourlyUsageAttributionResponse.usage) + && Objects.equals( + this.additionalProperties, hourlyUsageAttributionResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metadata, usage); + return Objects.hash(metadata, usage, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class HourlyUsageAttributionResponse {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IFrameWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/IFrameWidgetDefinition.java index 39a28754844..5d28cca1e14 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IFrameWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/IFrameWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -86,6 +90,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IFrameWidgetDefinition + */ + @JsonAnySetter + public IFrameWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IFrameWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } IFrameWidgetDefinition iFrameWidgetDefinition = (IFrameWidgetDefinition) o; return Objects.equals(this.type, iFrameWidgetDefinition.type) - && Objects.equals(this.url, iFrameWidgetDefinition.url); + && Objects.equals(this.url, iFrameWidgetDefinition.url) + && Objects.equals(this.additionalProperties, iFrameWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, url); + return Objects.hash(type, url, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class IFrameWidgetDefinition {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPI.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPI.java index a91c35c72fe..6b55438d90d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPI.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPI.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the API endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesAPI + */ + @JsonAnySetter + public IPPrefixesAPI putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesAPI object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesAPI ipPrefixesApi = (IPPrefixesAPI) o; return Objects.equals(this.prefixesIpv4, ipPrefixesApi.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesApi.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesApi.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesApi.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesAPI {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPM.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPM.java index 9ad8cc8e3e7..564bdafe844 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPM.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAPM.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the APM endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesAPM + */ + @JsonAnySetter + public IPPrefixesAPM putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesAPM object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesAPM ipPrefixesApm = (IPPrefixesAPM) o; return Objects.equals(this.prefixesIpv4, ipPrefixesApm.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesApm.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesApm.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesApm.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesAPM {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAgents.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAgents.java index b7bedd0de5e..3ef32918e90 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAgents.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesAgents.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the Agent endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesAgents + */ + @JsonAnySetter + public IPPrefixesAgents putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesAgents object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesAgents ipPrefixesAgents = (IPPrefixesAgents) o; return Objects.equals(this.prefixesIpv4, ipPrefixesAgents.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesAgents.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesAgents.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesAgents.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesAgents {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesLogs.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesLogs.java index b97c2c2d9f3..e536b05938a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesLogs.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesLogs.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the Logs endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesLogs + */ + @JsonAnySetter + public IPPrefixesLogs putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesLogs object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesLogs ipPrefixesLogs = (IPPrefixesLogs) o; return Objects.equals(this.prefixesIpv4, ipPrefixesLogs.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesLogs.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesLogs.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesLogs.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesLogs {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesOrchestrator.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesOrchestrator.java index 1cf4be4cda1..09f58c53a1d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesOrchestrator.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesOrchestrator.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the Orchestrator endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesOrchestrator + */ + @JsonAnySetter + public IPPrefixesOrchestrator putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesOrchestrator object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesOrchestrator ipPrefixesOrchestrator = (IPPrefixesOrchestrator) o; return Objects.equals(this.prefixesIpv4, ipPrefixesOrchestrator.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesOrchestrator.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesOrchestrator.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesOrchestrator.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesOrchestrator {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesProcess.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesProcess.java index 83f451c01c4..786d1870fc2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesProcess.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesProcess.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the Process endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesProcess + */ + @JsonAnySetter + public IPPrefixesProcess putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesProcess object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesProcess ipPrefixesProcess = (IPPrefixesProcess) o; return Objects.equals(this.prefixesIpv4, ipPrefixesProcess.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesProcess.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesProcess.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesProcess.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesProcess {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSynthetics.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSynthetics.java index 9a8cb16175a..da119386cdb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSynthetics.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSynthetics.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -159,6 +161,52 @@ public void setPrefixesIpv6ByLocation(Map> prefixesIpv6ByLo this.prefixesIpv6ByLocation = prefixesIpv6ByLocation; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesSynthetics + */ + @JsonAnySetter + public IPPrefixesSynthetics putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesSynthetics object is equal to o. */ @Override public boolean equals(Object o) { @@ -172,12 +220,18 @@ public boolean equals(Object o) { return Objects.equals(this.prefixesIpv4, ipPrefixesSynthetics.prefixesIpv4) && Objects.equals(this.prefixesIpv4ByLocation, ipPrefixesSynthetics.prefixesIpv4ByLocation) && Objects.equals(this.prefixesIpv6, ipPrefixesSynthetics.prefixesIpv6) - && Objects.equals(this.prefixesIpv6ByLocation, ipPrefixesSynthetics.prefixesIpv6ByLocation); + && Objects.equals(this.prefixesIpv6ByLocation, ipPrefixesSynthetics.prefixesIpv6ByLocation) + && Objects.equals(this.additionalProperties, ipPrefixesSynthetics.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv4ByLocation, prefixesIpv6, prefixesIpv6ByLocation); + return Objects.hash( + prefixesIpv4, + prefixesIpv4ByLocation, + prefixesIpv6, + prefixesIpv6ByLocation, + additionalProperties); } @Override @@ -192,6 +246,9 @@ public String toString() { sb.append(" prefixesIpv6ByLocation: ") .append(toIndentedString(prefixesIpv6ByLocation)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSyntheticsPrivateLocations.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSyntheticsPrivateLocations.java index b06ed04ecd3..059766502b3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSyntheticsPrivateLocations.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesSyntheticsPrivateLocations.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the Synthetics Private Locations endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesSyntheticsPrivateLocations + */ + @JsonAnySetter + public IPPrefixesSyntheticsPrivateLocations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesSyntheticsPrivateLocations object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { IPPrefixesSyntheticsPrivateLocations ipPrefixesSyntheticsPrivateLocations = (IPPrefixesSyntheticsPrivateLocations) o; return Objects.equals(this.prefixesIpv4, ipPrefixesSyntheticsPrivateLocations.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesSyntheticsPrivateLocations.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesSyntheticsPrivateLocations.prefixesIpv6) + && Objects.equals( + this.additionalProperties, ipPrefixesSyntheticsPrivateLocations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class IPPrefixesSyntheticsPrivateLocations {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesWebhooks.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesWebhooks.java index da6baf42330..86661db06ef 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesWebhooks.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesWebhooks.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Available prefix information for the Webhook endpoints. */ @@ -87,6 +91,52 @@ public void setPrefixesIpv6(List prefixesIpv6) { this.prefixesIpv6 = prefixesIpv6; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesWebhooks + */ + @JsonAnySetter + public IPPrefixesWebhooks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPPrefixesWebhooks object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } IPPrefixesWebhooks ipPrefixesWebhooks = (IPPrefixesWebhooks) o; return Objects.equals(this.prefixesIpv4, ipPrefixesWebhooks.prefixesIpv4) - && Objects.equals(this.prefixesIpv6, ipPrefixesWebhooks.prefixesIpv6); + && Objects.equals(this.prefixesIpv6, ipPrefixesWebhooks.prefixesIpv6) + && Objects.equals(this.additionalProperties, ipPrefixesWebhooks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(prefixesIpv4, prefixesIpv6); + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class IPPrefixesWebhooks {\n"); sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IPRanges.java b/src/main/java/com/datadog/api/client/v1/model/IPRanges.java index 8620bac3e66..8eb3a354342 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPRanges.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPRanges.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** IP ranges. */ @@ -306,6 +310,52 @@ public void setWebhooks(IPPrefixesWebhooks webhooks) { this.webhooks = webhooks; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPRanges + */ + @JsonAnySetter + public IPRanges putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPRanges object is equal to o. */ @Override public boolean equals(Object o) { @@ -326,7 +376,8 @@ public boolean equals(Object o) { && Objects.equals(this.synthetics, ipRanges.synthetics) && Objects.equals(this.syntheticsPrivateLocations, ipRanges.syntheticsPrivateLocations) && Objects.equals(this.version, ipRanges.version) - && Objects.equals(this.webhooks, ipRanges.webhooks); + && Objects.equals(this.webhooks, ipRanges.webhooks) + && Objects.equals(this.additionalProperties, ipRanges.additionalProperties); } @Override @@ -342,7 +393,8 @@ public int hashCode() { synthetics, syntheticsPrivateLocations, version, - webhooks); + webhooks, + additionalProperties); } @Override @@ -362,6 +414,9 @@ public String toString() { .append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" webhooks: ").append(toIndentedString(webhooks)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IdpFormData.java b/src/main/java/com/datadog/api/client/v1/model/IdpFormData.java index 5e88a9a8c8d..8f5f821298c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IdpFormData.java +++ b/src/main/java/com/datadog/api/client/v1/model/IdpFormData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.io.File; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the IdP configuration. */ @@ -50,6 +54,52 @@ public void setIdpFile(File idpFile) { this.idpFile = idpFile; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IdpFormData + */ + @JsonAnySetter + public IdpFormData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IdpFormData object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } IdpFormData idpFormData = (IdpFormData) o; - return Objects.equals(this.idpFile, idpFormData.idpFile); + return Objects.equals(this.idpFile, idpFormData.idpFile) + && Objects.equals(this.additionalProperties, idpFormData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(idpFile); + return Objects.hash(idpFile, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IdpFormData {\n"); sb.append(" idpFile: ").append(toIndentedString(idpFile)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IdpResponse.java b/src/main/java/com/datadog/api/client/v1/model/IdpResponse.java index f0feffd2bfe..f10167dc6eb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IdpResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/IdpResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The IdP response object. */ @@ -49,6 +53,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IdpResponse + */ + @JsonAnySetter + public IdpResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IdpResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -59,12 +109,13 @@ public boolean equals(Object o) { return false; } IdpResponse idpResponse = (IdpResponse) o; - return Objects.equals(this.message, idpResponse.message); + return Objects.equals(this.message, idpResponse.message) + && Objects.equals(this.additionalProperties, idpResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(message); + return Objects.hash(message, additionalProperties); } @Override @@ -72,6 +123,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IdpResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ImageWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ImageWidgetDefinition.java index 6c3c06aab06..b2434faf2b0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ImageWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ImageWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -280,6 +284,52 @@ public void setVerticalAlign(WidgetVerticalAlign verticalAlign) { this.verticalAlign = verticalAlign; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ImageWidgetDefinition + */ + @JsonAnySetter + public ImageWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ImageWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -298,7 +348,8 @@ public boolean equals(Object o) { && Objects.equals(this.type, imageWidgetDefinition.type) && Objects.equals(this.url, imageWidgetDefinition.url) && Objects.equals(this.urlDarkTheme, imageWidgetDefinition.urlDarkTheme) - && Objects.equals(this.verticalAlign, imageWidgetDefinition.verticalAlign); + && Objects.equals(this.verticalAlign, imageWidgetDefinition.verticalAlign) + && Objects.equals(this.additionalProperties, imageWidgetDefinition.additionalProperties); } @Override @@ -312,7 +363,8 @@ public int hashCode() { type, url, urlDarkTheme, - verticalAlign); + verticalAlign, + additionalProperties); } @Override @@ -328,6 +380,9 @@ public String toString() { sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" urlDarkTheme: ").append(toIndentedString(urlDarkTheme)).append("\n"); sb.append(" verticalAlign: ").append(toIndentedString(verticalAlign)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/IntakePayloadAccepted.java b/src/main/java/com/datadog/api/client/v1/model/IntakePayloadAccepted.java index fef814ccdca..caf73c611ea 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IntakePayloadAccepted.java +++ b/src/main/java/com/datadog/api/client/v1/model/IntakePayloadAccepted.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The payload accepted for intake. */ @@ -42,6 +46,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IntakePayloadAccepted + */ + @JsonAnySetter + public IntakePayloadAccepted putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IntakePayloadAccepted object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } IntakePayloadAccepted intakePayloadAccepted = (IntakePayloadAccepted) o; - return Objects.equals(this.status, intakePayloadAccepted.status); + return Objects.equals(this.status, intakePayloadAccepted.status) + && Objects.equals(this.additionalProperties, intakePayloadAccepted.additionalProperties); } @Override public int hashCode() { - return Objects.hash(status); + return Objects.hash(status, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntakePayloadAccepted {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ListStreamColumn.java b/src/main/java/com/datadog/api/client/v1/model/ListStreamColumn.java index d1d82119951..933ba77dee1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ListStreamColumn.java +++ b/src/main/java/com/datadog/api/client/v1/model/ListStreamColumn.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Widget column. */ @@ -80,6 +84,52 @@ public void setWidth(ListStreamColumnWidth width) { this.width = width; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListStreamColumn + */ + @JsonAnySetter + public ListStreamColumn putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListStreamColumn object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,13 @@ public boolean equals(Object o) { } ListStreamColumn listStreamColumn = (ListStreamColumn) o; return Objects.equals(this.field, listStreamColumn.field) - && Objects.equals(this.width, listStreamColumn.width); + && Objects.equals(this.width, listStreamColumn.width) + && Objects.equals(this.additionalProperties, listStreamColumn.additionalProperties); } @Override public int hashCode() { - return Objects.hash(field, width); + return Objects.hash(field, width, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append("class ListStreamColumn {\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" width: ").append(toIndentedString(width)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ListStreamComputeItems.java b/src/main/java/com/datadog/api/client/v1/model/ListStreamComputeItems.java index 99b4f67a7f6..de3905ce481 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ListStreamComputeItems.java +++ b/src/main/java/com/datadog/api/client/v1/model/ListStreamComputeItems.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of facets and aggregations which to compute. */ @@ -83,6 +87,52 @@ public void setFacet(String facet) { this.facet = facet; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListStreamComputeItems + */ + @JsonAnySetter + public ListStreamComputeItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListStreamComputeItems object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } ListStreamComputeItems listStreamComputeItems = (ListStreamComputeItems) o; return Objects.equals(this.aggregation, listStreamComputeItems.aggregation) - && Objects.equals(this.facet, listStreamComputeItems.facet); + && Objects.equals(this.facet, listStreamComputeItems.facet) + && Objects.equals(this.additionalProperties, listStreamComputeItems.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, facet); + return Objects.hash(aggregation, facet, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class ListStreamComputeItems {\n"); sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ListStreamGroupByItems.java b/src/main/java/com/datadog/api/client/v1/model/ListStreamGroupByItems.java index 5542211b041..037237f9875 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ListStreamGroupByItems.java +++ b/src/main/java/com/datadog/api/client/v1/model/ListStreamGroupByItems.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of facets on which to group. */ @@ -50,6 +54,52 @@ public void setFacet(String facet) { this.facet = facet; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListStreamGroupByItems + */ + @JsonAnySetter + public ListStreamGroupByItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListStreamGroupByItems object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } ListStreamGroupByItems listStreamGroupByItems = (ListStreamGroupByItems) o; - return Objects.equals(this.facet, listStreamGroupByItems.facet); + return Objects.equals(this.facet, listStreamGroupByItems.facet) + && Objects.equals(this.additionalProperties, listStreamGroupByItems.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet); + return Objects.hash(facet, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListStreamGroupByItems {\n"); sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ListStreamQuery.java b/src/main/java/com/datadog/api/client/v1/model/ListStreamQuery.java index 0b7f1238487..90284a9b183 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ListStreamQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/ListStreamQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated list stream widget. */ @@ -275,6 +279,52 @@ public void setStorage(String storage) { this.storage = storage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListStreamQuery + */ + @JsonAnySetter + public ListStreamQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListStreamQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -292,13 +342,22 @@ public boolean equals(Object o) { && Objects.equals(this.indexes, listStreamQuery.indexes) && Objects.equals(this.queryString, listStreamQuery.queryString) && Objects.equals(this.sort, listStreamQuery.sort) - && Objects.equals(this.storage, listStreamQuery.storage); + && Objects.equals(this.storage, listStreamQuery.storage) + && Objects.equals(this.additionalProperties, listStreamQuery.additionalProperties); } @Override public int hashCode() { return Objects.hash( - compute, dataSource, eventSize, groupBy, indexes, queryString, sort, storage); + compute, + dataSource, + eventSize, + groupBy, + indexes, + queryString, + sort, + storage, + additionalProperties); } @Override @@ -313,6 +372,9 @@ public String toString() { sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetDefinition.java index 9522a6c5980..74bafe8d2dd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -254,6 +258,52 @@ public void setType(ListStreamWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListStreamWidgetDefinition + */ + @JsonAnySetter + public ListStreamWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListStreamWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -271,12 +321,23 @@ public boolean equals(Object o) { && Objects.equals(this.title, listStreamWidgetDefinition.title) && Objects.equals(this.titleAlign, listStreamWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, listStreamWidgetDefinition.titleSize) - && Objects.equals(this.type, listStreamWidgetDefinition.type); + && Objects.equals(this.type, listStreamWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, listStreamWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(legendSize, requests, showLegend, time, title, titleAlign, titleSize, type); + return Objects.hash( + legendSize, + requests, + showLegend, + time, + title, + titleAlign, + titleSize, + type, + additionalProperties); } @Override @@ -291,6 +352,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetRequest.java index a73b16237b9..c012efa0b4a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ListStreamWidgetRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated list stream widget. */ @@ -123,6 +127,52 @@ public void setResponseFormat(ListStreamResponseFormat responseFormat) { this.responseFormat = responseFormat; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListStreamWidgetRequest + */ + @JsonAnySetter + public ListStreamWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListStreamWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -135,12 +185,13 @@ public boolean equals(Object o) { ListStreamWidgetRequest listStreamWidgetRequest = (ListStreamWidgetRequest) o; return Objects.equals(this.columns, listStreamWidgetRequest.columns) && Objects.equals(this.query, listStreamWidgetRequest.query) - && Objects.equals(this.responseFormat, listStreamWidgetRequest.responseFormat); + && Objects.equals(this.responseFormat, listStreamWidgetRequest.responseFormat) + && Objects.equals(this.additionalProperties, listStreamWidgetRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(columns, query, responseFormat); + return Objects.hash(columns, query, responseFormat, additionalProperties); } @Override @@ -150,6 +201,9 @@ public String toString() { sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Log.java b/src/main/java/com/datadog/api/client/v1/model/Log.java index 8fc413ce0b4..edd3b2a3eda 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Log.java +++ b/src/main/java/com/datadog/api/client/v1/model/Log.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing a log after being processed and stored by Datadog. */ @@ -67,6 +71,52 @@ public void setId(String id) { this.id = id; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Log + */ + @JsonAnySetter + public Log putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Log object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,14 @@ public boolean equals(Object o) { return false; } Log log = (Log) o; - return Objects.equals(this.content, log.content) && Objects.equals(this.id, log.id); + return Objects.equals(this.content, log.content) + && Objects.equals(this.id, log.id) + && Objects.equals(this.additionalProperties, log.additionalProperties); } @Override public int hashCode() { - return Objects.hash(content, id); + return Objects.hash(content, id, additionalProperties); } @Override @@ -91,6 +143,9 @@ public String toString() { sb.append("class Log {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogContent.java b/src/main/java/com/datadog/api/client/v1/model/LogContent.java index dd24d0b0057..3c838620bb8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogContent.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogContent.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -195,6 +197,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogContent + */ + @JsonAnySetter + public LogContent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogContent object is equal to o. */ @Override public boolean equals(Object o) { @@ -210,12 +258,13 @@ public boolean equals(Object o) { && Objects.equals(this.message, logContent.message) && Objects.equals(this.service, logContent.service) && Objects.equals(this.tags, logContent.tags) - && Objects.equals(this.timestamp, logContent.timestamp); + && Objects.equals(this.timestamp, logContent.timestamp) + && Objects.equals(this.additionalProperties, logContent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, host, message, service, tags, timestamp); + return Objects.hash(attributes, host, message, service, tags, timestamp, additionalProperties); } @Override @@ -228,6 +277,9 @@ public String toString() { sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinition.java index 560cd3f7e9a..fc9ea01b2e4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinition.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The log query. */ @@ -173,6 +177,52 @@ public void setSearch(LogQueryDefinitionSearch search) { this.search = search; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogQueryDefinition + */ + @JsonAnySetter + public LogQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -187,12 +237,13 @@ public boolean equals(Object o) { && Objects.equals(this.groupBy, logQueryDefinition.groupBy) && Objects.equals(this.index, logQueryDefinition.index) && Objects.equals(this.multiCompute, logQueryDefinition.multiCompute) - && Objects.equals(this.search, logQueryDefinition.search); + && Objects.equals(this.search, logQueryDefinition.search) + && Objects.equals(this.additionalProperties, logQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, groupBy, index, multiCompute, search); + return Objects.hash(compute, groupBy, index, multiCompute, search, additionalProperties); } @Override @@ -204,6 +255,9 @@ public String toString() { sb.append(" index: ").append(toIndentedString(index)).append("\n"); sb.append(" multiCompute: ").append(toIndentedString(multiCompute)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBy.java b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBy.java index d0ae6ebabe8..f9fe7e44cbd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBy.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Defined items in the group. */ @@ -103,6 +107,52 @@ public void setSort(LogQueryDefinitionGroupBySort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogQueryDefinitionGroupBy + */ + @JsonAnySetter + public LogQueryDefinitionGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogQueryDefinitionGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,14 @@ public boolean equals(Object o) { LogQueryDefinitionGroupBy logQueryDefinitionGroupBy = (LogQueryDefinitionGroupBy) o; return Objects.equals(this.facet, logQueryDefinitionGroupBy.facet) && Objects.equals(this.limit, logQueryDefinitionGroupBy.limit) - && Objects.equals(this.sort, logQueryDefinitionGroupBy.sort); + && Objects.equals(this.sort, logQueryDefinitionGroupBy.sort) + && Objects.equals( + this.additionalProperties, logQueryDefinitionGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, limit, sort); + return Objects.hash(facet, limit, sort, additionalProperties); } @Override @@ -130,6 +182,9 @@ public String toString() { sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBySort.java b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBySort.java index 96cd0b24993..ee650c40e32 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBySort.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionGroupBySort.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Define a sorting method. */ @@ -108,6 +112,52 @@ public void setOrder(WidgetSort order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogQueryDefinitionGroupBySort + */ + @JsonAnySetter + public LogQueryDefinitionGroupBySort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogQueryDefinitionGroupBySort object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,14 @@ public boolean equals(Object o) { LogQueryDefinitionGroupBySort logQueryDefinitionGroupBySort = (LogQueryDefinitionGroupBySort) o; return Objects.equals(this.aggregation, logQueryDefinitionGroupBySort.aggregation) && Objects.equals(this.facet, logQueryDefinitionGroupBySort.facet) - && Objects.equals(this.order, logQueryDefinitionGroupBySort.order); + && Objects.equals(this.order, logQueryDefinitionGroupBySort.order) + && Objects.equals( + this.additionalProperties, logQueryDefinitionGroupBySort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, facet, order); + return Objects.hash(aggregation, facet, order, additionalProperties); } @Override @@ -135,6 +187,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionSearch.java b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionSearch.java index b5fb14a487b..f79a257b078 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionSearch.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogQueryDefinitionSearch.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The query being made on the logs. */ @@ -50,6 +54,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogQueryDefinitionSearch + */ + @JsonAnySetter + public LogQueryDefinitionSearch putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogQueryDefinitionSearch object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } LogQueryDefinitionSearch logQueryDefinitionSearch = (LogQueryDefinitionSearch) o; - return Objects.equals(this.query, logQueryDefinitionSearch.query); + return Objects.equals(this.query, logQueryDefinitionSearch.query) + && Objects.equals(this.additionalProperties, logQueryDefinitionSearch.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogQueryDefinitionSearch {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogStreamWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/LogStreamWidgetDefinition.java index 253e1a26f27..b8f1a9c9191 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogStreamWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogStreamWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -392,6 +396,52 @@ public void setType(LogStreamWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogStreamWidgetDefinition + */ + @JsonAnySetter + public LogStreamWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogStreamWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -414,7 +464,9 @@ public boolean equals(Object o) { && Objects.equals(this.title, logStreamWidgetDefinition.title) && Objects.equals(this.titleAlign, logStreamWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, logStreamWidgetDefinition.titleSize) - && Objects.equals(this.type, logStreamWidgetDefinition.type); + && Objects.equals(this.type, logStreamWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, logStreamWidgetDefinition.additionalProperties); } @Override @@ -432,7 +484,8 @@ public int hashCode() { title, titleAlign, titleSize, - type); + type, + additionalProperties); } @Override @@ -452,6 +505,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsAPIError.java b/src/main/java/com/datadog/api/client/v1/model/LogsAPIError.java index 96fdd477a0a..212e9951848 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsAPIError.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsAPIError.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Error returned by the Logs API */ @@ -108,6 +112,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAPIError + */ + @JsonAnySetter + public LogsAPIError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAPIError object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { LogsAPIError logsApiError = (LogsAPIError) o; return Objects.equals(this.code, logsApiError.code) && Objects.equals(this.details, logsApiError.details) - && Objects.equals(this.message, logsApiError.message); + && Objects.equals(this.message, logsApiError.message) + && Objects.equals(this.additionalProperties, logsApiError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, details, message); + return Objects.hash(code, details, message, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsAPIErrorResponse.java b/src/main/java/com/datadog/api/client/v1/model/LogsAPIErrorResponse.java index fdad1e0b579..fcdb1cf156c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsAPIErrorResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsAPIErrorResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response returned by the Logs API when errors occur. */ @@ -43,6 +47,52 @@ public void setError(LogsAPIError error) { this.error = error; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAPIErrorResponse + */ + @JsonAnySetter + public LogsAPIErrorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAPIErrorResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsAPIErrorResponse logsApiErrorResponse = (LogsAPIErrorResponse) o; - return Objects.equals(this.error, logsApiErrorResponse.error); + return Objects.equals(this.error, logsApiErrorResponse.error) + && Objects.equals(this.additionalProperties, logsApiErrorResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(error); + return Objects.hash(error, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsAPIErrorResponse {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsArithmeticProcessor.java b/src/main/java/com/datadog/api/client/v1/model/LogsArithmeticProcessor.java index f7047043f52..8b0c4c7ca78 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsArithmeticProcessor.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsArithmeticProcessor.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -212,6 +216,52 @@ public void setType(LogsArithmeticProcessorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArithmeticProcessor + */ + @JsonAnySetter + public LogsArithmeticProcessor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArithmeticProcessor object is equal to o. */ @Override public boolean equals(Object o) { @@ -227,12 +277,14 @@ public boolean equals(Object o) { && Objects.equals(this.isReplaceMissing, logsArithmeticProcessor.isReplaceMissing) && Objects.equals(this.name, logsArithmeticProcessor.name) && Objects.equals(this.target, logsArithmeticProcessor.target) - && Objects.equals(this.type, logsArithmeticProcessor.type); + && Objects.equals(this.type, logsArithmeticProcessor.type) + && Objects.equals(this.additionalProperties, logsArithmeticProcessor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(expression, isEnabled, isReplaceMissing, name, target, type); + return Objects.hash( + expression, isEnabled, isReplaceMissing, name, target, type, additionalProperties); } @Override @@ -245,6 +297,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsAttributeRemapper.java b/src/main/java/com/datadog/api/client/v1/model/LogsAttributeRemapper.java index c46fcfb42a0..a5d89e4b0f2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsAttributeRemapper.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsAttributeRemapper.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -305,6 +309,52 @@ public void setType(LogsAttributeRemapperType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAttributeRemapper + */ + @JsonAnySetter + public LogsAttributeRemapper putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAttributeRemapper object is equal to o. */ @Override public boolean equals(Object o) { @@ -324,7 +374,8 @@ public boolean equals(Object o) { && Objects.equals(this.target, logsAttributeRemapper.target) && Objects.equals(this.targetFormat, logsAttributeRemapper.targetFormat) && Objects.equals(this.targetType, logsAttributeRemapper.targetType) - && Objects.equals(this.type, logsAttributeRemapper.type); + && Objects.equals(this.type, logsAttributeRemapper.type) + && Objects.equals(this.additionalProperties, logsAttributeRemapper.additionalProperties); } @Override @@ -339,7 +390,8 @@ public int hashCode() { target, targetFormat, targetType, - type); + type, + additionalProperties); } @Override @@ -356,6 +408,9 @@ public String toString() { sb.append(" targetFormat: ").append(toIndentedString(targetFormat)).append("\n"); sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsByRetention.java b/src/main/java/com/datadog/api/client/v1/model/LogsByRetention.java index ab7e0dbade2..c4beb765822 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsByRetention.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsByRetention.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing logs usage data broken down by retention period. */ @@ -110,6 +114,52 @@ public void setUsageByMonth(LogsByRetentionMonthlyUsage usageByMonth) { this.usageByMonth = usageByMonth; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsByRetention + */ + @JsonAnySetter + public LogsByRetention putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsByRetention object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { LogsByRetention logsByRetention = (LogsByRetention) o; return Objects.equals(this.orgs, logsByRetention.orgs) && Objects.equals(this.usage, logsByRetention.usage) - && Objects.equals(this.usageByMonth, logsByRetention.usageByMonth); + && Objects.equals(this.usageByMonth, logsByRetention.usageByMonth) + && Objects.equals(this.additionalProperties, logsByRetention.additionalProperties); } @Override public int hashCode() { - return Objects.hash(orgs, usage, usageByMonth); + return Objects.hash(orgs, usage, usageByMonth, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" orgs: ").append(toIndentedString(orgs)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append(" usageByMonth: ").append(toIndentedString(usageByMonth)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionMonthlyUsage.java b/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionMonthlyUsage.java index ea74f684603..33f2e5a9e35 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionMonthlyUsage.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionMonthlyUsage.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing a summary of indexed logs usage by retention period for a single month. */ @@ -84,6 +88,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsByRetentionMonthlyUsage + */ + @JsonAnySetter + public LogsByRetentionMonthlyUsage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsByRetentionMonthlyUsage object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { } LogsByRetentionMonthlyUsage logsByRetentionMonthlyUsage = (LogsByRetentionMonthlyUsage) o; return Objects.equals(this.date, logsByRetentionMonthlyUsage.date) - && Objects.equals(this.usage, logsByRetentionMonthlyUsage.usage); + && Objects.equals(this.usage, logsByRetentionMonthlyUsage.usage) + && Objects.equals( + this.additionalProperties, logsByRetentionMonthlyUsage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(date, usage); + return Objects.hash(date, usage, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class LogsByRetentionMonthlyUsage {\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgUsage.java b/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgUsage.java index e1bb971effa..826a71e6732 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgUsage.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgUsage.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Indexed logs usage by retention for a single organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsByRetentionOrgUsage + */ + @JsonAnySetter + public LogsByRetentionOrgUsage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsByRetentionOrgUsage object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } LogsByRetentionOrgUsage logsByRetentionOrgUsage = (LogsByRetentionOrgUsage) o; - return Objects.equals(this.usage, logsByRetentionOrgUsage.usage); + return Objects.equals(this.usage, logsByRetentionOrgUsage.usage) + && Objects.equals(this.additionalProperties, logsByRetentionOrgUsage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsByRetentionOrgUsage {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgs.java b/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgs.java index 156f1f27d36..5530533bd39 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgs.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsByRetentionOrgs.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Indexed logs usage summary for each organization for each retention period with usage. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsByRetentionOrgs + */ + @JsonAnySetter + public LogsByRetentionOrgs putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsByRetentionOrgs object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } LogsByRetentionOrgs logsByRetentionOrgs = (LogsByRetentionOrgs) o; - return Objects.equals(this.usage, logsByRetentionOrgs.usage); + return Objects.equals(this.usage, logsByRetentionOrgs.usage) + && Objects.equals(this.additionalProperties, logsByRetentionOrgs.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsByRetentionOrgs {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessor.java b/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessor.java index 3e7230a4d70..bf836676687 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessor.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessor.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -190,6 +194,52 @@ public void setType(LogsCategoryProcessorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsCategoryProcessor + */ + @JsonAnySetter + public LogsCategoryProcessor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsCategoryProcessor object is equal to o. */ @Override public boolean equals(Object o) { @@ -204,12 +254,13 @@ public boolean equals(Object o) { && Objects.equals(this.isEnabled, logsCategoryProcessor.isEnabled) && Objects.equals(this.name, logsCategoryProcessor.name) && Objects.equals(this.target, logsCategoryProcessor.target) - && Objects.equals(this.type, logsCategoryProcessor.type); + && Objects.equals(this.type, logsCategoryProcessor.type) + && Objects.equals(this.additionalProperties, logsCategoryProcessor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(categories, isEnabled, name, target, type); + return Objects.hash(categories, isEnabled, name, target, type, additionalProperties); } @Override @@ -221,6 +272,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessorCategory.java b/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessorCategory.java index 2eac8bef9d0..30169c58482 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessorCategory.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsCategoryProcessorCategory.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the logs filter. */ @@ -70,6 +74,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsCategoryProcessorCategory + */ + @JsonAnySetter + public LogsCategoryProcessorCategory putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsCategoryProcessorCategory object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { } LogsCategoryProcessorCategory logsCategoryProcessorCategory = (LogsCategoryProcessorCategory) o; return Objects.equals(this.filter, logsCategoryProcessorCategory.filter) - && Objects.equals(this.name, logsCategoryProcessorCategory.name); + && Objects.equals(this.name, logsCategoryProcessorCategory.name) + && Objects.equals( + this.additionalProperties, logsCategoryProcessorCategory.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, name); + return Objects.hash(filter, name, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class LogsCategoryProcessorCategory {\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsDateRemapper.java b/src/main/java/com/datadog/api/client/v1/model/LogsDateRemapper.java index 662675d044c..bce9bbd3f7c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsDateRemapper.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsDateRemapper.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -163,6 +167,52 @@ public void setType(LogsDateRemapperType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsDateRemapper + */ + @JsonAnySetter + public LogsDateRemapper putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsDateRemapper object is equal to o. */ @Override public boolean equals(Object o) { @@ -176,12 +226,13 @@ public boolean equals(Object o) { return Objects.equals(this.isEnabled, logsDateRemapper.isEnabled) && Objects.equals(this.name, logsDateRemapper.name) && Objects.equals(this.sources, logsDateRemapper.sources) - && Objects.equals(this.type, logsDateRemapper.type); + && Objects.equals(this.type, logsDateRemapper.type) + && Objects.equals(this.additionalProperties, logsDateRemapper.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, sources, type); + return Objects.hash(isEnabled, name, sources, type, additionalProperties); } @Override @@ -192,6 +243,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsExclusion.java b/src/main/java/com/datadog/api/client/v1/model/LogsExclusion.java index eadc5d5ca81..0cf69b53947 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsExclusion.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsExclusion.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Represents the index exclusion filter object from configuration API. */ @@ -102,6 +106,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsExclusion + */ + @JsonAnySetter + public LogsExclusion putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsExclusion object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,13 @@ public boolean equals(Object o) { LogsExclusion logsExclusion = (LogsExclusion) o; return Objects.equals(this.filter, logsExclusion.filter) && Objects.equals(this.isEnabled, logsExclusion.isEnabled) - && Objects.equals(this.name, logsExclusion.name); + && Objects.equals(this.name, logsExclusion.name) + && Objects.equals(this.additionalProperties, logsExclusion.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, isEnabled, name); + return Objects.hash(filter, isEnabled, name, additionalProperties); } @Override @@ -129,6 +180,9 @@ public String toString() { sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsExclusionFilter.java b/src/main/java/com/datadog/api/client/v1/model/LogsExclusionFilter.java index 2cef000e386..9d6df28bca2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsExclusionFilter.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsExclusionFilter.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. */ @@ -79,6 +83,52 @@ public void setSampleRate(Double sampleRate) { this.sampleRate = sampleRate; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsExclusionFilter + */ + @JsonAnySetter + public LogsExclusionFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsExclusionFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,13 @@ public boolean equals(Object o) { } LogsExclusionFilter logsExclusionFilter = (LogsExclusionFilter) o; return Objects.equals(this.query, logsExclusionFilter.query) - && Objects.equals(this.sampleRate, logsExclusionFilter.sampleRate); + && Objects.equals(this.sampleRate, logsExclusionFilter.sampleRate) + && Objects.equals(this.additionalProperties, logsExclusionFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query, sampleRate); + return Objects.hash(query, sampleRate, additionalProperties); } @Override @@ -104,6 +155,9 @@ public String toString() { sb.append("class LogsExclusionFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" sampleRate: ").append(toIndentedString(sampleRate)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsFilter.java b/src/main/java/com/datadog/api/client/v1/model/LogsFilter.java index 694512a7340..b677497013a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsFilter.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Filter for logs. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsFilter + */ + @JsonAnySetter + public LogsFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } LogsFilter logsFilter = (LogsFilter) o; - return Objects.equals(this.query, logsFilter.query); + return Objects.equals(this.query, logsFilter.query) + && Objects.equals(this.additionalProperties, logsFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsGeoIPParser.java b/src/main/java/com/datadog/api/client/v1/model/LogsGeoIPParser.java index 1532e63a898..2c0ef6a2315 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsGeoIPParser.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsGeoIPParser.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -170,6 +174,52 @@ public void setType(LogsGeoIPParserType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsGeoIPParser + */ + @JsonAnySetter + public LogsGeoIPParser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsGeoIPParser object is equal to o. */ @Override public boolean equals(Object o) { @@ -184,12 +234,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, logsGeoIpParser.name) && Objects.equals(this.sources, logsGeoIpParser.sources) && Objects.equals(this.target, logsGeoIpParser.target) - && Objects.equals(this.type, logsGeoIpParser.type); + && Objects.equals(this.type, logsGeoIpParser.type) + && Objects.equals(this.additionalProperties, logsGeoIpParser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, sources, target, type); + return Objects.hash(isEnabled, name, sources, target, type, additionalProperties); } @Override @@ -201,6 +252,9 @@ public String toString() { sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsGrokParser.java b/src/main/java/com/datadog/api/client/v1/model/LogsGrokParser.java index 0b8a061e341..352481672bc 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsGrokParser.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsGrokParser.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -201,6 +205,52 @@ public void setType(LogsGrokParserType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsGrokParser + */ + @JsonAnySetter + public LogsGrokParser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsGrokParser object is equal to o. */ @Override public boolean equals(Object o) { @@ -216,12 +266,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, logsGrokParser.name) && Objects.equals(this.samples, logsGrokParser.samples) && Objects.equals(this.source, logsGrokParser.source) - && Objects.equals(this.type, logsGrokParser.type); + && Objects.equals(this.type, logsGrokParser.type) + && Objects.equals(this.additionalProperties, logsGrokParser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(grok, isEnabled, name, samples, source, type); + return Objects.hash(grok, isEnabled, name, samples, source, type, additionalProperties); } @Override @@ -234,6 +285,9 @@ public String toString() { sb.append(" samples: ").append(toIndentedString(samples)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsGrokParserRules.java b/src/main/java/com/datadog/api/client/v1/model/LogsGrokParserRules.java index 60385137075..8c08f1f5ade 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsGrokParserRules.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsGrokParserRules.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Set of rules for the grok parser. */ @@ -77,6 +81,52 @@ public void setSupportRules(String supportRules) { this.supportRules = supportRules; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsGrokParserRules + */ + @JsonAnySetter + public LogsGrokParserRules putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsGrokParserRules object is equal to o. */ @Override public boolean equals(Object o) { @@ -88,12 +138,13 @@ public boolean equals(Object o) { } LogsGrokParserRules logsGrokParserRules = (LogsGrokParserRules) o; return Objects.equals(this.matchRules, logsGrokParserRules.matchRules) - && Objects.equals(this.supportRules, logsGrokParserRules.supportRules); + && Objects.equals(this.supportRules, logsGrokParserRules.supportRules) + && Objects.equals(this.additionalProperties, logsGrokParserRules.additionalProperties); } @Override public int hashCode() { - return Objects.hash(matchRules, supportRules); + return Objects.hash(matchRules, supportRules, additionalProperties); } @Override @@ -102,6 +153,9 @@ public String toString() { sb.append("class LogsGrokParserRules {\n"); sb.append(" matchRules: ").append(toIndentedString(matchRules)).append("\n"); sb.append(" supportRules: ").append(toIndentedString(supportRules)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java b/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java index 72a325046a1..c8ea776c469 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing a Datadog Log index. */ @@ -189,6 +193,52 @@ public void setNumRetentionDays(Long numRetentionDays) { this.numRetentionDays = numRetentionDays; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsIndex + */ + @JsonAnySetter + public LogsIndex putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsIndex object is equal to o. */ @Override public boolean equals(Object o) { @@ -204,13 +254,20 @@ public boolean equals(Object o) { && Objects.equals(this.filter, logsIndex.filter) && Objects.equals(this.isRateLimited, logsIndex.isRateLimited) && Objects.equals(this.name, logsIndex.name) - && Objects.equals(this.numRetentionDays, logsIndex.numRetentionDays); + && Objects.equals(this.numRetentionDays, logsIndex.numRetentionDays) + && Objects.equals(this.additionalProperties, logsIndex.additionalProperties); } @Override public int hashCode() { return Objects.hash( - dailyLimit, exclusionFilters, filter, isRateLimited, name, numRetentionDays); + dailyLimit, + exclusionFilters, + filter, + isRateLimited, + name, + numRetentionDays, + additionalProperties); } @Override @@ -223,6 +280,9 @@ public String toString() { sb.append(" isRateLimited: ").append(toIndentedString(isRateLimited)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" numRetentionDays: ").append(toIndentedString(numRetentionDays)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsIndexListResponse.java b/src/main/java/com/datadog/api/client/v1/model/LogsIndexListResponse.java index 4e6c6e3e3da..5dac680edfa 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsIndexListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsIndexListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object with all Index configurations for a given organization. */ @@ -56,6 +60,52 @@ public void setIndexes(List indexes) { this.indexes = indexes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsIndexListResponse + */ + @JsonAnySetter + public LogsIndexListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsIndexListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } LogsIndexListResponse logsIndexListResponse = (LogsIndexListResponse) o; - return Objects.equals(this.indexes, logsIndexListResponse.indexes); + return Objects.equals(this.indexes, logsIndexListResponse.indexes) + && Objects.equals(this.additionalProperties, logsIndexListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(indexes); + return Objects.hash(indexes, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsIndexListResponse {\n"); sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java index f44fd87b976..6bc4e29b182 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object for updating a Datadog Log index. */ @@ -176,6 +180,52 @@ public void setNumRetentionDays(Long numRetentionDays) { this.numRetentionDays = numRetentionDays; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsIndexUpdateRequest + */ + @JsonAnySetter + public LogsIndexUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsIndexUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -190,12 +240,19 @@ public boolean equals(Object o) { && Objects.equals(this.disableDailyLimit, logsIndexUpdateRequest.disableDailyLimit) && Objects.equals(this.exclusionFilters, logsIndexUpdateRequest.exclusionFilters) && Objects.equals(this.filter, logsIndexUpdateRequest.filter) - && Objects.equals(this.numRetentionDays, logsIndexUpdateRequest.numRetentionDays); + && Objects.equals(this.numRetentionDays, logsIndexUpdateRequest.numRetentionDays) + && Objects.equals(this.additionalProperties, logsIndexUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dailyLimit, disableDailyLimit, exclusionFilters, filter, numRetentionDays); + return Objects.hash( + dailyLimit, + disableDailyLimit, + exclusionFilters, + filter, + numRetentionDays, + additionalProperties); } @Override @@ -207,6 +264,9 @@ public String toString() { sb.append(" exclusionFilters: ").append(toIndentedString(exclusionFilters)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" numRetentionDays: ").append(toIndentedString(numRetentionDays)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsIndexesOrder.java b/src/main/java/com/datadog/api/client/v1/model/LogsIndexesOrder.java index eaf7ce7c62b..3b10d2c0c22 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsIndexesOrder.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsIndexesOrder.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the ordered list of log index names. */ @@ -59,6 +63,52 @@ public void setIndexNames(List indexNames) { this.indexNames = indexNames; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsIndexesOrder + */ + @JsonAnySetter + public LogsIndexesOrder putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsIndexesOrder object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,13 @@ public boolean equals(Object o) { return false; } LogsIndexesOrder logsIndexesOrder = (LogsIndexesOrder) o; - return Objects.equals(this.indexNames, logsIndexesOrder.indexNames); + return Objects.equals(this.indexNames, logsIndexesOrder.indexNames) + && Objects.equals(this.additionalProperties, logsIndexesOrder.additionalProperties); } @Override public int hashCode() { - return Objects.hash(indexNames); + return Objects.hash(indexNames, additionalProperties); } @Override @@ -82,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsIndexesOrder {\n"); sb.append(" indexNames: ").append(toIndentedString(indexNames)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsListRequest.java b/src/main/java/com/datadog/api/client/v1/model/LogsListRequest.java index a787d09a577..827b9c44d6b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsListRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsListRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to send with the request to retrieve a list of logs from your Organization. */ @@ -188,6 +192,52 @@ public void setTime(LogsListRequestTime time) { this.time = time; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListRequest + */ + @JsonAnySetter + public LogsListRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -203,12 +253,13 @@ public boolean equals(Object o) { && Objects.equals(this.query, logsListRequest.query) && Objects.equals(this.sort, logsListRequest.sort) && Objects.equals(this.startAt, logsListRequest.startAt) - && Objects.equals(this.time, logsListRequest.time); + && Objects.equals(this.time, logsListRequest.time) + && Objects.equals(this.additionalProperties, logsListRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(index, limit, query, sort, startAt, time); + return Objects.hash(index, limit, query, sort, startAt, time, additionalProperties); } @Override @@ -221,6 +272,9 @@ public String toString() { sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsListRequestTime.java b/src/main/java/com/datadog/api/client/v1/model/LogsListRequestTime.java index da341bc67e7..0e957111f12 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsListRequestTime.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsListRequestTime.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Timeframe to retrieve the log from. */ @@ -105,6 +109,52 @@ public void setTo(OffsetDateTime to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListRequestTime + */ + @JsonAnySetter + public LogsListRequestTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListRequestTime object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +167,13 @@ public boolean equals(Object o) { LogsListRequestTime logsListRequestTime = (LogsListRequestTime) o; return Objects.equals(this.from, logsListRequestTime.from) && Objects.equals(this.timezone, logsListRequestTime.timezone) - && Objects.equals(this.to, logsListRequestTime.to); + && Objects.equals(this.to, logsListRequestTime.to) + && Objects.equals(this.additionalProperties, logsListRequestTime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, timezone, to); + return Objects.hash(from, timezone, to, additionalProperties); } @Override @@ -132,6 +183,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 cf961904c0c..a42356cc0a3 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -120,6 +124,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListResponse + */ + @JsonAnySetter + public LogsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,13 @@ public boolean equals(Object o) { LogsListResponse logsListResponse = (LogsListResponse) o; return Objects.equals(this.logs, logsListResponse.logs) && Objects.equals(this.nextLogId, logsListResponse.nextLogId) - && Objects.equals(this.status, logsListResponse.status); + && Objects.equals(this.status, logsListResponse.status) + && Objects.equals(this.additionalProperties, logsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(logs, nextLogId, status); + return Objects.hash(logs, nextLogId, status, additionalProperties); } @Override @@ -147,6 +198,9 @@ public String toString() { sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); sb.append(" nextLogId: ").append(toIndentedString(nextLogId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsLookupProcessor.java b/src/main/java/com/datadog/api/client/v1/model/LogsLookupProcessor.java index 9bb17df820a..1f56470ac27 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsLookupProcessor.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsLookupProcessor.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -225,6 +229,52 @@ public void setType(LogsLookupProcessorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsLookupProcessor + */ + @JsonAnySetter + public LogsLookupProcessor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsLookupProcessor object is equal to o. */ @Override public boolean equals(Object o) { @@ -241,12 +291,14 @@ public boolean equals(Object o) { && Objects.equals(this.name, logsLookupProcessor.name) && Objects.equals(this.source, logsLookupProcessor.source) && Objects.equals(this.target, logsLookupProcessor.target) - && Objects.equals(this.type, logsLookupProcessor.type); + && Objects.equals(this.type, logsLookupProcessor.type) + && Objects.equals(this.additionalProperties, logsLookupProcessor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(defaultLookup, isEnabled, lookupTable, name, source, target, type); + return Objects.hash( + defaultLookup, isEnabled, lookupTable, name, source, target, type, additionalProperties); } @Override @@ -260,6 +312,9 @@ public String toString() { sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsMessageRemapper.java b/src/main/java/com/datadog/api/client/v1/model/LogsMessageRemapper.java index 9651f2513bf..a622df63c60 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsMessageRemapper.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsMessageRemapper.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -147,6 +151,52 @@ public void setType(LogsMessageRemapperType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMessageRemapper + */ + @JsonAnySetter + public LogsMessageRemapper putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMessageRemapper object is equal to o. */ @Override public boolean equals(Object o) { @@ -160,12 +210,13 @@ public boolean equals(Object o) { return Objects.equals(this.isEnabled, logsMessageRemapper.isEnabled) && Objects.equals(this.name, logsMessageRemapper.name) && Objects.equals(this.sources, logsMessageRemapper.sources) - && Objects.equals(this.type, logsMessageRemapper.type); + && Objects.equals(this.type, logsMessageRemapper.type) + && Objects.equals(this.additionalProperties, logsMessageRemapper.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, sources, type); + return Objects.hash(isEnabled, name, sources, type, additionalProperties); } @Override @@ -176,6 +227,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsPipeline.java b/src/main/java/com/datadog/api/client/v1/model/LogsPipeline.java index 16642505c19..8867ba040ba 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsPipeline.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsPipeline.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -195,6 +199,52 @@ public String getType() { return type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsPipeline + */ + @JsonAnySetter + public LogsPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsPipeline object is equal to o. */ @Override public boolean equals(Object o) { @@ -211,12 +261,14 @@ public boolean equals(Object o) { && Objects.equals(this.isReadOnly, logsPipeline.isReadOnly) && Objects.equals(this.name, logsPipeline.name) && Objects.equals(this.processors, logsPipeline.processors) - && Objects.equals(this.type, logsPipeline.type); + && Objects.equals(this.type, logsPipeline.type) + && Objects.equals(this.additionalProperties, logsPipeline.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, id, isEnabled, isReadOnly, name, processors, type); + return Objects.hash( + filter, id, isEnabled, isReadOnly, name, processors, type, additionalProperties); } @Override @@ -230,6 +282,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" processors: ").append(toIndentedString(processors)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsPipelineProcessor.java b/src/main/java/com/datadog/api/client/v1/model/LogsPipelineProcessor.java index e946c6a889e..f0fb4175ea9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsPipelineProcessor.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsPipelineProcessor.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -179,6 +183,52 @@ public void setType(LogsPipelineProcessorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsPipelineProcessor + */ + @JsonAnySetter + public LogsPipelineProcessor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsPipelineProcessor object is equal to o. */ @Override public boolean equals(Object o) { @@ -193,12 +243,13 @@ public boolean equals(Object o) { && Objects.equals(this.isEnabled, logsPipelineProcessor.isEnabled) && Objects.equals(this.name, logsPipelineProcessor.name) && Objects.equals(this.processors, logsPipelineProcessor.processors) - && Objects.equals(this.type, logsPipelineProcessor.type); + && Objects.equals(this.type, logsPipelineProcessor.type) + && Objects.equals(this.additionalProperties, logsPipelineProcessor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, isEnabled, name, processors, type); + return Objects.hash(filter, isEnabled, name, processors, type, additionalProperties); } @Override @@ -210,6 +261,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" processors: ").append(toIndentedString(processors)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsPipelinesOrder.java b/src/main/java/com/datadog/api/client/v1/model/LogsPipelinesOrder.java index 01d95c9619f..3743b163d47 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsPipelinesOrder.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsPipelinesOrder.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the ordered list of pipeline IDs. */ @@ -58,6 +62,52 @@ public void setPipelineIds(List pipelineIds) { this.pipelineIds = pipelineIds; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsPipelinesOrder + */ + @JsonAnySetter + public LogsPipelinesOrder putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsPipelinesOrder object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,13 @@ public boolean equals(Object o) { return false; } LogsPipelinesOrder logsPipelinesOrder = (LogsPipelinesOrder) o; - return Objects.equals(this.pipelineIds, logsPipelinesOrder.pipelineIds); + return Objects.equals(this.pipelineIds, logsPipelinesOrder.pipelineIds) + && Objects.equals(this.additionalProperties, logsPipelinesOrder.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pipelineIds); + return Objects.hash(pipelineIds, additionalProperties); } @Override @@ -81,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsPipelinesOrder {\n"); sb.append(" pipelineIds: ").append(toIndentedString(pipelineIds)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsQueryCompute.java b/src/main/java/com/datadog/api/client/v1/model/LogsQueryCompute.java index 5a6a1499dd7..a61d9b0736e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsQueryCompute.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsQueryCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Define computation for a log query. */ @@ -102,6 +106,52 @@ public void setInterval(Long interval) { this.interval = interval; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsQueryCompute + */ + @JsonAnySetter + public LogsQueryCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsQueryCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,13 @@ public boolean equals(Object o) { LogsQueryCompute logsQueryCompute = (LogsQueryCompute) o; return Objects.equals(this.aggregation, logsQueryCompute.aggregation) && Objects.equals(this.facet, logsQueryCompute.facet) - && Objects.equals(this.interval, logsQueryCompute.interval); + && Objects.equals(this.interval, logsQueryCompute.interval) + && Objects.equals(this.additionalProperties, logsQueryCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, facet, interval); + return Objects.hash(aggregation, facet, interval, additionalProperties); } @Override @@ -129,6 +180,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsRetentionAggSumUsage.java b/src/main/java/com/datadog/api/client/v1/model/LogsRetentionAggSumUsage.java index 94b71053319..2f3b95b2029 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsRetentionAggSumUsage.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsRetentionAggSumUsage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -127,6 +131,52 @@ public void setRetention(String retention) { this.retention = retention; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsRetentionAggSumUsage + */ + @JsonAnySetter + public LogsRetentionAggSumUsage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsRetentionAggSumUsage object is equal to o. */ @Override public boolean equals(Object o) { @@ -145,7 +195,8 @@ public boolean equals(Object o) { && Objects.equals( this.logsRehydratedIndexedLogsUsageAggSum, logsRetentionAggSumUsage.logsRehydratedIndexedLogsUsageAggSum) - && Objects.equals(this.retention, logsRetentionAggSumUsage.retention); + && Objects.equals(this.retention, logsRetentionAggSumUsage.retention) + && Objects.equals(this.additionalProperties, logsRetentionAggSumUsage.additionalProperties); } @Override @@ -154,7 +205,8 @@ public int hashCode() { logsIndexedLogsUsageAggSum, logsLiveIndexedLogsUsageAggSum, logsRehydratedIndexedLogsUsageAggSum, - retention); + retention, + additionalProperties); } @Override @@ -171,6 +223,9 @@ public String toString() { .append(toIndentedString(logsRehydratedIndexedLogsUsageAggSum)) .append("\n"); sb.append(" retention: ").append(toIndentedString(retention)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsRetentionSumUsage.java b/src/main/java/com/datadog/api/client/v1/model/LogsRetentionSumUsage.java index 3e08ba9b479..800e0553505 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsRetentionSumUsage.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsRetentionSumUsage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing indexed logs usage grouped by retention period and summed. */ @@ -123,6 +127,52 @@ public void setRetention(String retention) { this.retention = retention; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsRetentionSumUsage + */ + @JsonAnySetter + public LogsRetentionSumUsage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsRetentionSumUsage object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,7 +190,8 @@ public boolean equals(Object o) { && Objects.equals( this.logsRehydratedIndexedLogsUsageSum, logsRetentionSumUsage.logsRehydratedIndexedLogsUsageSum) - && Objects.equals(this.retention, logsRetentionSumUsage.retention); + && Objects.equals(this.retention, logsRetentionSumUsage.retention) + && Objects.equals(this.additionalProperties, logsRetentionSumUsage.additionalProperties); } @Override @@ -149,7 +200,8 @@ public int hashCode() { logsIndexedLogsUsageSum, logsLiveIndexedLogsUsageSum, logsRehydratedIndexedLogsUsageSum, - retention); + retention, + additionalProperties); } @Override @@ -166,6 +218,9 @@ public String toString() { .append(toIndentedString(logsRehydratedIndexedLogsUsageSum)) .append("\n"); sb.append(" retention: ").append(toIndentedString(retention)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsServiceRemapper.java b/src/main/java/com/datadog/api/client/v1/model/LogsServiceRemapper.java index 393f093651a..b47e4f32412 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsServiceRemapper.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsServiceRemapper.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -145,6 +149,52 @@ public void setType(LogsServiceRemapperType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsServiceRemapper + */ + @JsonAnySetter + public LogsServiceRemapper putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsServiceRemapper object is equal to o. */ @Override public boolean equals(Object o) { @@ -158,12 +208,13 @@ public boolean equals(Object o) { return Objects.equals(this.isEnabled, logsServiceRemapper.isEnabled) && Objects.equals(this.name, logsServiceRemapper.name) && Objects.equals(this.sources, logsServiceRemapper.sources) - && Objects.equals(this.type, logsServiceRemapper.type); + && Objects.equals(this.type, logsServiceRemapper.type) + && Objects.equals(this.additionalProperties, logsServiceRemapper.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, sources, type); + return Objects.hash(isEnabled, name, sources, type, additionalProperties); } @Override @@ -174,6 +225,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsStatusRemapper.java b/src/main/java/com/datadog/api/client/v1/model/LogsStatusRemapper.java index fe1b399a97a..f5b342ab07f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsStatusRemapper.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsStatusRemapper.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -164,6 +168,52 @@ public void setType(LogsStatusRemapperType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsStatusRemapper + */ + @JsonAnySetter + public LogsStatusRemapper putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsStatusRemapper object is equal to o. */ @Override public boolean equals(Object o) { @@ -177,12 +227,13 @@ public boolean equals(Object o) { return Objects.equals(this.isEnabled, logsStatusRemapper.isEnabled) && Objects.equals(this.name, logsStatusRemapper.name) && Objects.equals(this.sources, logsStatusRemapper.sources) - && Objects.equals(this.type, logsStatusRemapper.type); + && Objects.equals(this.type, logsStatusRemapper.type) + && Objects.equals(this.additionalProperties, logsStatusRemapper.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, sources, type); + return Objects.hash(isEnabled, name, sources, type, additionalProperties); } @Override @@ -193,6 +244,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsStringBuilderProcessor.java b/src/main/java/com/datadog/api/client/v1/model/LogsStringBuilderProcessor.java index abfc698ee2b..b16b0581073 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsStringBuilderProcessor.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsStringBuilderProcessor.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -204,6 +208,52 @@ public void setType(LogsStringBuilderProcessorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsStringBuilderProcessor + */ + @JsonAnySetter + public LogsStringBuilderProcessor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsStringBuilderProcessor object is equal to o. */ @Override public boolean equals(Object o) { @@ -219,12 +269,15 @@ public boolean equals(Object o) { && Objects.equals(this.name, logsStringBuilderProcessor.name) && Objects.equals(this.target, logsStringBuilderProcessor.target) && Objects.equals(this.template, logsStringBuilderProcessor.template) - && Objects.equals(this.type, logsStringBuilderProcessor.type); + && Objects.equals(this.type, logsStringBuilderProcessor.type) + && Objects.equals( + this.additionalProperties, logsStringBuilderProcessor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, isReplaceMissing, name, target, template, type); + return Objects.hash( + isEnabled, isReplaceMissing, name, target, template, type, additionalProperties); } @Override @@ -237,6 +290,9 @@ public String toString() { sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsTraceRemapper.java b/src/main/java/com/datadog/api/client/v1/model/LogsTraceRemapper.java index c71fdb26f53..b6139ce791b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsTraceRemapper.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsTraceRemapper.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -154,6 +158,52 @@ public void setType(LogsTraceRemapperType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsTraceRemapper + */ + @JsonAnySetter + public LogsTraceRemapper putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsTraceRemapper object is equal to o. */ @Override public boolean equals(Object o) { @@ -167,12 +217,13 @@ public boolean equals(Object o) { return Objects.equals(this.isEnabled, logsTraceRemapper.isEnabled) && Objects.equals(this.name, logsTraceRemapper.name) && Objects.equals(this.sources, logsTraceRemapper.sources) - && Objects.equals(this.type, logsTraceRemapper.type); + && Objects.equals(this.type, logsTraceRemapper.type) + && Objects.equals(this.additionalProperties, logsTraceRemapper.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, sources, type); + return Objects.hash(isEnabled, name, sources, type, additionalProperties); } @Override @@ -183,6 +234,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsURLParser.java b/src/main/java/com/datadog/api/client/v1/model/LogsURLParser.java index fea4769742e..2acafc5f712 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsURLParser.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsURLParser.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -203,6 +207,52 @@ public void setType(LogsURLParserType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsURLParser + */ + @JsonAnySetter + public LogsURLParser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsURLParser object is equal to o. */ @Override public boolean equals(Object o) { @@ -218,12 +268,14 @@ public boolean equals(Object o) { && Objects.equals(this.normalizeEndingSlashes, logsUrlParser.normalizeEndingSlashes) && Objects.equals(this.sources, logsUrlParser.sources) && Objects.equals(this.target, logsUrlParser.target) - && Objects.equals(this.type, logsUrlParser.type); + && Objects.equals(this.type, logsUrlParser.type) + && Objects.equals(this.additionalProperties, logsUrlParser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, name, normalizeEndingSlashes, sources, target, type); + return Objects.hash( + isEnabled, name, normalizeEndingSlashes, sources, target, type, additionalProperties); } @Override @@ -238,6 +290,9 @@ public String toString() { sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsUserAgentParser.java b/src/main/java/com/datadog/api/client/v1/model/LogsUserAgentParser.java index 444dc50ee25..e7dce9264a0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsUserAgentParser.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsUserAgentParser.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -195,6 +199,52 @@ public void setType(LogsUserAgentParserType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsUserAgentParser + */ + @JsonAnySetter + public LogsUserAgentParser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsUserAgentParser object is equal to o. */ @Override public boolean equals(Object o) { @@ -210,12 +260,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, logsUserAgentParser.name) && Objects.equals(this.sources, logsUserAgentParser.sources) && Objects.equals(this.target, logsUserAgentParser.target) - && Objects.equals(this.type, logsUserAgentParser.type); + && Objects.equals(this.type, logsUserAgentParser.type) + && Objects.equals(this.additionalProperties, logsUserAgentParser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, isEncoded, name, sources, target, type); + return Objects.hash(isEnabled, isEncoded, name, sources, target, type, additionalProperties); } @Override @@ -228,6 +279,9 @@ public String toString() { sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MatchingDowntime.java b/src/main/java/com/datadog/api/client/v1/model/MatchingDowntime.java index aa99a2705e3..e8fcb0a8047 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MatchingDowntime.java +++ b/src/main/java/com/datadog/api/client/v1/model/MatchingDowntime.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -141,6 +145,52 @@ public void setStart(Long start) { this.start = start; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MatchingDowntime + */ + @JsonAnySetter + public MatchingDowntime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MatchingDowntime object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +204,13 @@ public boolean equals(Object o) { return Objects.equals(this.end, matchingDowntime.end) && Objects.equals(this.id, matchingDowntime.id) && Objects.equals(this.scope, matchingDowntime.scope) - && Objects.equals(this.start, matchingDowntime.start); + && Objects.equals(this.start, matchingDowntime.start) + && Objects.equals(this.additionalProperties, matchingDowntime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(end, id, scope, start); + return Objects.hash(end, id, scope, start, additionalProperties); } @Override @@ -170,6 +221,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricMetadata.java b/src/main/java/com/datadog/api/client/v1/model/MetricMetadata.java index e0e50bb8582..933e5913401 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object with all metric related metadata. */ @@ -185,6 +189,52 @@ public void setUnit(String unit) { this.unit = unit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricMetadata + */ + @JsonAnySetter + public MetricMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -201,12 +251,21 @@ public boolean equals(Object o) { && Objects.equals(this.shortName, metricMetadata.shortName) && Objects.equals(this.statsdInterval, metricMetadata.statsdInterval) && Objects.equals(this.type, metricMetadata.type) - && Objects.equals(this.unit, metricMetadata.unit); + && Objects.equals(this.unit, metricMetadata.unit) + && Objects.equals(this.additionalProperties, metricMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, integration, perUnit, shortName, statsdInterval, type, unit); + return Objects.hash( + description, + integration, + perUnit, + shortName, + statsdInterval, + type, + unit, + additionalProperties); } @Override @@ -220,6 +279,9 @@ public String toString() { sb.append(" statsdInterval: ").append(toIndentedString(statsdInterval)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponse.java b/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponse.java index 7ebadbf7989..47e3ae992a6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the list of metrics matching the search query. */ @@ -43,6 +47,52 @@ public void setResults(MetricSearchResponseResults results) { this.results = results; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricSearchResponse + */ + @JsonAnySetter + public MetricSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricSearchResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } MetricSearchResponse metricSearchResponse = (MetricSearchResponse) o; - return Objects.equals(this.results, metricSearchResponse.results); + return Objects.equals(this.results, metricSearchResponse.results) + && Objects.equals(this.additionalProperties, metricSearchResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(results); + return Objects.hash(results, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricSearchResponse {\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponseResults.java b/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponseResults.java index 7574b394c08..943d359a105 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponseResults.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricSearchResponseResults.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Search result. */ @@ -52,6 +56,52 @@ public void setMetrics(List metrics) { this.metrics = metrics; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricSearchResponseResults + */ + @JsonAnySetter + public MetricSearchResponseResults putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricSearchResponseResults object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } MetricSearchResponseResults metricSearchResponseResults = (MetricSearchResponseResults) o; - return Objects.equals(this.metrics, metricSearchResponseResults.metrics); + return Objects.equals(this.metrics, metricSearchResponseResults.metrics) + && Objects.equals( + this.additionalProperties, metricSearchResponseResults.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metrics); + return Objects.hash(metrics, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricSearchResponseResults {\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricsListResponse.java b/src/main/java/com/datadog/api/client/v1/model/MetricsListResponse.java index fe50692d810..e1f0208edd5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricsListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricsListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object listing all metric names stored by Datadog since a given time. */ @@ -79,6 +83,52 @@ public void setMetrics(List metrics) { this.metrics = metrics; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsListResponse + */ + @JsonAnySetter + public MetricsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,13 @@ public boolean equals(Object o) { } MetricsListResponse metricsListResponse = (MetricsListResponse) o; return Objects.equals(this.from, metricsListResponse.from) - && Objects.equals(this.metrics, metricsListResponse.metrics); + && Objects.equals(this.metrics, metricsListResponse.metrics) + && Objects.equals(this.additionalProperties, metricsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, metrics); + return Objects.hash(from, metrics, additionalProperties); } @Override @@ -104,6 +155,9 @@ public String toString() { sb.append("class MetricsListResponse {\n"); sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricsPayload.java b/src/main/java/com/datadog/api/client/v1/model/MetricsPayload.java index 8aeb09dd781..7d703045f81 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricsPayload.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricsPayload.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metrics' payload. */ @@ -61,6 +65,52 @@ public void setSeries(List series) { this.series = series; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsPayload + */ + @JsonAnySetter + public MetricsPayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsPayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -71,12 +121,13 @@ public boolean equals(Object o) { return false; } MetricsPayload metricsPayload = (MetricsPayload) o; - return Objects.equals(this.series, metricsPayload.series); + return Objects.equals(this.series, metricsPayload.series) + && Objects.equals(this.additionalProperties, metricsPayload.additionalProperties); } @Override public int hashCode() { - return Objects.hash(series); + return Objects.hash(series, additionalProperties); } @Override @@ -84,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricsPayload {\n"); sb.append(" series: ").append(toIndentedString(series)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricsQueryMetadata.java b/src/main/java/com/datadog/api/client/v1/model/MetricsQueryMetadata.java index 43fc8b85c7f..94c202cd502 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricsQueryMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricsQueryMetadata.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -246,6 +250,52 @@ public List getUnit() { return unit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsQueryMetadata + */ + @JsonAnySetter + public MetricsQueryMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsQueryMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -268,7 +318,8 @@ public boolean equals(Object o) { && Objects.equals(this.scope, metricsQueryMetadata.scope) && Objects.equals(this.start, metricsQueryMetadata.start) && Objects.equals(this.tagSet, metricsQueryMetadata.tagSet) - && Objects.equals(this.unit, metricsQueryMetadata.unit); + && Objects.equals(this.unit, metricsQueryMetadata.unit) + && Objects.equals(this.additionalProperties, metricsQueryMetadata.additionalProperties); } @Override @@ -286,7 +337,8 @@ public int hashCode() { scope, start, tagSet, - unit); + unit, + additionalProperties); } @Override @@ -306,6 +358,9 @@ public String toString() { sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" tagSet: ").append(toIndentedString(tagSet)).append("\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricsQueryResponse.java b/src/main/java/com/datadog/api/client/v1/model/MetricsQueryResponse.java index 5bbcd1c44d6..ed24c26f07f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricsQueryResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricsQueryResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response Object that includes your query and the list of metrics retrieved. */ @@ -164,6 +168,52 @@ public Long getToDate() { return toDate; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsQueryResponse + */ + @JsonAnySetter + public MetricsQueryResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsQueryResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -182,12 +232,23 @@ public boolean equals(Object o) { && Objects.equals(this.resType, metricsQueryResponse.resType) && Objects.equals(this.series, metricsQueryResponse.series) && Objects.equals(this.status, metricsQueryResponse.status) - && Objects.equals(this.toDate, metricsQueryResponse.toDate); + && Objects.equals(this.toDate, metricsQueryResponse.toDate) + && Objects.equals(this.additionalProperties, metricsQueryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(error, fromDate, groupBy, message, query, resType, series, status, toDate); + return Objects.hash( + error, + fromDate, + groupBy, + message, + query, + resType, + series, + status, + toDate, + additionalProperties); } @Override @@ -203,6 +264,9 @@ public String toString() { sb.append(" series: ").append(toIndentedString(series)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" toDate: ").append(toIndentedString(toDate)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MetricsQueryUnit.java b/src/main/java/com/datadog/api/client/v1/model/MetricsQueryUnit.java index 17abde7a9da..87077063180 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MetricsQueryUnit.java +++ b/src/main/java/com/datadog/api/client/v1/model/MetricsQueryUnit.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the metric unit family, scale factor, name, and short name. */ @@ -99,6 +103,52 @@ public String getShortName() { return shortName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsQueryUnit + */ + @JsonAnySetter + public MetricsQueryUnit putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsQueryUnit object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, metricsQueryUnit.name) && Objects.equals(this.plural, metricsQueryUnit.plural) && Objects.equals(this.scaleFactor, metricsQueryUnit.scaleFactor) - && Objects.equals(this.shortName, metricsQueryUnit.shortName); + && Objects.equals(this.shortName, metricsQueryUnit.shortName) + && Objects.equals(this.additionalProperties, metricsQueryUnit.additionalProperties); } @Override public int hashCode() { - return Objects.hash(family, name, plural, scaleFactor, shortName); + return Objects.hash(family, name, plural, scaleFactor, shortName, additionalProperties); } @Override @@ -130,6 +181,9 @@ public String toString() { sb.append(" plural: ").append(toIndentedString(plural)).append("\n"); sb.append(" scaleFactor: ").append(toIndentedString(scaleFactor)).append("\n"); sb.append(" shortName: ").append(toIndentedString(shortName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Monitor.java b/src/main/java/com/datadog/api/client/v1/model/Monitor.java index c3fbe688600..474a4df2abb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Monitor.java +++ b/src/main/java/com/datadog/api/client/v1/model/Monitor.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -13,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -466,6 +470,52 @@ public void setType(MonitorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Monitor + */ + @JsonAnySetter + public Monitor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Monitor object is equal to o. */ @Override public boolean equals(Object o) { @@ -492,7 +542,8 @@ public boolean equals(Object o) { && Objects.equals(this.restrictedRoles, monitor.restrictedRoles) && Objects.equals(this.state, monitor.state) && Objects.equals(this.tags, monitor.tags) - && Objects.equals(this.type, monitor.type); + && Objects.equals(this.type, monitor.type) + && Objects.equals(this.additionalProperties, monitor.additionalProperties); } @Override @@ -514,7 +565,8 @@ public int hashCode() { restrictedRoles, state, tags, - type); + type, + additionalProperties); } @Override @@ -538,6 +590,9 @@ public String toString() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinition.java index 074436a5355..8a6cdf7d5e9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A formula and functions events query. */ @@ -217,6 +221,53 @@ public void setSearch(MonitorFormulaAndFunctionEventQueryDefinitionSearch search this.search = search; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorFormulaAndFunctionEventQueryDefinition + */ + @JsonAnySetter + public MonitorFormulaAndFunctionEventQueryDefinition putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorFormulaAndFunctionEventQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -233,12 +284,15 @@ public boolean equals(Object o) { && Objects.equals(this.groupBy, monitorFormulaAndFunctionEventQueryDefinition.groupBy) && Objects.equals(this.indexes, monitorFormulaAndFunctionEventQueryDefinition.indexes) && Objects.equals(this.name, monitorFormulaAndFunctionEventQueryDefinition.name) - && Objects.equals(this.search, monitorFormulaAndFunctionEventQueryDefinition.search); + && Objects.equals(this.search, monitorFormulaAndFunctionEventQueryDefinition.search) + && Objects.equals( + this.additionalProperties, + monitorFormulaAndFunctionEventQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, dataSource, groupBy, indexes, name, search); + return Objects.hash(compute, dataSource, groupBy, indexes, name, search, additionalProperties); } @Override @@ -251,6 +305,9 @@ public String toString() { sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionCompute.java b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionCompute.java index 5fd3d3104a6..44b098866ab 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionCompute.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Compute options. */ @@ -109,6 +113,53 @@ public void setMetric(String metric) { this.metric = metric; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorFormulaAndFunctionEventQueryDefinitionCompute + */ + @JsonAnySetter + public MonitorFormulaAndFunctionEventQueryDefinitionCompute putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** * Return true if this MonitorFormulaAndFunctionEventQueryDefinitionCompute object is equal to o. */ @@ -127,12 +178,15 @@ public boolean equals(Object o) { this.aggregation, monitorFormulaAndFunctionEventQueryDefinitionCompute.aggregation) && Objects.equals( this.interval, monitorFormulaAndFunctionEventQueryDefinitionCompute.interval) - && Objects.equals(this.metric, monitorFormulaAndFunctionEventQueryDefinitionCompute.metric); + && Objects.equals(this.metric, monitorFormulaAndFunctionEventQueryDefinitionCompute.metric) + && Objects.equals( + this.additionalProperties, + monitorFormulaAndFunctionEventQueryDefinitionCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, interval, metric); + return Objects.hash(aggregation, interval, metric, additionalProperties); } @Override @@ -142,6 +196,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionSearch.java b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionSearch.java index 5d0cd6c652d..6a40802b5f7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionSearch.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryDefinitionSearch.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Search options. */ @@ -50,6 +54,53 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorFormulaAndFunctionEventQueryDefinitionSearch + */ + @JsonAnySetter + public MonitorFormulaAndFunctionEventQueryDefinitionSearch putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** * Return true if this MonitorFormulaAndFunctionEventQueryDefinitionSearch object is equal to o. */ @@ -64,12 +115,15 @@ public boolean equals(Object o) { MonitorFormulaAndFunctionEventQueryDefinitionSearch monitorFormulaAndFunctionEventQueryDefinitionSearch = (MonitorFormulaAndFunctionEventQueryDefinitionSearch) o; - return Objects.equals(this.query, monitorFormulaAndFunctionEventQueryDefinitionSearch.query); + return Objects.equals(this.query, monitorFormulaAndFunctionEventQueryDefinitionSearch.query) + && Objects.equals( + this.additionalProperties, + monitorFormulaAndFunctionEventQueryDefinitionSearch.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -77,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorFormulaAndFunctionEventQueryDefinitionSearch {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBy.java b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBy.java index a71ee263ffb..7060c1f76d9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBy.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of objects used to group by. */ @@ -104,6 +108,53 @@ public void setSort(MonitorFormulaAndFunctionEventQueryGroupBySort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorFormulaAndFunctionEventQueryGroupBy + */ + @JsonAnySetter + public MonitorFormulaAndFunctionEventQueryGroupBy putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorFormulaAndFunctionEventQueryGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +168,15 @@ public boolean equals(Object o) { (MonitorFormulaAndFunctionEventQueryGroupBy) o; return Objects.equals(this.facet, monitorFormulaAndFunctionEventQueryGroupBy.facet) && Objects.equals(this.limit, monitorFormulaAndFunctionEventQueryGroupBy.limit) - && Objects.equals(this.sort, monitorFormulaAndFunctionEventQueryGroupBy.sort); + && Objects.equals(this.sort, monitorFormulaAndFunctionEventQueryGroupBy.sort) + && Objects.equals( + this.additionalProperties, + monitorFormulaAndFunctionEventQueryGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, limit, sort); + return Objects.hash(facet, limit, sort, additionalProperties); } @Override @@ -132,6 +186,9 @@ public String toString() { sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBySort.java b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBySort.java index c1bcc7fb19e..0c8d7f049f8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBySort.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventQueryGroupBySort.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options for sorting group by results. */ @@ -113,6 +117,53 @@ public void setOrder(QuerySortOrder order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorFormulaAndFunctionEventQueryGroupBySort + */ + @JsonAnySetter + public MonitorFormulaAndFunctionEventQueryGroupBySort putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorFormulaAndFunctionEventQueryGroupBySort object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +178,15 @@ public boolean equals(Object o) { return Objects.equals( this.aggregation, monitorFormulaAndFunctionEventQueryGroupBySort.aggregation) && Objects.equals(this.metric, monitorFormulaAndFunctionEventQueryGroupBySort.metric) - && Objects.equals(this.order, monitorFormulaAndFunctionEventQueryGroupBySort.order); + && Objects.equals(this.order, monitorFormulaAndFunctionEventQueryGroupBySort.order) + && Objects.equals( + this.additionalProperties, + monitorFormulaAndFunctionEventQueryGroupBySort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, metric, order); + return Objects.hash(aggregation, metric, order, additionalProperties); } @Override @@ -142,6 +196,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponse.java b/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponse.java index ca726934335..fae2e86a445 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response of a monitor group search. */ @@ -78,6 +82,52 @@ public void setMetadata(MonitorSearchResponseMetadata metadata) { this.metadata = metadata; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorGroupSearchResponse + */ + @JsonAnySetter + public MonitorGroupSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorGroupSearchResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,14 @@ public boolean equals(Object o) { MonitorGroupSearchResponse monitorGroupSearchResponse = (MonitorGroupSearchResponse) o; return Objects.equals(this.counts, monitorGroupSearchResponse.counts) && Objects.equals(this.groups, monitorGroupSearchResponse.groups) - && Objects.equals(this.metadata, monitorGroupSearchResponse.metadata); + && Objects.equals(this.metadata, monitorGroupSearchResponse.metadata) + && Objects.equals( + this.additionalProperties, monitorGroupSearchResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(counts, groups, metadata); + return Objects.hash(counts, groups, metadata, additionalProperties); } @Override @@ -105,6 +157,9 @@ public String toString() { sb.append(" counts: ").append(toIndentedString(counts)).append("\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponseCounts.java b/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponseCounts.java index a299af3be5a..f863b21f621 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponseCounts.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResponseCounts.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The counts of monitor groups per different criteria. */ @@ -95,6 +99,52 @@ public void setType(List type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorGroupSearchResponseCounts + */ + @JsonAnySetter + public MonitorGroupSearchResponseCounts putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorGroupSearchResponseCounts object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,14 @@ public boolean equals(Object o) { MonitorGroupSearchResponseCounts monitorGroupSearchResponseCounts = (MonitorGroupSearchResponseCounts) o; return Objects.equals(this.status, monitorGroupSearchResponseCounts.status) - && Objects.equals(this.type, monitorGroupSearchResponseCounts.type); + && Objects.equals(this.type, monitorGroupSearchResponseCounts.type) + && Objects.equals( + this.additionalProperties, monitorGroupSearchResponseCounts.additionalProperties); } @Override public int hashCode() { - return Objects.hash(status, type); + return Objects.hash(status, type, additionalProperties); } @Override @@ -121,6 +173,9 @@ public String toString() { sb.append("class MonitorGroupSearchResponseCounts {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResult.java b/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResult.java index 10815a26c52..236d8a7062e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResult.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorGroupSearchResult.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -147,6 +151,52 @@ public MonitorOverallStates getStatus() { return status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorGroupSearchResult + */ + @JsonAnySetter + public MonitorGroupSearchResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorGroupSearchResult object is equal to o. */ @Override public boolean equals(Object o) { @@ -163,13 +213,21 @@ public boolean equals(Object o) { && Objects.equals(this.lastTriggeredTs, monitorGroupSearchResult.lastTriggeredTs) && Objects.equals(this.monitorId, monitorGroupSearchResult.monitorId) && Objects.equals(this.monitorName, monitorGroupSearchResult.monitorName) - && Objects.equals(this.status, monitorGroupSearchResult.status); + && Objects.equals(this.status, monitorGroupSearchResult.status) + && Objects.equals(this.additionalProperties, monitorGroupSearchResult.additionalProperties); } @Override public int hashCode() { return Objects.hash( - group, groupTags, lastNodataTs, lastTriggeredTs, monitorId, monitorName, status); + group, + groupTags, + lastNodataTs, + lastTriggeredTs, + monitorId, + monitorName, + status, + additionalProperties); } @Override @@ -183,6 +241,9 @@ public String toString() { sb.append(" monitorId: ").append(toIndentedString(monitorId)).append("\n"); sb.append(" monitorName: ").append(toIndentedString(monitorName)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorOptions.java b/src/main/java/com/datadog/api/client/v1/model/MonitorOptions.java index 8d936ff77da..4d5a8dee540 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorOptions.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -1010,6 +1012,52 @@ public void setVariables(List variable this.variables = variables; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorOptions + */ + @JsonAnySetter + public MonitorOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -1050,7 +1098,8 @@ public boolean equals(Object o) { && Objects.equals(this.thresholdWindows, monitorOptions.thresholdWindows) && Objects.equals(this.thresholds, monitorOptions.thresholds) && Objects.equals(this.timeoutH, monitorOptions.timeoutH) - && Objects.equals(this.variables, monitorOptions.variables); + && Objects.equals(this.variables, monitorOptions.variables) + && Objects.equals(this.additionalProperties, monitorOptions.additionalProperties); } @Override @@ -1086,7 +1135,8 @@ public int hashCode() { thresholdWindows, thresholds, timeoutH, - variables); + variables, + additionalProperties); } @Override @@ -1132,6 +1182,9 @@ public String toString() { sb.append(" thresholds: ").append(toIndentedString(thresholds)).append("\n"); sb.append(" timeoutH: ").append(toIndentedString(timeoutH)).append("\n"); sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsAggregation.java b/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsAggregation.java index 5e5d44b3185..c4c0b9f7274 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsAggregation.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsAggregation.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Type of aggregation performed in the monitor query. */ @@ -94,6 +98,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorOptionsAggregation + */ + @JsonAnySetter + public MonitorOptionsAggregation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorOptionsAggregation object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,14 @@ public boolean equals(Object o) { MonitorOptionsAggregation monitorOptionsAggregation = (MonitorOptionsAggregation) o; return Objects.equals(this.groupBy, monitorOptionsAggregation.groupBy) && Objects.equals(this.metric, monitorOptionsAggregation.metric) - && Objects.equals(this.type, monitorOptionsAggregation.type); + && Objects.equals(this.type, monitorOptionsAggregation.type) + && Objects.equals( + this.additionalProperties, monitorOptionsAggregation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groupBy, metric, type); + return Objects.hash(groupBy, metric, type, additionalProperties); } @Override @@ -121,6 +173,9 @@ public String toString() { sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptions.java b/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptions.java index d64c26ad41b..6b5f40e3219 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Configuration options for scheduling. */ @@ -47,6 +51,52 @@ public void setEvaluationWindow( this.evaluationWindow = evaluationWindow; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorOptionsSchedulingOptions + */ + @JsonAnySetter + public MonitorOptionsSchedulingOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorOptionsSchedulingOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -58,12 +108,14 @@ public boolean equals(Object o) { } MonitorOptionsSchedulingOptions monitorOptionsSchedulingOptions = (MonitorOptionsSchedulingOptions) o; - return Objects.equals(this.evaluationWindow, monitorOptionsSchedulingOptions.evaluationWindow); + return Objects.equals(this.evaluationWindow, monitorOptionsSchedulingOptions.evaluationWindow) + && Objects.equals( + this.additionalProperties, monitorOptionsSchedulingOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(evaluationWindow); + return Objects.hash(evaluationWindow, additionalProperties); } @Override @@ -71,6 +123,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorOptionsSchedulingOptions {\n"); sb.append(" evaluationWindow: ").append(toIndentedString(evaluationWindow)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptionsEvaluationWindow.java b/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptionsEvaluationWindow.java index 6b65c1f36c8..a34a27dc365 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptionsEvaluationWindow.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorOptionsSchedulingOptionsEvaluationWindow.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -101,6 +105,53 @@ public void setMonthStarts(Integer monthStarts) { this.monthStarts = monthStarts; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorOptionsSchedulingOptionsEvaluationWindow + */ + @JsonAnySetter + public MonitorOptionsSchedulingOptionsEvaluationWindow putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorOptionsSchedulingOptionsEvaluationWindow object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +168,15 @@ public boolean equals(Object o) { && Objects.equals( this.hourStarts, monitorOptionsSchedulingOptionsEvaluationWindow.hourStarts) && Objects.equals( - this.monthStarts, monitorOptionsSchedulingOptionsEvaluationWindow.monthStarts); + this.monthStarts, monitorOptionsSchedulingOptionsEvaluationWindow.monthStarts) + && Objects.equals( + this.additionalProperties, + monitorOptionsSchedulingOptionsEvaluationWindow.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dayStarts, hourStarts, monthStarts); + return Objects.hash(dayStarts, hourStarts, monthStarts, additionalProperties); } @Override @@ -132,6 +186,9 @@ public String toString() { sb.append(" dayStarts: ").append(toIndentedString(dayStarts)).append("\n"); sb.append(" hourStarts: ").append(toIndentedString(hourStarts)).append("\n"); sb.append(" monthStarts: ").append(toIndentedString(monthStarts)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchCountItem.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchCountItem.java index 747273cc2b6..a42991990a1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchCountItem.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchCountItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A facet item. */ @@ -51,6 +55,52 @@ public Object getName() { return name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSearchCountItem + */ + @JsonAnySetter + public MonitorSearchCountItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSearchCountItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { } MonitorSearchCountItem monitorSearchCountItem = (MonitorSearchCountItem) o; return Objects.equals(this.count, monitorSearchCountItem.count) - && Objects.equals(this.name, monitorSearchCountItem.name); + && Objects.equals(this.name, monitorSearchCountItem.name) + && Objects.equals(this.additionalProperties, monitorSearchCountItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, name); + return Objects.hash(count, name, additionalProperties); } @Override @@ -76,6 +127,9 @@ public String toString() { sb.append("class MonitorSearchCountItem {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponse.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponse.java index 25724b8acae..6c60dcf2bb4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response form a monitor search. */ @@ -78,6 +82,52 @@ public List getMonitors() { return monitors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSearchResponse + */ + @JsonAnySetter + public MonitorSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSearchResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,13 @@ public boolean equals(Object o) { MonitorSearchResponse monitorSearchResponse = (MonitorSearchResponse) o; return Objects.equals(this.counts, monitorSearchResponse.counts) && Objects.equals(this.metadata, monitorSearchResponse.metadata) - && Objects.equals(this.monitors, monitorSearchResponse.monitors); + && Objects.equals(this.monitors, monitorSearchResponse.monitors) + && Objects.equals(this.additionalProperties, monitorSearchResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(counts, metadata, monitors); + return Objects.hash(counts, metadata, monitors, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append(" counts: ").append(toIndentedString(counts)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" monitors: ").append(toIndentedString(monitors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseCounts.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseCounts.java index 0b54877da2b..8a0d6925116 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseCounts.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseCounts.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The counts of monitors per different criteria. */ @@ -169,6 +173,52 @@ public void setType(List type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSearchResponseCounts + */ + @JsonAnySetter + public MonitorSearchResponseCounts putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSearchResponseCounts object is equal to o. */ @Override public boolean equals(Object o) { @@ -182,12 +232,14 @@ public boolean equals(Object o) { return Objects.equals(this.muted, monitorSearchResponseCounts.muted) && Objects.equals(this.status, monitorSearchResponseCounts.status) && Objects.equals(this.tag, monitorSearchResponseCounts.tag) - && Objects.equals(this.type, monitorSearchResponseCounts.type); + && Objects.equals(this.type, monitorSearchResponseCounts.type) + && Objects.equals( + this.additionalProperties, monitorSearchResponseCounts.additionalProperties); } @Override public int hashCode() { - return Objects.hash(muted, status, tag, type); + return Objects.hash(muted, status, tag, type, additionalProperties); } @Override @@ -198,6 +250,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseMetadata.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseMetadata.java index 6ec553a3b22..e53246d0016 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResponseMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Metadata about the response. */ @@ -83,6 +87,52 @@ public Long getTotalCount() { return totalCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSearchResponseMetadata + */ + @JsonAnySetter + public MonitorSearchResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSearchResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { return Objects.equals(this.page, monitorSearchResponseMetadata.page) && Objects.equals(this.pageCount, monitorSearchResponseMetadata.pageCount) && Objects.equals(this.perPage, monitorSearchResponseMetadata.perPage) - && Objects.equals(this.totalCount, monitorSearchResponseMetadata.totalCount); + && Objects.equals(this.totalCount, monitorSearchResponseMetadata.totalCount) + && Objects.equals( + this.additionalProperties, monitorSearchResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page, pageCount, perPage, totalCount); + return Objects.hash(page, pageCount, perPage, totalCount, additionalProperties); } @Override @@ -112,6 +164,9 @@ public String toString() { sb.append(" pageCount: ").append(toIndentedString(pageCount)).append("\n"); sb.append(" perPage: ").append(toIndentedString(perPage)).append("\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResult.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResult.java index aff3d2b281d..7d5d3c23b2b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResult.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResult.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -287,6 +291,52 @@ public void setType(MonitorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSearchResult + */ + @JsonAnySetter + public MonitorSearchResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSearchResult object is equal to o. */ @Override public boolean equals(Object o) { @@ -309,7 +359,8 @@ public boolean equals(Object o) { && Objects.equals(this.scopes, monitorSearchResult.scopes) && Objects.equals(this.status, monitorSearchResult.status) && Objects.equals(this.tags, monitorSearchResult.tags) - && Objects.equals(this.type, monitorSearchResult.type); + && Objects.equals(this.type, monitorSearchResult.type) + && Objects.equals(this.additionalProperties, monitorSearchResult.additionalProperties); } @Override @@ -327,7 +378,8 @@ public int hashCode() { scopes, status, tags, - type); + type, + additionalProperties); } @Override @@ -347,6 +399,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResultNotification.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResultNotification.java index eaa7764f456..57123584ac7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResultNotification.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSearchResultNotification.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A notification triggered by the monitor. */ @@ -51,6 +55,52 @@ public String getName() { return name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSearchResultNotification + */ + @JsonAnySetter + public MonitorSearchResultNotification putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSearchResultNotification object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { MonitorSearchResultNotification monitorSearchResultNotification = (MonitorSearchResultNotification) o; return Objects.equals(this.handle, monitorSearchResultNotification.handle) - && Objects.equals(this.name, monitorSearchResultNotification.name); + && Objects.equals(this.name, monitorSearchResultNotification.name) + && Objects.equals( + this.additionalProperties, monitorSearchResultNotification.additionalProperties); } @Override public int hashCode() { - return Objects.hash(handle, name); + return Objects.hash(handle, name, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { sb.append("class MonitorSearchResultNotification {\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorState.java b/src/main/java/com/datadog/api/client/v1/model/MonitorState.java index 3cf45fe5fc5..c46147c2af0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorState.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorState.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -53,6 +55,52 @@ public void setGroups(Map groups) { this.groups = groups; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorState + */ + @JsonAnySetter + public MonitorState putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorState object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +111,13 @@ public boolean equals(Object o) { return false; } MonitorState monitorState = (MonitorState) o; - return Objects.equals(this.groups, monitorState.groups); + return Objects.equals(this.groups, monitorState.groups) + && Objects.equals(this.additionalProperties, monitorState.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groups); + return Objects.hash(groups, additionalProperties); } @Override @@ -76,6 +125,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorState {\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorStateGroup.java b/src/main/java/com/datadog/api/client/v1/model/MonitorStateGroup.java index 52aeece8a40..e3dc0695b5b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorStateGroup.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorStateGroup.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Monitor state for a single group. */ @@ -160,6 +164,52 @@ public MonitorOverallStates getStatus() { return status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorStateGroup + */ + @JsonAnySetter + public MonitorStateGroup putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorStateGroup object is equal to o. */ @Override public boolean equals(Object o) { @@ -175,13 +225,20 @@ public boolean equals(Object o) { && Objects.equals(this.lastResolvedTs, monitorStateGroup.lastResolvedTs) && Objects.equals(this.lastTriggeredTs, monitorStateGroup.lastTriggeredTs) && Objects.equals(this.name, monitorStateGroup.name) - && Objects.equals(this.status, monitorStateGroup.status); + && Objects.equals(this.status, monitorStateGroup.status) + && Objects.equals(this.additionalProperties, monitorStateGroup.additionalProperties); } @Override public int hashCode() { return Objects.hash( - lastNodataTs, lastNotifiedTs, lastResolvedTs, lastTriggeredTs, name, status); + lastNodataTs, + lastNotifiedTs, + lastResolvedTs, + lastTriggeredTs, + name, + status, + additionalProperties); } @Override @@ -194,6 +251,9 @@ public String toString() { sb.append(" lastTriggeredTs: ").append(toIndentedString(lastTriggeredTs)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorSummaryWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/MonitorSummaryWidgetDefinition.java index 0a8bce2e83c..2c77a17fda6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorSummaryWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorSummaryWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -415,6 +419,52 @@ public void setType(MonitorSummaryWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorSummaryWidgetDefinition + */ + @JsonAnySetter + public MonitorSummaryWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorSummaryWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -439,7 +489,9 @@ public boolean equals(Object o) { && Objects.equals(this.title, monitorSummaryWidgetDefinition.title) && Objects.equals(this.titleAlign, monitorSummaryWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, monitorSummaryWidgetDefinition.titleSize) - && Objects.equals(this.type, monitorSummaryWidgetDefinition.type); + && Objects.equals(this.type, monitorSummaryWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, monitorSummaryWidgetDefinition.additionalProperties); } @Override @@ -458,7 +510,8 @@ public int hashCode() { title, titleAlign, titleSize, - type); + type, + additionalProperties); } @Override @@ -479,6 +532,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorThresholdWindowOptions.java b/src/main/java/com/datadog/api/client/v1/model/MonitorThresholdWindowOptions.java index 5927d2ca9e0..b3838a29547 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorThresholdWindowOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorThresholdWindowOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -90,6 +94,52 @@ public void setTriggerWindow(String triggerWindow) { this.triggerWindow = JsonNullable.of(triggerWindow); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorThresholdWindowOptions + */ + @JsonAnySetter + public MonitorThresholdWindowOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorThresholdWindowOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -101,12 +151,14 @@ public boolean equals(Object o) { } MonitorThresholdWindowOptions monitorThresholdWindowOptions = (MonitorThresholdWindowOptions) o; return Objects.equals(this.recoveryWindow, monitorThresholdWindowOptions.recoveryWindow) - && Objects.equals(this.triggerWindow, monitorThresholdWindowOptions.triggerWindow); + && Objects.equals(this.triggerWindow, monitorThresholdWindowOptions.triggerWindow) + && Objects.equals( + this.additionalProperties, monitorThresholdWindowOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(recoveryWindow, triggerWindow); + return Objects.hash(recoveryWindow, triggerWindow, additionalProperties); } @Override @@ -115,6 +167,9 @@ public String toString() { sb.append("class MonitorThresholdWindowOptions {\n"); sb.append(" recoveryWindow: ").append(toIndentedString(recoveryWindow)).append("\n"); sb.append(" triggerWindow: ").append(toIndentedString(triggerWindow)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorThresholds.java b/src/main/java/com/datadog/api/client/v1/model/MonitorThresholds.java index 0af797da084..0929e0bfb83 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorThresholds.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorThresholds.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -220,6 +224,52 @@ public void setWarningRecovery(Double warningRecovery) { this.warningRecovery = JsonNullable.of(warningRecovery); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorThresholds + */ + @JsonAnySetter + public MonitorThresholds putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorThresholds object is equal to o. */ @Override public boolean equals(Object o) { @@ -235,12 +285,14 @@ public boolean equals(Object o) { && Objects.equals(this.ok, monitorThresholds.ok) && Objects.equals(this.unknown, monitorThresholds.unknown) && Objects.equals(this.warning, monitorThresholds.warning) - && Objects.equals(this.warningRecovery, monitorThresholds.warningRecovery); + && Objects.equals(this.warningRecovery, monitorThresholds.warningRecovery) + && Objects.equals(this.additionalProperties, monitorThresholds.additionalProperties); } @Override public int hashCode() { - return Objects.hash(critical, criticalRecovery, ok, unknown, warning, warningRecovery); + return Objects.hash( + critical, criticalRecovery, ok, unknown, warning, warningRecovery, additionalProperties); } @Override @@ -253,6 +305,9 @@ public String toString() { sb.append(" unknown: ").append(toIndentedString(unknown)).append("\n"); sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); sb.append(" warningRecovery: ").append(toIndentedString(warningRecovery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/MonitorUpdateRequest.java index 786f4288ca0..eda7bb5e099 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorUpdateRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -409,6 +413,52 @@ public void setType(MonitorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorUpdateRequest + */ + @JsonAnySetter + public MonitorUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -434,7 +484,8 @@ public boolean equals(Object o) { && Objects.equals(this.restrictedRoles, monitorUpdateRequest.restrictedRoles) && Objects.equals(this.state, monitorUpdateRequest.state) && Objects.equals(this.tags, monitorUpdateRequest.tags) - && Objects.equals(this.type, monitorUpdateRequest.type); + && Objects.equals(this.type, monitorUpdateRequest.type) + && Objects.equals(this.additionalProperties, monitorUpdateRequest.additionalProperties); } @Override @@ -455,7 +506,8 @@ public int hashCode() { restrictedRoles, state, tags, - type); + type, + additionalProperties); } @Override @@ -478,6 +530,9 @@ public String toString() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 0374d2110c5..bffe5682990 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -257,6 +259,52 @@ public void setValues(MonthlyUsageAttributionValues values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonthlyUsageAttributionBody + */ + @JsonAnySetter + public MonthlyUsageAttributionBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonthlyUsageAttributionBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -274,12 +322,23 @@ public boolean equals(Object o) { && Objects.equals(this.tagConfigSource, monthlyUsageAttributionBody.tagConfigSource) && Objects.equals(this.tags, monthlyUsageAttributionBody.tags) && Objects.equals(this.updatedAt, monthlyUsageAttributionBody.updatedAt) - && Objects.equals(this.values, monthlyUsageAttributionBody.values); + && Objects.equals(this.values, monthlyUsageAttributionBody.values) + && Objects.equals( + this.additionalProperties, monthlyUsageAttributionBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(month, orgName, publicId, region, tagConfigSource, tags, updatedAt, values); + return Objects.hash( + month, + orgName, + publicId, + region, + tagConfigSource, + tags, + updatedAt, + values, + additionalProperties); } @Override @@ -294,6 +353,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionMetadata.java b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionMetadata.java index 90621e99e54..4af093e6263 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -86,6 +90,52 @@ public void setPagination(MonthlyUsageAttributionPagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonthlyUsageAttributionMetadata + */ + @JsonAnySetter + public MonthlyUsageAttributionMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonthlyUsageAttributionMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,14 @@ public boolean equals(Object o) { MonthlyUsageAttributionMetadata monthlyUsageAttributionMetadata = (MonthlyUsageAttributionMetadata) o; return Objects.equals(this.aggregates, monthlyUsageAttributionMetadata.aggregates) - && Objects.equals(this.pagination, monthlyUsageAttributionMetadata.pagination); + && Objects.equals(this.pagination, monthlyUsageAttributionMetadata.pagination) + && Objects.equals( + this.additionalProperties, monthlyUsageAttributionMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregates, pagination); + return Objects.hash(aggregates, pagination, additionalProperties); } @Override @@ -112,6 +164,9 @@ public String toString() { sb.append("class MonthlyUsageAttributionMetadata {\n"); sb.append(" aggregates: ").append(toIndentedString(aggregates)).append("\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionPagination.java b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionPagination.java index bfed90e4895..09991ce1fa1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionPagination.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionPagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -54,6 +58,52 @@ public void setNextRecordId(String nextRecordId) { this.nextRecordId = JsonNullable.of(nextRecordId); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonthlyUsageAttributionPagination + */ + @JsonAnySetter + public MonthlyUsageAttributionPagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonthlyUsageAttributionPagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +115,14 @@ public boolean equals(Object o) { } MonthlyUsageAttributionPagination monthlyUsageAttributionPagination = (MonthlyUsageAttributionPagination) o; - return Objects.equals(this.nextRecordId, monthlyUsageAttributionPagination.nextRecordId); + return Objects.equals(this.nextRecordId, monthlyUsageAttributionPagination.nextRecordId) + && Objects.equals( + this.additionalProperties, monthlyUsageAttributionPagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(nextRecordId); + return Objects.hash(nextRecordId, additionalProperties); } @Override @@ -78,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonthlyUsageAttributionPagination {\n"); sb.append(" nextRecordId: ").append(toIndentedString(nextRecordId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionResponse.java b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionResponse.java index ffeef1dc127..7f38e88d1ea 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the monthly Usage Summary by tag(s). */ @@ -84,6 +88,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonthlyUsageAttributionResponse + */ + @JsonAnySetter + public MonthlyUsageAttributionResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonthlyUsageAttributionResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { MonthlyUsageAttributionResponse monthlyUsageAttributionResponse = (MonthlyUsageAttributionResponse) o; return Objects.equals(this.metadata, monthlyUsageAttributionResponse.metadata) - && Objects.equals(this.usage, monthlyUsageAttributionResponse.usage); + && Objects.equals(this.usage, monthlyUsageAttributionResponse.usage) + && Objects.equals( + this.additionalProperties, monthlyUsageAttributionResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metadata, usage); + return Objects.hash(metadata, usage, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class MonthlyUsageAttributionResponse {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionValues.java b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionValues.java index 46ad2908d46..dc0b6cbd99c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionValues.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionValues.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Fields in Usage Summary by tag(s). */ @@ -1709,6 +1713,52 @@ public void setVulnManagementHostsUsage(Double vulnManagementHostsUsage) { this.vulnManagementHostsUsage = vulnManagementHostsUsage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonthlyUsageAttributionValues + */ + @JsonAnySetter + public MonthlyUsageAttributionValues putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonthlyUsageAttributionValues object is equal to o. */ @Override public boolean equals(Object o) { @@ -1839,7 +1889,9 @@ public boolean equals(Object o) { this.vulnManagementHostsPercentage, monthlyUsageAttributionValues.vulnManagementHostsPercentage) && Objects.equals( - this.vulnManagementHostsUsage, monthlyUsageAttributionValues.vulnManagementHostsUsage); + this.vulnManagementHostsUsage, monthlyUsageAttributionValues.vulnManagementHostsUsage) + && Objects.equals( + this.additionalProperties, monthlyUsageAttributionValues.additionalProperties); } @Override @@ -1910,7 +1962,8 @@ public int hashCode() { universalServiceMonitoringPercentage, universalServiceMonitoringUsage, vulnManagementHostsPercentage, - vulnManagementHostsUsage); + vulnManagementHostsUsage, + additionalProperties); } @Override @@ -2059,6 +2112,9 @@ public String toString() { sb.append(" vulnManagementHostsUsage: ") .append(toIndentedString(vulnManagementHostsUsage)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NoteWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/NoteWidgetDefinition.java index dff06ac1f2c..18572a3988e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NoteWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/NoteWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -298,6 +302,52 @@ public void setVerticalAlign(WidgetVerticalAlign verticalAlign) { this.verticalAlign = verticalAlign; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NoteWidgetDefinition + */ + @JsonAnySetter + public NoteWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NoteWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -317,7 +367,8 @@ public boolean equals(Object o) { && Objects.equals(this.tickEdge, noteWidgetDefinition.tickEdge) && Objects.equals(this.tickPos, noteWidgetDefinition.tickPos) && Objects.equals(this.type, noteWidgetDefinition.type) - && Objects.equals(this.verticalAlign, noteWidgetDefinition.verticalAlign); + && Objects.equals(this.verticalAlign, noteWidgetDefinition.verticalAlign) + && Objects.equals(this.additionalProperties, noteWidgetDefinition.additionalProperties); } @Override @@ -332,7 +383,8 @@ public int hashCode() { tickEdge, tickPos, type, - verticalAlign); + verticalAlign, + additionalProperties); } @Override @@ -349,6 +401,9 @@ public String toString() { sb.append(" tickPos: ").append(toIndentedString(tickPos)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" verticalAlign: ").append(toIndentedString(verticalAlign)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookAbsoluteTime.java b/src/main/java/com/datadog/api/client/v1/model/NotebookAbsoluteTime.java index 5976e23b495..f390baf2250 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookAbsoluteTime.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookAbsoluteTime.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Absolute timeframe. */ @@ -104,6 +108,52 @@ public void setStart(OffsetDateTime start) { this.start = start; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookAbsoluteTime + */ + @JsonAnySetter + public NotebookAbsoluteTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookAbsoluteTime object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,12 +166,13 @@ public boolean equals(Object o) { NotebookAbsoluteTime notebookAbsoluteTime = (NotebookAbsoluteTime) o; return Objects.equals(this.end, notebookAbsoluteTime.end) && Objects.equals(this.live, notebookAbsoluteTime.live) - && Objects.equals(this.start, notebookAbsoluteTime.start); + && Objects.equals(this.start, notebookAbsoluteTime.start) + && Objects.equals(this.additionalProperties, notebookAbsoluteTime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(end, live, start); + return Objects.hash(end, live, start, additionalProperties); } @Override @@ -131,6 +182,9 @@ public String toString() { sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" live: ").append(toIndentedString(live)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookAuthor.java b/src/main/java/com/datadog/api/client/v1/model/NotebookAuthor.java index 3d02ec43bbb..496ef8d1bc4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookAuthor.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookAuthor.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -266,6 +270,52 @@ public void setVerified(Boolean verified) { this.verified = verified; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookAuthor + */ + @JsonAnySetter + public NotebookAuthor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookAuthor object is equal to o. */ @Override public boolean equals(Object o) { @@ -284,12 +334,23 @@ public boolean equals(Object o) { && Objects.equals(this.name, notebookAuthor.name) && Objects.equals(this.status, notebookAuthor.status) && Objects.equals(this.title, notebookAuthor.title) - && Objects.equals(this.verified, notebookAuthor.verified); + && Objects.equals(this.verified, notebookAuthor.verified) + && Objects.equals(this.additionalProperties, notebookAuthor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, disabled, email, handle, icon, name, status, title, verified); + return Objects.hash( + createdAt, + disabled, + email, + handle, + icon, + name, + status, + title, + verified, + additionalProperties); } @Override @@ -305,6 +366,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookCellResponse.java b/src/main/java/com/datadog/api/client/v1/model/NotebookCellResponse.java index ebecbd1d969..58bdbe6ff9e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookCellResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookCellResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The description of a notebook cell response. */ @@ -115,6 +119,52 @@ public void setType(NotebookCellResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookCellResponse + */ + @JsonAnySetter + public NotebookCellResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookCellResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,13 @@ public boolean equals(Object o) { NotebookCellResponse notebookCellResponse = (NotebookCellResponse) o; return Objects.equals(this.attributes, notebookCellResponse.attributes) && Objects.equals(this.id, notebookCellResponse.id) - && Objects.equals(this.type, notebookCellResponse.type); + && Objects.equals(this.type, notebookCellResponse.type) + && Objects.equals(this.additionalProperties, notebookCellResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -142,6 +193,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookCellUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/NotebookCellUpdateRequest.java index 856d5185701..aef9641fceb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookCellUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookCellUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The description of a notebook cell update request. */ @@ -116,6 +120,52 @@ public void setType(NotebookCellResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookCellUpdateRequest + */ + @JsonAnySetter + public NotebookCellUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookCellUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +178,14 @@ public boolean equals(Object o) { NotebookCellUpdateRequest notebookCellUpdateRequest = (NotebookCellUpdateRequest) o; return Objects.equals(this.attributes, notebookCellUpdateRequest.attributes) && Objects.equals(this.id, notebookCellUpdateRequest.id) - && Objects.equals(this.type, notebookCellUpdateRequest.type); + && Objects.equals(this.type, notebookCellUpdateRequest.type) + && Objects.equals( + this.additionalProperties, notebookCellUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -143,6 +195,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookCreateData.java b/src/main/java/com/datadog/api/client/v1/model/NotebookCreateData.java index 54571fb103e..a2f2f39b5fe 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookCreateData.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data for a notebook create request. */ @@ -86,6 +90,52 @@ public void setType(NotebookResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookCreateData + */ + @JsonAnySetter + public NotebookCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } NotebookCreateData notebookCreateData = (NotebookCreateData) o; return Objects.equals(this.attributes, notebookCreateData.attributes) - && Objects.equals(this.type, notebookCreateData.type); + && Objects.equals(this.type, notebookCreateData.type) + && Objects.equals(this.additionalProperties, notebookCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class NotebookCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookCreateDataAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookCreateDataAttributes.java index f57c13615cb..1a38c0880d1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookCreateDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookCreateDataAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The data attributes of a notebook. */ @@ -173,6 +177,52 @@ public void setTime(NotebookGlobalTime time) { this.time = time; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookCreateDataAttributes + */ + @JsonAnySetter + public NotebookCreateDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookCreateDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -187,12 +237,14 @@ public boolean equals(Object o) { && Objects.equals(this.metadata, notebookCreateDataAttributes.metadata) && Objects.equals(this.name, notebookCreateDataAttributes.name) && Objects.equals(this.status, notebookCreateDataAttributes.status) - && Objects.equals(this.time, notebookCreateDataAttributes.time); + && Objects.equals(this.time, notebookCreateDataAttributes.time) + && Objects.equals( + this.additionalProperties, notebookCreateDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cells, metadata, name, status, time); + return Objects.hash(cells, metadata, name, status, time, additionalProperties); } @Override @@ -204,6 +256,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookCreateRequest.java b/src/main/java/com/datadog/api/client/v1/model/NotebookCreateRequest.java index 40ba48e7446..1a73d4de0b6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The description of a notebook create request. */ @@ -52,6 +56,52 @@ public void setData(NotebookCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookCreateRequest + */ + @JsonAnySetter + public NotebookCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } NotebookCreateRequest notebookCreateRequest = (NotebookCreateRequest) o; - return Objects.equals(this.data, notebookCreateRequest.data); + return Objects.equals(this.data, notebookCreateRequest.data) + && Objects.equals(this.additionalProperties, notebookCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NotebookCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookDistributionCellAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookDistributionCellAttributes.java index a82280bb212..a38cebb672d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookDistributionCellAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookDistributionCellAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -148,6 +152,52 @@ public void setTime(NotebookCellTime time) { this.time = JsonNullable.of(time); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookDistributionCellAttributes + */ + @JsonAnySetter + public NotebookDistributionCellAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookDistributionCellAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -162,12 +212,14 @@ public boolean equals(Object o) { return Objects.equals(this.definition, notebookDistributionCellAttributes.definition) && Objects.equals(this.graphSize, notebookDistributionCellAttributes.graphSize) && Objects.equals(this.splitBy, notebookDistributionCellAttributes.splitBy) - && Objects.equals(this.time, notebookDistributionCellAttributes.time); + && Objects.equals(this.time, notebookDistributionCellAttributes.time) + && Objects.equals( + this.additionalProperties, notebookDistributionCellAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition, graphSize, splitBy, time); + return Objects.hash(definition, graphSize, splitBy, time, additionalProperties); } @Override @@ -178,6 +230,9 @@ public String toString() { sb.append(" graphSize: ").append(toIndentedString(graphSize)).append("\n"); sb.append(" splitBy: ").append(toIndentedString(splitBy)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookHeatMapCellAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookHeatMapCellAttributes.java index a00d2427acc..3e711be65ca 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookHeatMapCellAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookHeatMapCellAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -147,6 +151,52 @@ public void setTime(NotebookCellTime time) { this.time = JsonNullable.of(time); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookHeatMapCellAttributes + */ + @JsonAnySetter + public NotebookHeatMapCellAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookHeatMapCellAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -160,12 +210,14 @@ public boolean equals(Object o) { return Objects.equals(this.definition, notebookHeatMapCellAttributes.definition) && Objects.equals(this.graphSize, notebookHeatMapCellAttributes.graphSize) && Objects.equals(this.splitBy, notebookHeatMapCellAttributes.splitBy) - && Objects.equals(this.time, notebookHeatMapCellAttributes.time); + && Objects.equals(this.time, notebookHeatMapCellAttributes.time) + && Objects.equals( + this.additionalProperties, notebookHeatMapCellAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition, graphSize, splitBy, time); + return Objects.hash(definition, graphSize, splitBy, time, additionalProperties); } @Override @@ -176,6 +228,9 @@ public String toString() { sb.append(" graphSize: ").append(toIndentedString(graphSize)).append("\n"); sb.append(" splitBy: ").append(toIndentedString(splitBy)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookLogStreamCellAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookLogStreamCellAttributes.java index e1d8bb34e4c..ceed6a33fb6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookLogStreamCellAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookLogStreamCellAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -121,6 +125,52 @@ public void setTime(NotebookCellTime time) { this.time = JsonNullable.of(time); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookLogStreamCellAttributes + */ + @JsonAnySetter + public NotebookLogStreamCellAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookLogStreamCellAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -134,12 +184,14 @@ public boolean equals(Object o) { (NotebookLogStreamCellAttributes) o; return Objects.equals(this.definition, notebookLogStreamCellAttributes.definition) && Objects.equals(this.graphSize, notebookLogStreamCellAttributes.graphSize) - && Objects.equals(this.time, notebookLogStreamCellAttributes.time); + && Objects.equals(this.time, notebookLogStreamCellAttributes.time) + && Objects.equals( + this.additionalProperties, notebookLogStreamCellAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition, graphSize, time); + return Objects.hash(definition, graphSize, time, additionalProperties); } @Override @@ -149,6 +201,9 @@ public String toString() { sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); sb.append(" graphSize: ").append(toIndentedString(graphSize)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellAttributes.java index 057e90be0e2..e91e3af9727 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The attributes of a notebook markdown cell. */ @@ -55,6 +59,52 @@ public void setDefinition(NotebookMarkdownCellDefinition definition) { this.definition = definition; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookMarkdownCellAttributes + */ + @JsonAnySetter + public NotebookMarkdownCellAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookMarkdownCellAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { } NotebookMarkdownCellAttributes notebookMarkdownCellAttributes = (NotebookMarkdownCellAttributes) o; - return Objects.equals(this.definition, notebookMarkdownCellAttributes.definition); + return Objects.equals(this.definition, notebookMarkdownCellAttributes.definition) + && Objects.equals( + this.additionalProperties, notebookMarkdownCellAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition); + return Objects.hash(definition, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NotebookMarkdownCellAttributes {\n"); sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellDefinition.java b/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellDefinition.java index a2d6f173164..7a09bc8e3c7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookMarkdownCellDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -88,6 +92,52 @@ public void setType(NotebookMarkdownCellDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookMarkdownCellDefinition + */ + @JsonAnySetter + public NotebookMarkdownCellDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookMarkdownCellDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,14 @@ public boolean equals(Object o) { NotebookMarkdownCellDefinition notebookMarkdownCellDefinition = (NotebookMarkdownCellDefinition) o; return Objects.equals(this.text, notebookMarkdownCellDefinition.text) - && Objects.equals(this.type, notebookMarkdownCellDefinition.type); + && Objects.equals(this.type, notebookMarkdownCellDefinition.type) + && Objects.equals( + this.additionalProperties, notebookMarkdownCellDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(text, type); + return Objects.hash(text, type, additionalProperties); } @Override @@ -114,6 +166,9 @@ public String toString() { sb.append("class NotebookMarkdownCellDefinition {\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookMetadata.java b/src/main/java/com/datadog/api/client/v1/model/NotebookMetadata.java index c9c1a2b03fd..0f0817b025f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -108,6 +112,52 @@ public void setType(NotebookMetadataType type) { this.type = JsonNullable.of(type); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookMetadata + */ + @JsonAnySetter + public NotebookMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { NotebookMetadata notebookMetadata = (NotebookMetadata) o; return Objects.equals(this.isTemplate, notebookMetadata.isTemplate) && Objects.equals(this.takeSnapshots, notebookMetadata.takeSnapshots) - && Objects.equals(this.type, notebookMetadata.type); + && Objects.equals(this.type, notebookMetadata.type) + && Objects.equals(this.additionalProperties, notebookMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isTemplate, takeSnapshots, type); + return Objects.hash(isTemplate, takeSnapshots, type, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" isTemplate: ").append(toIndentedString(isTemplate)).append("\n"); sb.append(" takeSnapshots: ").append(toIndentedString(takeSnapshots)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookRelativeTime.java b/src/main/java/com/datadog/api/client/v1/model/NotebookRelativeTime.java index 76a9522b7a7..7d736a9adcd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookRelativeTime.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookRelativeTime.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relative timeframe. */ @@ -55,6 +59,52 @@ public void setLiveSpan(WidgetLiveSpan liveSpan) { this.liveSpan = liveSpan; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookRelativeTime + */ + @JsonAnySetter + public NotebookRelativeTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookRelativeTime object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +115,13 @@ public boolean equals(Object o) { return false; } NotebookRelativeTime notebookRelativeTime = (NotebookRelativeTime) o; - return Objects.equals(this.liveSpan, notebookRelativeTime.liveSpan); + return Objects.equals(this.liveSpan, notebookRelativeTime.liveSpan) + && Objects.equals(this.additionalProperties, notebookRelativeTime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(liveSpan); + return Objects.hash(liveSpan, additionalProperties); } @Override @@ -78,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NotebookRelativeTime {\n"); sb.append(" liveSpan: ").append(toIndentedString(liveSpan)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookResponse.java b/src/main/java/com/datadog/api/client/v1/model/NotebookResponse.java index 67531b0d917..1c7203022b7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The description of a notebook response. */ @@ -43,6 +47,52 @@ public void setData(NotebookResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookResponse + */ + @JsonAnySetter + public NotebookResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } NotebookResponse notebookResponse = (NotebookResponse) o; - return Objects.equals(this.data, notebookResponse.data); + return Objects.equals(this.data, notebookResponse.data) + && Objects.equals(this.additionalProperties, notebookResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NotebookResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookResponseData.java b/src/main/java/com/datadog/api/client/v1/model/NotebookResponseData.java index 69d5b637e39..2fb69f0a5b2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data for a notebook. */ @@ -103,6 +107,52 @@ public void setType(NotebookResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookResponseData + */ + @JsonAnySetter + public NotebookResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,13 @@ public boolean equals(Object o) { NotebookResponseData notebookResponseData = (NotebookResponseData) o; return Objects.equals(this.attributes, notebookResponseData.attributes) && Objects.equals(this.id, notebookResponseData.id) - && Objects.equals(this.type, notebookResponseData.type); + && Objects.equals(this.type, notebookResponseData.type) + && Objects.equals(this.additionalProperties, notebookResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -130,6 +181,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookResponseDataAttributes.java index d826eeb0ceb..821cf4a453a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookResponseDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookResponseDataAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -13,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The attributes of a notebook. */ @@ -231,6 +235,52 @@ public void setTime(NotebookGlobalTime time) { this.time = time; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookResponseDataAttributes + */ + @JsonAnySetter + public NotebookResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookResponseDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -249,12 +299,15 @@ public boolean equals(Object o) { && Objects.equals(this.modified, notebookResponseDataAttributes.modified) && Objects.equals(this.name, notebookResponseDataAttributes.name) && Objects.equals(this.status, notebookResponseDataAttributes.status) - && Objects.equals(this.time, notebookResponseDataAttributes.time); + && Objects.equals(this.time, notebookResponseDataAttributes.time) + && Objects.equals( + this.additionalProperties, notebookResponseDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(author, cells, created, metadata, modified, name, status, time); + return Objects.hash( + author, cells, created, metadata, modified, name, status, time, additionalProperties); } @Override @@ -269,6 +322,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookSplitBy.java b/src/main/java/com/datadog/api/client/v1/model/NotebookSplitBy.java index 6b9b76d81e0..bd8c9fe78ff 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookSplitBy.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookSplitBy.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing how to split the graph to display multiple visualizations per request. */ @@ -87,6 +91,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookSplitBy + */ + @JsonAnySetter + public NotebookSplitBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookSplitBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } NotebookSplitBy notebookSplitBy = (NotebookSplitBy) o; return Objects.equals(this.keys, notebookSplitBy.keys) - && Objects.equals(this.tags, notebookSplitBy.tags); + && Objects.equals(this.tags, notebookSplitBy.tags) + && Objects.equals(this.additionalProperties, notebookSplitBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(keys, tags); + return Objects.hash(keys, tags, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class NotebookSplitBy {\n"); sb.append(" keys: ").append(toIndentedString(keys)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookTimeseriesCellAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookTimeseriesCellAttributes.java index 009d79d59d0..1a749cb3597 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookTimeseriesCellAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookTimeseriesCellAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -147,6 +151,52 @@ public void setTime(NotebookCellTime time) { this.time = JsonNullable.of(time); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookTimeseriesCellAttributes + */ + @JsonAnySetter + public NotebookTimeseriesCellAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookTimeseriesCellAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -161,12 +211,14 @@ public boolean equals(Object o) { return Objects.equals(this.definition, notebookTimeseriesCellAttributes.definition) && Objects.equals(this.graphSize, notebookTimeseriesCellAttributes.graphSize) && Objects.equals(this.splitBy, notebookTimeseriesCellAttributes.splitBy) - && Objects.equals(this.time, notebookTimeseriesCellAttributes.time); + && Objects.equals(this.time, notebookTimeseriesCellAttributes.time) + && Objects.equals( + this.additionalProperties, notebookTimeseriesCellAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition, graphSize, splitBy, time); + return Objects.hash(definition, graphSize, splitBy, time, additionalProperties); } @Override @@ -177,6 +229,9 @@ public String toString() { sb.append(" graphSize: ").append(toIndentedString(graphSize)).append("\n"); sb.append(" splitBy: ").append(toIndentedString(splitBy)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookToplistCellAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookToplistCellAttributes.java index 9dd575d62f1..fd8446e2a9e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookToplistCellAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookToplistCellAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -148,6 +152,52 @@ public void setTime(NotebookCellTime time) { this.time = JsonNullable.of(time); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookToplistCellAttributes + */ + @JsonAnySetter + public NotebookToplistCellAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookToplistCellAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -161,12 +211,14 @@ public boolean equals(Object o) { return Objects.equals(this.definition, notebookToplistCellAttributes.definition) && Objects.equals(this.graphSize, notebookToplistCellAttributes.graphSize) && Objects.equals(this.splitBy, notebookToplistCellAttributes.splitBy) - && Objects.equals(this.time, notebookToplistCellAttributes.time); + && Objects.equals(this.time, notebookToplistCellAttributes.time) + && Objects.equals( + this.additionalProperties, notebookToplistCellAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition, graphSize, splitBy, time); + return Objects.hash(definition, graphSize, splitBy, time, additionalProperties); } @Override @@ -177,6 +229,9 @@ public String toString() { sb.append(" graphSize: ").append(toIndentedString(graphSize)).append("\n"); sb.append(" splitBy: ").append(toIndentedString(splitBy)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateData.java b/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateData.java index e6bbaa21d37..2f5a7e968dc 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateData.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data for a notebook update request. */ @@ -86,6 +90,52 @@ public void setType(NotebookResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookUpdateData + */ + @JsonAnySetter + public NotebookUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } NotebookUpdateData notebookUpdateData = (NotebookUpdateData) o; return Objects.equals(this.attributes, notebookUpdateData.attributes) - && Objects.equals(this.type, notebookUpdateData.type); + && Objects.equals(this.type, notebookUpdateData.type) + && Objects.equals(this.additionalProperties, notebookUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class NotebookUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateDataAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateDataAttributes.java index f118fc1936c..a9d38460d96 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateDataAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The data attributes of a notebook. */ @@ -172,6 +176,52 @@ public void setTime(NotebookGlobalTime time) { this.time = time; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookUpdateDataAttributes + */ + @JsonAnySetter + public NotebookUpdateDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookUpdateDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -186,12 +236,14 @@ public boolean equals(Object o) { && Objects.equals(this.metadata, notebookUpdateDataAttributes.metadata) && Objects.equals(this.name, notebookUpdateDataAttributes.name) && Objects.equals(this.status, notebookUpdateDataAttributes.status) - && Objects.equals(this.time, notebookUpdateDataAttributes.time); + && Objects.equals(this.time, notebookUpdateDataAttributes.time) + && Objects.equals( + this.additionalProperties, notebookUpdateDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cells, metadata, name, status, time); + return Objects.hash(cells, metadata, name, status, time, additionalProperties); } @Override @@ -203,6 +255,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateRequest.java index b50d5b0586c..fcc1f03755f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebookUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The description of a notebook update request. */ @@ -52,6 +56,52 @@ public void setData(NotebookUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebookUpdateRequest + */ + @JsonAnySetter + public NotebookUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebookUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } NotebookUpdateRequest notebookUpdateRequest = (NotebookUpdateRequest) o; - return Objects.equals(this.data, notebookUpdateRequest.data); + return Objects.equals(this.data, notebookUpdateRequest.data) + && Objects.equals(this.additionalProperties, notebookUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NotebookUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponse.java b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponse.java index 75995d87430..a9602cfbb05 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Notebooks get all response. */ @@ -81,6 +85,52 @@ public void setMeta(NotebooksResponseMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebooksResponse + */ + @JsonAnySetter + public NotebooksResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebooksResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,13 @@ public boolean equals(Object o) { } NotebooksResponse notebooksResponse = (NotebooksResponse) o; return Objects.equals(this.data, notebooksResponse.data) - && Objects.equals(this.meta, notebooksResponse.meta); + && Objects.equals(this.meta, notebooksResponse.meta) + && Objects.equals(this.additionalProperties, notebooksResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -106,6 +157,9 @@ public String toString() { sb.append("class NotebooksResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseData.java b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseData.java index 4526f104f6d..c9a7945a14c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data for a notebook in get all response. */ @@ -103,6 +107,52 @@ public void setType(NotebookResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebooksResponseData + */ + @JsonAnySetter + public NotebooksResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebooksResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,13 @@ public boolean equals(Object o) { NotebooksResponseData notebooksResponseData = (NotebooksResponseData) o; return Objects.equals(this.attributes, notebooksResponseData.attributes) && Objects.equals(this.id, notebooksResponseData.id) - && Objects.equals(this.type, notebooksResponseData.type); + && Objects.equals(this.type, notebooksResponseData.type) + && Objects.equals(this.additionalProperties, notebooksResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -130,6 +181,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseDataAttributes.java index d42436ad6f9..317084d9480 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseDataAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -13,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The attributes of a notebook in get all response. */ @@ -231,6 +235,52 @@ public void setTime(NotebookGlobalTime time) { this.time = time; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebooksResponseDataAttributes + */ + @JsonAnySetter + public NotebooksResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebooksResponseDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -249,12 +299,15 @@ public boolean equals(Object o) { && Objects.equals(this.modified, notebooksResponseDataAttributes.modified) && Objects.equals(this.name, notebooksResponseDataAttributes.name) && Objects.equals(this.status, notebooksResponseDataAttributes.status) - && Objects.equals(this.time, notebooksResponseDataAttributes.time); + && Objects.equals(this.time, notebooksResponseDataAttributes.time) + && Objects.equals( + this.additionalProperties, notebooksResponseDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(author, cells, created, metadata, modified, name, status, time); + return Objects.hash( + author, cells, created, metadata, modified, name, status, time, additionalProperties); } @Override @@ -269,6 +322,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseMeta.java b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseMeta.java index 3d68bb67f93..248fb71dd88 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseMeta.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponseMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Searches metadata returned by the API. */ @@ -43,6 +47,52 @@ public void setPage(NotebooksResponsePage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebooksResponseMeta + */ + @JsonAnySetter + public NotebooksResponseMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebooksResponseMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } NotebooksResponseMeta notebooksResponseMeta = (NotebooksResponseMeta) o; - return Objects.equals(this.page, notebooksResponseMeta.page); + return Objects.equals(this.page, notebooksResponseMeta.page) + && Objects.equals(this.additionalProperties, notebooksResponseMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NotebooksResponseMeta {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponsePage.java b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponsePage.java index 50a9f4a72a4..8c1c61929ab 100644 --- a/src/main/java/com/datadog/api/client/v1/model/NotebooksResponsePage.java +++ b/src/main/java/com/datadog/api/client/v1/model/NotebooksResponsePage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination metadata returned by the API. */ @@ -70,6 +74,52 @@ public void setTotalFilteredCount(Long totalFilteredCount) { this.totalFilteredCount = totalFilteredCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotebooksResponsePage + */ + @JsonAnySetter + public NotebooksResponsePage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NotebooksResponsePage object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } NotebooksResponsePage notebooksResponsePage = (NotebooksResponsePage) o; return Objects.equals(this.totalCount, notebooksResponsePage.totalCount) - && Objects.equals(this.totalFilteredCount, notebooksResponsePage.totalFilteredCount); + && Objects.equals(this.totalFilteredCount, notebooksResponsePage.totalFilteredCount) + && Objects.equals(this.additionalProperties, notebooksResponsePage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount, totalFilteredCount); + return Objects.hash(totalCount, totalFilteredCount, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class NotebooksResponsePage {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" totalFilteredCount: ").append(toIndentedString(totalFilteredCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrgDowngradedResponse.java b/src/main/java/com/datadog/api/client/v1/model/OrgDowngradedResponse.java index 341fa540808..dfba5780ed6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrgDowngradedResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrgDowngradedResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Status of downgrade */ @@ -42,6 +46,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrgDowngradedResponse + */ + @JsonAnySetter + public OrgDowngradedResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrgDowngradedResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } OrgDowngradedResponse orgDowngradedResponse = (OrgDowngradedResponse) o; - return Objects.equals(this.message, orgDowngradedResponse.message); + return Objects.equals(this.message, orgDowngradedResponse.message) + && Objects.equals(this.additionalProperties, orgDowngradedResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(message); + return Objects.hash(message, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrgDowngradedResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Organization.java b/src/main/java/com/datadog/api/client/v1/model/Organization.java index 44f8a91b920..e1a4c93fdee 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Organization.java +++ b/src/main/java/com/datadog/api/client/v1/model/Organization.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create, edit, and manage organizations. */ @@ -219,6 +223,52 @@ public void setTrial(Boolean trial) { this.trial = trial; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Organization + */ + @JsonAnySetter + public Organization putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Organization object is equal to o. */ @Override public boolean equals(Object o) { @@ -236,13 +286,22 @@ public boolean equals(Object o) { && Objects.equals(this.publicId, organization.publicId) && Objects.equals(this.settings, organization.settings) && Objects.equals(this.subscription, organization.subscription) - && Objects.equals(this.trial, organization.trial); + && Objects.equals(this.trial, organization.trial) + && Objects.equals(this.additionalProperties, organization.additionalProperties); } @Override public int hashCode() { return Objects.hash( - billing, created, description, name, publicId, settings, subscription, trial); + billing, + created, + description, + name, + publicId, + settings, + subscription, + trial, + additionalProperties); } @Override @@ -257,6 +316,9 @@ public String toString() { sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); sb.append(" subscription: ").append(toIndentedString(subscription)).append("\n"); sb.append(" trial: ").append(toIndentedString(trial)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationBilling.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationBilling.java index 22f95f6e83d..64b0debaf99 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationBilling.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationBilling.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -47,6 +51,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationBilling + */ + @JsonAnySetter + public OrganizationBilling putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationBilling object is equal to o. */ @Override public boolean equals(Object o) { @@ -57,12 +107,13 @@ public boolean equals(Object o) { return false; } OrganizationBilling organizationBilling = (OrganizationBilling) o; - return Objects.equals(this.type, organizationBilling.type); + return Objects.equals(this.type, organizationBilling.type) + && Objects.equals(this.additionalProperties, organizationBilling.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type); + return Objects.hash(type, additionalProperties); } @Override @@ -70,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationBilling {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateBody.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateBody.java index 6eb03d6172c..09faceddc0c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateBody.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing an organization to create. */ @@ -110,6 +114,52 @@ public void setSubscription(OrganizationSubscription subscription) { this.subscription = subscription; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationCreateBody + */ + @JsonAnySetter + public OrganizationCreateBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationCreateBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { OrganizationCreateBody organizationCreateBody = (OrganizationCreateBody) o; return Objects.equals(this.billing, organizationCreateBody.billing) && Objects.equals(this.name, organizationCreateBody.name) - && Objects.equals(this.subscription, organizationCreateBody.subscription); + && Objects.equals(this.subscription, organizationCreateBody.subscription) + && Objects.equals(this.additionalProperties, organizationCreateBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(billing, name, subscription); + return Objects.hash(billing, name, subscription, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" billing: ").append(toIndentedString(billing)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" subscription: ").append(toIndentedString(subscription)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateResponse.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateResponse.java index 82ecf786220..7ff54b79206 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationCreateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object for an organization creation. */ @@ -123,6 +127,52 @@ public void setUser(User user) { this.user = user; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationCreateResponse + */ + @JsonAnySetter + public OrganizationCreateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationCreateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -136,12 +186,14 @@ public boolean equals(Object o) { return Objects.equals(this.apiKey, organizationCreateResponse.apiKey) && Objects.equals(this.applicationKey, organizationCreateResponse.applicationKey) && Objects.equals(this.org, organizationCreateResponse.org) - && Objects.equals(this.user, organizationCreateResponse.user); + && Objects.equals(this.user, organizationCreateResponse.user) + && Objects.equals( + this.additionalProperties, organizationCreateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, applicationKey, org, user); + return Objects.hash(apiKey, applicationKey, org, user, additionalProperties); } @Override @@ -152,6 +204,9 @@ public String toString() { sb.append(" applicationKey: ").append(toIndentedString(applicationKey)).append("\n"); sb.append(" org: ").append(toIndentedString(org)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationListResponse.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationListResponse.java index 19292f361ce..5e24cb45e36 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with the list of organizations. */ @@ -56,6 +60,52 @@ public void setOrgs(List orgs) { this.orgs = orgs; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationListResponse + */ + @JsonAnySetter + public OrganizationListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } OrganizationListResponse organizationListResponse = (OrganizationListResponse) o; - return Objects.equals(this.orgs, organizationListResponse.orgs); + return Objects.equals(this.orgs, organizationListResponse.orgs) + && Objects.equals(this.additionalProperties, organizationListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(orgs); + return Objects.hash(orgs, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationListResponse {\n"); sb.append(" orgs: ").append(toIndentedString(orgs)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationResponse.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationResponse.java index be2d48ba95d..91fde0498e6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response with an organization. */ @@ -43,6 +47,52 @@ public void setOrg(Organization org) { this.org = org; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationResponse + */ + @JsonAnySetter + public OrganizationResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } OrganizationResponse organizationResponse = (OrganizationResponse) o; - return Objects.equals(this.org, organizationResponse.org); + return Objects.equals(this.org, organizationResponse.org) + && Objects.equals(this.additionalProperties, organizationResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(org); + return Objects.hash(org, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationResponse {\n"); sb.append(" org: ").append(toIndentedString(org)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettings.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettings.java index 6b23acae5a4..b370818fb40 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettings.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettings.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A JSON array of settings. */ @@ -287,6 +291,52 @@ public void setSamlStrictMode(OrganizationSettingsSamlStrictMode samlStrictMode) this.samlStrictMode = samlStrictMode; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationSettings + */ + @JsonAnySetter + public OrganizationSettings putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationSettings object is equal to o. */ @Override public boolean equals(Object o) { @@ -309,7 +359,8 @@ public boolean equals(Object o) { && Objects.equals( this.samlIdpMetadataUploaded, organizationSettings.samlIdpMetadataUploaded) && Objects.equals(this.samlLoginUrl, organizationSettings.samlLoginUrl) - && Objects.equals(this.samlStrictMode, organizationSettings.samlStrictMode); + && Objects.equals(this.samlStrictMode, organizationSettings.samlStrictMode) + && Objects.equals(this.additionalProperties, organizationSettings.additionalProperties); } @Override @@ -324,7 +375,8 @@ public int hashCode() { samlIdpInitiatedLogin, samlIdpMetadataUploaded, samlLoginUrl, - samlStrictMode); + samlStrictMode, + additionalProperties); } @Override @@ -349,6 +401,9 @@ public String toString() { .append("\n"); sb.append(" samlLoginUrl: ").append(toIndentedString(samlLoginUrl)).append("\n"); sb.append(" samlStrictMode: ").append(toIndentedString(samlStrictMode)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSaml.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSaml.java index 53d94be0d6c..cd358189ca2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSaml.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSaml.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -45,6 +49,52 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationSettingsSaml + */ + @JsonAnySetter + public OrganizationSettingsSaml putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationSettingsSaml object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,13 @@ public boolean equals(Object o) { return false; } OrganizationSettingsSaml organizationSettingsSaml = (OrganizationSettingsSaml) o; - return Objects.equals(this.enabled, organizationSettingsSaml.enabled); + return Objects.equals(this.enabled, organizationSettingsSaml.enabled) + && Objects.equals(this.additionalProperties, organizationSettingsSaml.additionalProperties); } @Override public int hashCode() { - return Objects.hash(enabled); + return Objects.hash(enabled, additionalProperties); } @Override @@ -68,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationSettingsSaml {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlAutocreateUsersDomains.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlAutocreateUsersDomains.java index 0386f414bba..ae0098c6e7e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlAutocreateUsersDomains.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlAutocreateUsersDomains.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -82,6 +86,53 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationSettingsSamlAutocreateUsersDomains + */ + @JsonAnySetter + public OrganizationSettingsSamlAutocreateUsersDomains putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationSettingsSamlAutocreateUsersDomains object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +145,15 @@ public boolean equals(Object o) { OrganizationSettingsSamlAutocreateUsersDomains organizationSettingsSamlAutocreateUsersDomains = (OrganizationSettingsSamlAutocreateUsersDomains) o; return Objects.equals(this.domains, organizationSettingsSamlAutocreateUsersDomains.domains) - && Objects.equals(this.enabled, organizationSettingsSamlAutocreateUsersDomains.enabled); + && Objects.equals(this.enabled, organizationSettingsSamlAutocreateUsersDomains.enabled) + && Objects.equals( + this.additionalProperties, + organizationSettingsSamlAutocreateUsersDomains.additionalProperties); } @Override public int hashCode() { - return Objects.hash(domains, enabled); + return Objects.hash(domains, enabled, additionalProperties); } @Override @@ -108,6 +162,9 @@ public String toString() { sb.append("class OrganizationSettingsSamlAutocreateUsersDomains {\n"); sb.append(" domains: ").append(toIndentedString(domains)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlIdpInitiatedLogin.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlIdpInitiatedLogin.java index 22f958d26d1..51dbbc37b57 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlIdpInitiatedLogin.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlIdpInitiatedLogin.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Has one property enabled (boolean). */ @@ -44,6 +48,52 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationSettingsSamlIdpInitiatedLogin + */ + @JsonAnySetter + public OrganizationSettingsSamlIdpInitiatedLogin putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationSettingsSamlIdpInitiatedLogin object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,15 @@ public boolean equals(Object o) { } OrganizationSettingsSamlIdpInitiatedLogin organizationSettingsSamlIdpInitiatedLogin = (OrganizationSettingsSamlIdpInitiatedLogin) o; - return Objects.equals(this.enabled, organizationSettingsSamlIdpInitiatedLogin.enabled); + return Objects.equals(this.enabled, organizationSettingsSamlIdpInitiatedLogin.enabled) + && Objects.equals( + this.additionalProperties, + organizationSettingsSamlIdpInitiatedLogin.additionalProperties); } @Override public int hashCode() { - return Objects.hash(enabled); + return Objects.hash(enabled, additionalProperties); } @Override @@ -68,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationSettingsSamlIdpInitiatedLogin {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlStrictMode.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlStrictMode.java index 815f94c15d9..281ba8d04aa 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlStrictMode.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationSettingsSamlStrictMode.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Has one property enabled (boolean). */ @@ -44,6 +48,52 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationSettingsSamlStrictMode + */ + @JsonAnySetter + public OrganizationSettingsSamlStrictMode putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationSettingsSamlStrictMode object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,14 @@ public boolean equals(Object o) { } OrganizationSettingsSamlStrictMode organizationSettingsSamlStrictMode = (OrganizationSettingsSamlStrictMode) o; - return Objects.equals(this.enabled, organizationSettingsSamlStrictMode.enabled); + return Objects.equals(this.enabled, organizationSettingsSamlStrictMode.enabled) + && Objects.equals( + this.additionalProperties, organizationSettingsSamlStrictMode.additionalProperties); } @Override public int hashCode() { - return Objects.hash(enabled); + return Objects.hash(enabled, additionalProperties); } @Override @@ -68,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationSettingsSamlStrictMode {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/OrganizationSubscription.java b/src/main/java/com/datadog/api/client/v1/model/OrganizationSubscription.java index 32217e0fca9..deea904e4ac 100644 --- a/src/main/java/com/datadog/api/client/v1/model/OrganizationSubscription.java +++ b/src/main/java/com/datadog/api/client/v1/model/OrganizationSubscription.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -48,6 +52,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationSubscription + */ + @JsonAnySetter + public OrganizationSubscription putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationSubscription object is equal to o. */ @Override public boolean equals(Object o) { @@ -58,12 +108,13 @@ public boolean equals(Object o) { return false; } OrganizationSubscription organizationSubscription = (OrganizationSubscription) o; - return Objects.equals(this.type, organizationSubscription.type); + return Objects.equals(this.type, organizationSubscription.type) + && Objects.equals(this.additionalProperties, organizationSubscription.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type); + return Objects.hash(type, additionalProperties); } @Override @@ -71,6 +122,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrganizationSubscription {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/PagerDutyService.java b/src/main/java/com/datadog/api/client/v1/model/PagerDutyService.java index 58998c80bd7..a2c7f73455f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/PagerDutyService.java +++ b/src/main/java/com/datadog/api/client/v1/model/PagerDutyService.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The PagerDuty service that is available for integration with Datadog. */ @@ -78,6 +82,52 @@ public void setServiceName(String serviceName) { this.serviceName = serviceName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PagerDutyService + */ + @JsonAnySetter + public PagerDutyService putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PagerDutyService object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { } PagerDutyService pagerDutyService = (PagerDutyService) o; return Objects.equals(this.serviceKey, pagerDutyService.serviceKey) - && Objects.equals(this.serviceName, pagerDutyService.serviceName); + && Objects.equals(this.serviceName, pagerDutyService.serviceName) + && Objects.equals(this.additionalProperties, pagerDutyService.additionalProperties); } @Override public int hashCode() { - return Objects.hash(serviceKey, serviceName); + return Objects.hash(serviceKey, serviceName, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append("class PagerDutyService {\n"); sb.append(" serviceKey: ").append(toIndentedString(serviceKey)).append("\n"); sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceKey.java b/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceKey.java index 4395ffda326..b590b8f8c82 100644 --- a/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceKey.java +++ b/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceKey.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** PagerDuty service object key. */ @@ -50,6 +54,52 @@ public void setServiceKey(String serviceKey) { this.serviceKey = serviceKey; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PagerDutyServiceKey + */ + @JsonAnySetter + public PagerDutyServiceKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PagerDutyServiceKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } PagerDutyServiceKey pagerDutyServiceKey = (PagerDutyServiceKey) o; - return Objects.equals(this.serviceKey, pagerDutyServiceKey.serviceKey); + return Objects.equals(this.serviceKey, pagerDutyServiceKey.serviceKey) + && Objects.equals(this.additionalProperties, pagerDutyServiceKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(serviceKey); + return Objects.hash(serviceKey, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PagerDutyServiceKey {\n"); sb.append(" serviceKey: ").append(toIndentedString(serviceKey)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceName.java b/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceName.java index 861574c102b..4d58758d14c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceName.java +++ b/src/main/java/com/datadog/api/client/v1/model/PagerDutyServiceName.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** PagerDuty service object name. */ @@ -50,6 +54,52 @@ public void setServiceName(String serviceName) { this.serviceName = serviceName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PagerDutyServiceName + */ + @JsonAnySetter + public PagerDutyServiceName putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PagerDutyServiceName object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } PagerDutyServiceName pagerDutyServiceName = (PagerDutyServiceName) o; - return Objects.equals(this.serviceName, pagerDutyServiceName.serviceName); + return Objects.equals(this.serviceName, pagerDutyServiceName.serviceName) + && Objects.equals(this.additionalProperties, pagerDutyServiceName.additionalProperties); } @Override public int hashCode() { - return Objects.hash(serviceName); + return Objects.hash(serviceName, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PagerDutyServiceName {\n"); sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Pagination.java b/src/main/java/com/datadog/api/client/v1/model/Pagination.java index ada874f76d1..bf07daeb5d6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Pagination.java +++ b/src/main/java/com/datadog/api/client/v1/model/Pagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination object. */ @@ -69,6 +73,52 @@ public void setTotalFilteredCount(Long totalFilteredCount) { this.totalFilteredCount = totalFilteredCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Pagination + */ + @JsonAnySetter + public Pagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Pagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,13 @@ public boolean equals(Object o) { } Pagination pagination = (Pagination) o; return Objects.equals(this.totalCount, pagination.totalCount) - && Objects.equals(this.totalFilteredCount, pagination.totalFilteredCount); + && Objects.equals(this.totalFilteredCount, pagination.totalFilteredCount) + && Objects.equals(this.additionalProperties, pagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount, totalFilteredCount); + return Objects.hash(totalCount, totalFilteredCount, additionalProperties); } @Override @@ -94,6 +145,9 @@ public String toString() { sb.append("class Pagination {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" totalFilteredCount: ").append(toIndentedString(totalFilteredCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ProcessQueryDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ProcessQueryDefinition.java index 993c266a534..82a7504b798 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ProcessQueryDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ProcessQueryDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The process query to use in the widget. */ @@ -137,6 +141,52 @@ public void setSearchBy(String searchBy) { this.searchBy = searchBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ProcessQueryDefinition + */ + @JsonAnySetter + public ProcessQueryDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ProcessQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -150,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.filterBy, processQueryDefinition.filterBy) && Objects.equals(this.limit, processQueryDefinition.limit) && Objects.equals(this.metric, processQueryDefinition.metric) - && Objects.equals(this.searchBy, processQueryDefinition.searchBy); + && Objects.equals(this.searchBy, processQueryDefinition.searchBy) + && Objects.equals(this.additionalProperties, processQueryDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filterBy, limit, metric, searchBy); + return Objects.hash(filterBy, limit, metric, searchBy, additionalProperties); } @Override @@ -166,6 +217,9 @@ public String toString() { sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" searchBy: ").append(toIndentedString(searchBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetDefinition.java index 3f385b8e260..97950f39962 100644 --- a/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Query values display the current value of a given metric, APM, or log query. */ @@ -369,6 +373,52 @@ public void setType(QueryValueWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return QueryValueWidgetDefinition + */ + @JsonAnySetter + public QueryValueWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this QueryValueWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -391,7 +441,9 @@ public boolean equals(Object o) { && Objects.equals(this.title, queryValueWidgetDefinition.title) && Objects.equals(this.titleAlign, queryValueWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, queryValueWidgetDefinition.titleSize) - && Objects.equals(this.type, queryValueWidgetDefinition.type); + && Objects.equals(this.type, queryValueWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, queryValueWidgetDefinition.additionalProperties); } @Override @@ -408,7 +460,8 @@ public int hashCode() { title, titleAlign, titleSize, - type); + type, + additionalProperties); } @Override @@ -429,6 +482,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetRequest.java index 5ed06b931e6..2aea3180344 100644 --- a/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/QueryValueWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated query value widget. */ @@ -451,6 +455,52 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return QueryValueWidgetRequest + */ + @JsonAnySetter + public QueryValueWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this QueryValueWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -475,7 +525,8 @@ public boolean equals(Object o) { && Objects.equals(this.queries, queryValueWidgetRequest.queries) && Objects.equals(this.responseFormat, queryValueWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, queryValueWidgetRequest.rumQuery) - && Objects.equals(this.securityQuery, queryValueWidgetRequest.securityQuery); + && Objects.equals(this.securityQuery, queryValueWidgetRequest.securityQuery) + && Objects.equals(this.additionalProperties, queryValueWidgetRequest.additionalProperties); } @Override @@ -495,7 +546,8 @@ public int hashCode() { queries, responseFormat, rumQuery, - securityQuery); + securityQuery, + additionalProperties); } @Override @@ -519,6 +571,9 @@ public String toString() { sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ReferenceTableLogsLookupProcessor.java b/src/main/java/com/datadog/api/client/v1/model/ReferenceTableLogsLookupProcessor.java index f1ec7f94732..dbd5997a030 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ReferenceTableLogsLookupProcessor.java +++ b/src/main/java/com/datadog/api/client/v1/model/ReferenceTableLogsLookupProcessor.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -193,6 +197,52 @@ public void setType(LogsLookupProcessorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ReferenceTableLogsLookupProcessor + */ + @JsonAnySetter + public ReferenceTableLogsLookupProcessor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ReferenceTableLogsLookupProcessor object is equal to o. */ @Override public boolean equals(Object o) { @@ -210,12 +260,15 @@ public boolean equals(Object o) { && Objects.equals(this.name, referenceTableLogsLookupProcessor.name) && Objects.equals(this.source, referenceTableLogsLookupProcessor.source) && Objects.equals(this.target, referenceTableLogsLookupProcessor.target) - && Objects.equals(this.type, referenceTableLogsLookupProcessor.type); + && Objects.equals(this.type, referenceTableLogsLookupProcessor.type) + && Objects.equals( + this.additionalProperties, referenceTableLogsLookupProcessor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isEnabled, lookupEnrichmentTable, name, source, target, type); + return Objects.hash( + isEnabled, lookupEnrichmentTable, name, source, target, type, additionalProperties); } @Override @@ -230,6 +283,9 @@ public String toString() { sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ResponseMetaAttributes.java b/src/main/java/com/datadog/api/client/v1/model/ResponseMetaAttributes.java index f00cb40e5a0..7d7e5b524e8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ResponseMetaAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/ResponseMetaAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing meta attributes of response. */ @@ -43,6 +47,52 @@ public void setPage(Pagination page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ResponseMetaAttributes + */ + @JsonAnySetter + public ResponseMetaAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ResponseMetaAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } ResponseMetaAttributes responseMetaAttributes = (ResponseMetaAttributes) o; - return Objects.equals(this.page, responseMetaAttributes.page); + return Objects.equals(this.page, responseMetaAttributes.page) + && Objects.equals(this.additionalProperties, responseMetaAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseMetaAttributes {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetDefinition.java index 968b1e467f3..f65d5d9f50a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Run workflow is widget that allows you to run a workflow from a dashboard. */ @@ -265,6 +269,52 @@ public void setWorkflowId(String workflowId) { this.workflowId = workflowId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RunWorkflowWidgetDefinition + */ + @JsonAnySetter + public RunWorkflowWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RunWorkflowWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -282,12 +332,23 @@ public boolean equals(Object o) { && Objects.equals(this.titleAlign, runWorkflowWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, runWorkflowWidgetDefinition.titleSize) && Objects.equals(this.type, runWorkflowWidgetDefinition.type) - && Objects.equals(this.workflowId, runWorkflowWidgetDefinition.workflowId); + && Objects.equals(this.workflowId, runWorkflowWidgetDefinition.workflowId) + && Objects.equals( + this.additionalProperties, runWorkflowWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customLinks, inputs, time, title, titleAlign, titleSize, type, workflowId); + return Objects.hash( + customLinks, + inputs, + time, + title, + titleAlign, + titleSize, + type, + workflowId, + additionalProperties); } @Override @@ -302,6 +363,9 @@ public String toString() { sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetInput.java b/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetInput.java index 508b2f2b1da..4701ca24b7e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetInput.java +++ b/src/main/java/com/datadog/api/client/v1/model/RunWorkflowWidgetInput.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to map a dashboard template variable to a workflow input. */ @@ -78,6 +82,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RunWorkflowWidgetInput + */ + @JsonAnySetter + public RunWorkflowWidgetInput putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RunWorkflowWidgetInput object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { } RunWorkflowWidgetInput runWorkflowWidgetInput = (RunWorkflowWidgetInput) o; return Objects.equals(this.name, runWorkflowWidgetInput.name) - && Objects.equals(this.value, runWorkflowWidgetInput.value); + && Objects.equals(this.value, runWorkflowWidgetInput.value) + && Objects.equals(this.additionalProperties, runWorkflowWidgetInput.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, value); + return Objects.hash(name, value, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append("class RunWorkflowWidgetInput {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteError.java b/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteError.java index 91ff2ceb3de..a09b06391d3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteError.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteError.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the error. */ @@ -110,6 +114,52 @@ public void setTimeframe(SLOErrorTimeframe timeframe) { this.timeframe = timeframe; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOBulkDeleteError + */ + @JsonAnySetter + public SLOBulkDeleteError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOBulkDeleteError object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { SLOBulkDeleteError sloBulkDeleteError = (SLOBulkDeleteError) o; return Objects.equals(this.id, sloBulkDeleteError.id) && Objects.equals(this.message, sloBulkDeleteError.message) - && Objects.equals(this.timeframe, sloBulkDeleteError.timeframe); + && Objects.equals(this.timeframe, sloBulkDeleteError.timeframe) + && Objects.equals(this.additionalProperties, sloBulkDeleteError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, message, timeframe); + return Objects.hash(id, message, timeframe, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponse.java index e17c0704394..58072ad2f53 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -90,6 +94,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOBulkDeleteResponse + */ + @JsonAnySetter + public SLOBulkDeleteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOBulkDeleteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -101,12 +151,13 @@ public boolean equals(Object o) { } SLOBulkDeleteResponse sloBulkDeleteResponse = (SLOBulkDeleteResponse) o; return Objects.equals(this.data, sloBulkDeleteResponse.data) - && Objects.equals(this.errors, sloBulkDeleteResponse.errors); + && Objects.equals(this.errors, sloBulkDeleteResponse.errors) + && Objects.equals(this.additionalProperties, sloBulkDeleteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -115,6 +166,9 @@ public String toString() { sb.append("class SLOBulkDeleteResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponseData.java b/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponseData.java index eca9237247f..4b187193fe5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOBulkDeleteResponseData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An array of service level objective objects. */ @@ -89,6 +93,52 @@ public void setUpdated(List updated) { this.updated = updated; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOBulkDeleteResponseData + */ + @JsonAnySetter + public SLOBulkDeleteResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOBulkDeleteResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,14 @@ public boolean equals(Object o) { } SLOBulkDeleteResponseData sloBulkDeleteResponseData = (SLOBulkDeleteResponseData) o; return Objects.equals(this.deleted, sloBulkDeleteResponseData.deleted) - && Objects.equals(this.updated, sloBulkDeleteResponseData.updated); + && Objects.equals(this.updated, sloBulkDeleteResponseData.updated) + && Objects.equals( + this.additionalProperties, sloBulkDeleteResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deleted, updated); + return Objects.hash(deleted, updated, additionalProperties); } @Override @@ -114,6 +166,9 @@ public String toString() { sb.append("class SLOBulkDeleteResponseData {\n"); sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n"); sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrection.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrection.java index 6b8667410d6..1350aeed62f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrection.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrection.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response object of a list of SLO corrections. */ @@ -99,6 +103,52 @@ public void setType(SLOCorrectionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrection + */ + @JsonAnySetter + public SLOCorrection putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrection object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { SLOCorrection sloCorrection = (SLOCorrection) o; return Objects.equals(this.attributes, sloCorrection.attributes) && Objects.equals(this.id, sloCorrection.id) - && Objects.equals(this.type, sloCorrection.type); + && Objects.equals(this.type, sloCorrection.type) + && Objects.equals(this.additionalProperties, sloCorrection.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateData.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateData.java index 4de83ff1a9d..438742171b2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data object associated with the SLO correction to be created. */ @@ -83,6 +87,52 @@ public void setType(SLOCorrectionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionCreateData + */ + @JsonAnySetter + public SLOCorrectionCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } SLOCorrectionCreateData sloCorrectionCreateData = (SLOCorrectionCreateData) o; return Objects.equals(this.attributes, sloCorrectionCreateData.attributes) - && Objects.equals(this.type, sloCorrectionCreateData.type); + && Objects.equals(this.type, sloCorrectionCreateData.type) + && Objects.equals(this.additionalProperties, sloCorrectionCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class SLOCorrectionCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequest.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequest.java index a6be47d629c..bcafbf61b3c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An object that defines a correction to be applied to an SLO. */ @@ -43,6 +47,52 @@ public void setData(SLOCorrectionCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionCreateRequest + */ + @JsonAnySetter + public SLOCorrectionCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } SLOCorrectionCreateRequest sloCorrectionCreateRequest = (SLOCorrectionCreateRequest) o; - return Objects.equals(this.data, sloCorrectionCreateRequest.data); + return Objects.equals(this.data, sloCorrectionCreateRequest.data) + && Objects.equals( + this.additionalProperties, sloCorrectionCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SLOCorrectionCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequestAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequestAttributes.java index 47ea8b9fd61..a11b423e265 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionCreateRequestAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The attribute object associated with the SLO correction to be created. */ @@ -236,6 +240,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionCreateRequestAttributes + */ + @JsonAnySetter + public SLOCorrectionCreateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionCreateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -254,12 +304,15 @@ public boolean equals(Object o) { && Objects.equals(this.rrule, sloCorrectionCreateRequestAttributes.rrule) && Objects.equals(this.sloId, sloCorrectionCreateRequestAttributes.sloId) && Objects.equals(this.start, sloCorrectionCreateRequestAttributes.start) - && Objects.equals(this.timezone, sloCorrectionCreateRequestAttributes.timezone); + && Objects.equals(this.timezone, sloCorrectionCreateRequestAttributes.timezone) + && Objects.equals( + this.additionalProperties, sloCorrectionCreateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(category, description, duration, end, rrule, sloId, start, timezone); + return Objects.hash( + category, description, duration, end, rrule, sloId, start, timezone, additionalProperties); } @Override @@ -274,6 +327,9 @@ public String toString() { sb.append(" sloId: ").append(toIndentedString(sloId)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionListResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionListResponse.java index 301ff5c5357..b7da2572a4d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A list of SLO correction objects. */ @@ -84,6 +88,52 @@ public void setMeta(ResponseMetaAttributes meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionListResponse + */ + @JsonAnySetter + public SLOCorrectionListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { } SLOCorrectionListResponse sloCorrectionListResponse = (SLOCorrectionListResponse) o; return Objects.equals(this.data, sloCorrectionListResponse.data) - && Objects.equals(this.meta, sloCorrectionListResponse.meta); + && Objects.equals(this.meta, sloCorrectionListResponse.meta) + && Objects.equals( + this.additionalProperties, sloCorrectionListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class SLOCorrectionListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponse.java index b08bf813733..4bd08198a34 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response object of an SLO correction. */ @@ -43,6 +47,52 @@ public void setData(SLOCorrection data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionResponse + */ + @JsonAnySetter + public SLOCorrectionResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } SLOCorrectionResponse sloCorrectionResponse = (SLOCorrectionResponse) o; - return Objects.equals(this.data, sloCorrectionResponse.data); + return Objects.equals(this.data, sloCorrectionResponse.data) + && Objects.equals(this.additionalProperties, sloCorrectionResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SLOCorrectionResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 3e9f0f242c3..95b98d5fc44 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -380,6 +384,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionResponseAttributes + */ + @JsonAnySetter + public SLOCorrectionResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -402,7 +452,9 @@ public boolean equals(Object o) { && Objects.equals(this.rrule, sloCorrectionResponseAttributes.rrule) && Objects.equals(this.sloId, sloCorrectionResponseAttributes.sloId) && Objects.equals(this.start, sloCorrectionResponseAttributes.start) - && Objects.equals(this.timezone, sloCorrectionResponseAttributes.timezone); + && Objects.equals(this.timezone, sloCorrectionResponseAttributes.timezone) + && Objects.equals( + this.additionalProperties, sloCorrectionResponseAttributes.additionalProperties); } @Override @@ -419,7 +471,8 @@ public int hashCode() { rrule, sloId, start, - timezone); + timezone, + additionalProperties); } @Override @@ -438,6 +491,9 @@ public String toString() { sb.append(" sloId: ").append(toIndentedString(sloId)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributesModifier.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributesModifier.java index ea4e41a9ffc..6a303490f88 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributesModifier.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributesModifier.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Modifier of the object. */ @@ -94,6 +98,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionResponseAttributesModifier + */ + @JsonAnySetter + public SLOCorrectionResponseAttributesModifier putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionResponseAttributesModifier object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,15 @@ public boolean equals(Object o) { (SLOCorrectionResponseAttributesModifier) o; return Objects.equals(this.email, sloCorrectionResponseAttributesModifier.email) && Objects.equals(this.handle, sloCorrectionResponseAttributesModifier.handle) - && Objects.equals(this.name, sloCorrectionResponseAttributesModifier.name); + && Objects.equals(this.name, sloCorrectionResponseAttributesModifier.name) + && Objects.equals( + this.additionalProperties, + sloCorrectionResponseAttributesModifier.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, handle, name); + return Objects.hash(email, handle, name, additionalProperties); } @Override @@ -122,6 +175,9 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateData.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateData.java index 7b2a8597199..628a4051900 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data object associated with the SLO correction to be updated. */ @@ -74,6 +78,52 @@ public void setType(SLOCorrectionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionUpdateData + */ + @JsonAnySetter + public SLOCorrectionUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,13 @@ public boolean equals(Object o) { } SLOCorrectionUpdateData sloCorrectionUpdateData = (SLOCorrectionUpdateData) o; return Objects.equals(this.attributes, sloCorrectionUpdateData.attributes) - && Objects.equals(this.type, sloCorrectionUpdateData.type); + && Objects.equals(this.type, sloCorrectionUpdateData.type) + && Objects.equals(this.additionalProperties, sloCorrectionUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append("class SLOCorrectionUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequest.java index ecb7672a4aa..d44dfa0a1b5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An object that defines a correction to be applied to an SLO. */ @@ -43,6 +47,52 @@ public void setData(SLOCorrectionUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionUpdateRequest + */ + @JsonAnySetter + public SLOCorrectionUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } SLOCorrectionUpdateRequest sloCorrectionUpdateRequest = (SLOCorrectionUpdateRequest) o; - return Objects.equals(this.data, sloCorrectionUpdateRequest.data); + return Objects.equals(this.data, sloCorrectionUpdateRequest.data) + && Objects.equals( + this.additionalProperties, sloCorrectionUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SLOCorrectionUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequestAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequestAttributes.java index ebd71882a84..8751749e7ad 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionUpdateRequestAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The attribute object associated with the SLO correction to be updated. */ @@ -200,6 +204,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCorrectionUpdateRequestAttributes + */ + @JsonAnySetter + public SLOCorrectionUpdateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCorrectionUpdateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -217,12 +267,15 @@ public boolean equals(Object o) { && Objects.equals(this.end, sloCorrectionUpdateRequestAttributes.end) && Objects.equals(this.rrule, sloCorrectionUpdateRequestAttributes.rrule) && Objects.equals(this.start, sloCorrectionUpdateRequestAttributes.start) - && Objects.equals(this.timezone, sloCorrectionUpdateRequestAttributes.timezone); + && Objects.equals(this.timezone, sloCorrectionUpdateRequestAttributes.timezone) + && Objects.equals( + this.additionalProperties, sloCorrectionUpdateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(category, description, duration, end, rrule, start, timezone); + return Objects.hash( + category, description, duration, end, rrule, start, timezone, additionalProperties); } @Override @@ -236,6 +289,9 @@ public String toString() { sb.append(" rrule: ").append(toIndentedString(rrule)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 c26a8f79238..46f15b3fb8f 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -105,6 +109,52 @@ public void setName(String name) { this.name = JsonNullable.of(name); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOCreator + */ + @JsonAnySetter + public SLOCreator putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOCreator object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +167,13 @@ public boolean equals(Object o) { SLOCreator sloCreator = (SLOCreator) o; return Objects.equals(this.email, sloCreator.email) && Objects.equals(this.id, sloCreator.id) - && Objects.equals(this.name, sloCreator.name); + && Objects.equals(this.name, sloCreator.name) + && Objects.equals(this.additionalProperties, sloCreator.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, id, name); + return Objects.hash(email, id, name, additionalProperties); } @Override @@ -132,6 +183,9 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLODeleteResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLODeleteResponse.java index 220d729834a..61dfd811f61 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLODeleteResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLODeleteResponse.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -86,6 +88,52 @@ public void setErrors(Map errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLODeleteResponse + */ + @JsonAnySetter + public SLODeleteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLODeleteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +145,13 @@ public boolean equals(Object o) { } SLODeleteResponse sloDeleteResponse = (SLODeleteResponse) o; return Objects.equals(this.data, sloDeleteResponse.data) - && Objects.equals(this.errors, sloDeleteResponse.errors); + && Objects.equals(this.errors, sloDeleteResponse.errors) + && Objects.equals(this.additionalProperties, sloDeleteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -111,6 +160,9 @@ public String toString() { sb.append("class SLODeleteResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetrics.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetrics.java index 01016a11124..38ea70f29d2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetrics.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetrics.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -253,6 +257,52 @@ public void setTimes(List times) { this.times = times; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryMetrics + */ + @JsonAnySetter + public SLOHistoryMetrics putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryMetrics object is equal to o. */ @Override public boolean equals(Object o) { @@ -270,13 +320,22 @@ public boolean equals(Object o) { && Objects.equals(this.query, sloHistoryMetrics.query) && Objects.equals(this.resType, sloHistoryMetrics.resType) && Objects.equals(this.respVersion, sloHistoryMetrics.respVersion) - && Objects.equals(this.times, sloHistoryMetrics.times); + && Objects.equals(this.times, sloHistoryMetrics.times) + && Objects.equals(this.additionalProperties, sloHistoryMetrics.additionalProperties); } @Override public int hashCode() { return Objects.hash( - denominator, interval, message, numerator, query, resType, respVersion, times); + denominator, + interval, + message, + numerator, + query, + resType, + respVersion, + times, + additionalProperties); } @Override @@ -291,6 +350,9 @@ public String toString() { sb.append(" resType: ").append(toIndentedString(resType)).append("\n"); sb.append(" respVersion: ").append(toIndentedString(respVersion)).append("\n"); sb.append(" times: ").append(toIndentedString(times)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeries.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeries.java index 1a15c054b3a..44e56b41a9c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeries.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeries.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -140,6 +144,52 @@ public void setValues(List values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryMetricsSeries + */ + @JsonAnySetter + public SLOHistoryMetricsSeries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryMetricsSeries object is equal to o. */ @Override public boolean equals(Object o) { @@ -153,12 +203,13 @@ public boolean equals(Object o) { return Objects.equals(this.count, sloHistoryMetricsSeries.count) && Objects.equals(this.metadata, sloHistoryMetricsSeries.metadata) && Objects.equals(this.sum, sloHistoryMetricsSeries.sum) - && Objects.equals(this.values, sloHistoryMetricsSeries.values); + && Objects.equals(this.values, sloHistoryMetricsSeries.values) + && Objects.equals(this.additionalProperties, sloHistoryMetricsSeries.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, metadata, sum, values); + return Objects.hash(count, metadata, sum, values, additionalProperties); } @Override @@ -169,6 +220,9 @@ public String toString() { sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" sum: ").append(toIndentedString(sum)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadata.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadata.java index 2fcfded086d..8824430b9d3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -197,6 +201,52 @@ public void setUnit(List unit) { this.unit = JsonNullable.>of(unit); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryMetricsSeriesMetadata + */ + @JsonAnySetter + public SLOHistoryMetricsSeriesMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryMetricsSeriesMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -213,12 +263,14 @@ public boolean equals(Object o) { && Objects.equals(this.metric, sloHistoryMetricsSeriesMetadata.metric) && Objects.equals(this.queryIndex, sloHistoryMetricsSeriesMetadata.queryIndex) && Objects.equals(this.scope, sloHistoryMetricsSeriesMetadata.scope) - && Objects.equals(this.unit, sloHistoryMetricsSeriesMetadata.unit); + && Objects.equals(this.unit, sloHistoryMetricsSeriesMetadata.unit) + && Objects.equals( + this.additionalProperties, sloHistoryMetricsSeriesMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggr, expression, metric, queryIndex, scope, unit); + return Objects.hash(aggr, expression, metric, queryIndex, scope, unit, additionalProperties); } @Override @@ -231,6 +283,9 @@ public String toString() { sb.append(" queryIndex: ").append(toIndentedString(queryIndex)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadataUnit.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadataUnit.java index 06767b4cf78..aa4f26566b8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadataUnit.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMetricsSeriesMetadataUnit.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -191,6 +195,52 @@ public void setShortName(String shortName) { this.shortName = JsonNullable.of(shortName); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryMetricsSeriesMetadataUnit + */ + @JsonAnySetter + public SLOHistoryMetricsSeriesMetadataUnit putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryMetricsSeriesMetadataUnit object is equal to o. */ @Override public boolean equals(Object o) { @@ -207,12 +257,14 @@ public boolean equals(Object o) { && Objects.equals(this.name, sloHistoryMetricsSeriesMetadataUnit.name) && Objects.equals(this.plural, sloHistoryMetricsSeriesMetadataUnit.plural) && Objects.equals(this.scaleFactor, sloHistoryMetricsSeriesMetadataUnit.scaleFactor) - && Objects.equals(this.shortName, sloHistoryMetricsSeriesMetadataUnit.shortName); + && Objects.equals(this.shortName, sloHistoryMetricsSeriesMetadataUnit.shortName) + && Objects.equals( + this.additionalProperties, sloHistoryMetricsSeriesMetadataUnit.additionalProperties); } @Override public int hashCode() { - return Objects.hash(family, id, name, plural, scaleFactor, shortName); + return Objects.hash(family, id, name, plural, scaleFactor, shortName, additionalProperties); } @Override @@ -225,6 +277,9 @@ public String toString() { sb.append(" plural: ").append(toIndentedString(plural)).append("\n"); sb.append(" scaleFactor: ").append(toIndentedString(scaleFactor)).append("\n"); sb.append(" shortName: ").append(toIndentedString(shortName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 2def30f17e6..97708dd7aea 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -381,6 +383,52 @@ public void setUptime(Double uptime) { this.uptime = uptime; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryMonitor + */ + @JsonAnySetter + public SLOHistoryMonitor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryMonitor object is equal to o. */ @Override public boolean equals(Object o) { @@ -402,7 +450,8 @@ public boolean equals(Object o) { && Objects.equals(this.preview, sloHistoryMonitor.preview) && Objects.equals(this.sliValue, sloHistoryMonitor.sliValue) && Objects.equals(this.spanPrecision, sloHistoryMonitor.spanPrecision) - && Objects.equals(this.uptime, sloHistoryMonitor.uptime); + && Objects.equals(this.uptime, sloHistoryMonitor.uptime) + && Objects.equals(this.additionalProperties, sloHistoryMonitor.additionalProperties); } @Override @@ -419,7 +468,8 @@ public int hashCode() { preview, sliValue, spanPrecision, - uptime); + uptime, + additionalProperties); } @Override @@ -440,6 +490,9 @@ public String toString() { sb.append(" sliValue: ").append(toIndentedString(sliValue)).append("\n"); sb.append(" spanPrecision: ").append(toIndentedString(spanPrecision)).append("\n"); sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 101ebd21e6b..ee4fe4fc26d 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -93,6 +97,52 @@ public void setErrors(List errors) { this.errors = JsonNullable.>of(errors); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryResponse + */ + @JsonAnySetter + public SLOHistoryResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -104,12 +154,13 @@ public boolean equals(Object o) { } SLOHistoryResponse sloHistoryResponse = (SLOHistoryResponse) o; return Objects.equals(this.data, sloHistoryResponse.data) - && Objects.equals(this.errors, sloHistoryResponse.errors); + && Objects.equals(this.errors, sloHistoryResponse.errors) + && Objects.equals(this.additionalProperties, sloHistoryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -118,6 +169,9 @@ public String toString() { sb.append("class SLOHistoryResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseData.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseData.java index 5e7d448d12d..7d1879cc881 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseData.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -336,6 +338,52 @@ public void setTypeId(SLOTypeNumeric typeId) { this.typeId = typeId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryResponseData + */ + @JsonAnySetter + public SLOHistoryResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -355,13 +403,24 @@ public boolean equals(Object o) { && Objects.equals(this.thresholds, sloHistoryResponseData.thresholds) && Objects.equals(this.toTs, sloHistoryResponseData.toTs) && Objects.equals(this.type, sloHistoryResponseData.type) - && Objects.equals(this.typeId, sloHistoryResponseData.typeId); + && Objects.equals(this.typeId, sloHistoryResponseData.typeId) + && Objects.equals(this.additionalProperties, sloHistoryResponseData.additionalProperties); } @Override public int hashCode() { return Objects.hash( - fromTs, groupBy, groups, monitors, overall, series, thresholds, toTs, type, typeId); + fromTs, + groupBy, + groups, + monitors, + overall, + series, + thresholds, + toTs, + type, + typeId, + additionalProperties); } @Override @@ -378,6 +437,9 @@ public String toString() { sb.append(" toTs: ").append(toIndentedString(toTs)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" typeId: ").append(toIndentedString(typeId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseError.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseError.java index aeb05c16ba0..bdd7c04a486 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseError.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseError.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A list of errors while querying the history data for the service level objective. */ @@ -42,6 +46,52 @@ public void setError(String error) { this.error = error; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryResponseError + */ + @JsonAnySetter + public SLOHistoryResponseError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryResponseError object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } SLOHistoryResponseError sloHistoryResponseError = (SLOHistoryResponseError) o; - return Objects.equals(this.error, sloHistoryResponseError.error); + return Objects.equals(this.error, sloHistoryResponseError.error) + && Objects.equals(this.additionalProperties, sloHistoryResponseError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(error); + return Objects.hash(error, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SLOHistoryResponseError {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseErrorWithType.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseErrorWithType.java index 83b8590bb90..24ec7f6f39c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseErrorWithType.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponseErrorWithType.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An object describing the error with error type and error message. */ @@ -78,6 +82,52 @@ public void setErrorType(String errorType) { this.errorType = errorType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistoryResponseErrorWithType + */ + @JsonAnySetter + public SLOHistoryResponseErrorWithType putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistoryResponseErrorWithType object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,14 @@ public boolean equals(Object o) { SLOHistoryResponseErrorWithType sloHistoryResponseErrorWithType = (SLOHistoryResponseErrorWithType) o; return Objects.equals(this.errorMessage, sloHistoryResponseErrorWithType.errorMessage) - && Objects.equals(this.errorType, sloHistoryResponseErrorWithType.errorType); + && Objects.equals(this.errorType, sloHistoryResponseErrorWithType.errorType) + && Objects.equals( + this.additionalProperties, sloHistoryResponseErrorWithType.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errorMessage, errorType); + return Objects.hash(errorMessage, errorType, additionalProperties); } @Override @@ -104,6 +156,9 @@ public String toString() { sb.append("class SLOHistoryResponseErrorWithType {\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); sb.append(" errorType: ").append(toIndentedString(errorType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 a476ccc53f1..bb5bed6d5d9 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -396,6 +398,52 @@ public void setUptime(Double uptime) { this.uptime = JsonNullable.of(uptime); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOHistorySLIData + */ + @JsonAnySetter + public SLOHistorySLIData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOHistorySLIData object is equal to o. */ @Override public boolean equals(Object o) { @@ -417,7 +465,8 @@ public boolean equals(Object o) { && Objects.equals(this.preview, sloHistorySliData.preview) && Objects.equals(this.sliValue, sloHistorySliData.sliValue) && Objects.equals(this.spanPrecision, sloHistorySliData.spanPrecision) - && Objects.equals(this.uptime, sloHistorySliData.uptime); + && Objects.equals(this.uptime, sloHistorySliData.uptime) + && Objects.equals(this.additionalProperties, sloHistorySliData.additionalProperties); } @Override @@ -434,7 +483,8 @@ public int hashCode() { preview, sliValue, spanPrecision, - uptime); + uptime, + additionalProperties); } @Override @@ -455,6 +505,9 @@ public String toString() { sb.append(" sliValue: ").append(toIndentedString(sliValue)).append("\n"); sb.append(" spanPrecision: ").append(toIndentedString(spanPrecision)).append("\n"); sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOListResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLOListResponse.java index 4bd3a67c870..937b2aa712a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A response with one or more service level objective. */ @@ -117,6 +121,52 @@ public void setMetadata(SLOListResponseMetadata metadata) { this.metadata = metadata; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOListResponse + */ + @JsonAnySetter + public SLOListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -129,12 +179,13 @@ public boolean equals(Object o) { SLOListResponse sloListResponse = (SLOListResponse) o; return Objects.equals(this.data, sloListResponse.data) && Objects.equals(this.errors, sloListResponse.errors) - && Objects.equals(this.metadata, sloListResponse.metadata); + && Objects.equals(this.metadata, sloListResponse.metadata) + && Objects.equals(this.additionalProperties, sloListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors, metadata); + return Objects.hash(data, errors, metadata, additionalProperties); } @Override @@ -144,6 +195,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadata.java b/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadata.java index 931818c623f..81cd82ad5c5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The metadata object containing additional information about the list of SLOs. */ @@ -43,6 +47,52 @@ public void setPage(SLOListResponseMetadataPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOListResponseMetadata + */ + @JsonAnySetter + public SLOListResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOListResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } SLOListResponseMetadata sloListResponseMetadata = (SLOListResponseMetadata) o; - return Objects.equals(this.page, sloListResponseMetadata.page); + return Objects.equals(this.page, sloListResponseMetadata.page) + && Objects.equals(this.additionalProperties, sloListResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SLOListResponseMetadata {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadataPage.java b/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadataPage.java index 8b59d843ed2..f52d7b8d7a4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadataPage.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOListResponseMetadataPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing information about the pages of the list of SLOs. */ @@ -71,6 +75,52 @@ public void setTotalFilteredCount(Long totalFilteredCount) { this.totalFilteredCount = totalFilteredCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOListResponseMetadataPage + */ + @JsonAnySetter + public SLOListResponseMetadataPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOListResponseMetadataPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { } SLOListResponseMetadataPage sloListResponseMetadataPage = (SLOListResponseMetadataPage) o; return Objects.equals(this.totalCount, sloListResponseMetadataPage.totalCount) - && Objects.equals(this.totalFilteredCount, sloListResponseMetadataPage.totalFilteredCount); + && Objects.equals(this.totalFilteredCount, sloListResponseMetadataPage.totalFilteredCount) + && Objects.equals( + this.additionalProperties, sloListResponseMetadataPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount, totalFilteredCount); + return Objects.hash(totalCount, totalFilteredCount, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class SLOListResponseMetadataPage {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" totalFilteredCount: ").append(toIndentedString(totalFilteredCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetDefinition.java index b85174dc509..775dfab2a25 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Use the SLO List widget to track your SLOs (Service Level Objectives) on dashboards. */ @@ -174,6 +178,52 @@ public void setType(SLOListWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOListWidgetDefinition + */ + @JsonAnySetter + public SLOListWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOListWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -188,12 +238,13 @@ public boolean equals(Object o) { && Objects.equals(this.title, sloListWidgetDefinition.title) && Objects.equals(this.titleAlign, sloListWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, sloListWidgetDefinition.titleSize) - && Objects.equals(this.type, sloListWidgetDefinition.type); + && Objects.equals(this.type, sloListWidgetDefinition.type) + && Objects.equals(this.additionalProperties, sloListWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(requests, title, titleAlign, titleSize, type); + return Objects.hash(requests, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -205,6 +256,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetQuery.java b/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetQuery.java index f66cb1ba8f7..80fc8e2ba58 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated SLO List widget. */ @@ -116,6 +120,52 @@ public void setSort(List sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOListWidgetQuery + */ + @JsonAnySetter + public SLOListWidgetQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOListWidgetQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +178,13 @@ public boolean equals(Object o) { SLOListWidgetQuery sloListWidgetQuery = (SLOListWidgetQuery) o; return Objects.equals(this.limit, sloListWidgetQuery.limit) && Objects.equals(this.queryString, sloListWidgetQuery.queryString) - && Objects.equals(this.sort, sloListWidgetQuery.sort); + && Objects.equals(this.sort, sloListWidgetQuery.sort) + && Objects.equals(this.additionalProperties, sloListWidgetQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(limit, queryString, sort); + return Objects.hash(limit, queryString, sort, additionalProperties); } @Override @@ -143,6 +194,9 @@ public String toString() { sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetRequest.java index 7d76289246f..44ed92f8e63 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOListWidgetRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated SLO List widget. */ @@ -86,6 +90,52 @@ public void setRequestType(SLOListWidgetRequestType requestType) { this.requestType = requestType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOListWidgetRequest + */ + @JsonAnySetter + public SLOListWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOListWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } SLOListWidgetRequest sloListWidgetRequest = (SLOListWidgetRequest) o; return Objects.equals(this.query, sloListWidgetRequest.query) - && Objects.equals(this.requestType, sloListWidgetRequest.requestType); + && Objects.equals(this.requestType, sloListWidgetRequest.requestType) + && Objects.equals(this.additionalProperties, sloListWidgetRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query, requestType); + return Objects.hash(query, requestType, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class SLOListWidgetRequest {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" requestType: ").append(toIndentedString(requestType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOOverallStatuses.java b/src/main/java/com/datadog/api/client/v1/model/SLOOverallStatuses.java index 7b1566368d2..4bdd6009ae1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOOverallStatuses.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOOverallStatuses.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -309,6 +313,52 @@ public void setTimeframe(SLOTimeframe timeframe) { this.timeframe = timeframe; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOOverallStatuses + */ + @JsonAnySetter + public SLOOverallStatuses putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOOverallStatuses object is equal to o. */ @Override public boolean equals(Object o) { @@ -327,7 +377,8 @@ public boolean equals(Object o) { && Objects.equals(this.state, sloOverallStatuses.state) && Objects.equals(this.status, sloOverallStatuses.status) && Objects.equals(this.target, sloOverallStatuses.target) - && Objects.equals(this.timeframe, sloOverallStatuses.timeframe); + && Objects.equals(this.timeframe, sloOverallStatuses.timeframe) + && Objects.equals(this.additionalProperties, sloOverallStatuses.additionalProperties); } @Override @@ -341,7 +392,8 @@ public int hashCode() { state, status, target, - timeframe); + timeframe, + additionalProperties); } @Override @@ -361,6 +413,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLORawErrorBudgetRemaining.java b/src/main/java/com/datadog/api/client/v1/model/SLORawErrorBudgetRemaining.java index 55c4012cae6..776de0b1b88 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLORawErrorBudgetRemaining.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLORawErrorBudgetRemaining.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Error budget remaining for an SLO. */ @@ -69,6 +73,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLORawErrorBudgetRemaining + */ + @JsonAnySetter + public SLORawErrorBudgetRemaining putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLORawErrorBudgetRemaining object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } SLORawErrorBudgetRemaining sloRawErrorBudgetRemaining = (SLORawErrorBudgetRemaining) o; return Objects.equals(this.unit, sloRawErrorBudgetRemaining.unit) - && Objects.equals(this.value, sloRawErrorBudgetRemaining.value); + && Objects.equals(this.value, sloRawErrorBudgetRemaining.value) + && Objects.equals( + this.additionalProperties, sloRawErrorBudgetRemaining.additionalProperties); } @Override public int hashCode() { - return Objects.hash(unit, value); + return Objects.hash(unit, value, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class SLORawErrorBudgetRemaining {\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLOResponse.java index 06be04051bb..a46024dc841 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A service level objective response containing a single service level objective. */ @@ -79,6 +83,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOResponse + */ + @JsonAnySetter + public SLOResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,13 @@ public boolean equals(Object o) { } SLOResponse sloResponse = (SLOResponse) o; return Objects.equals(this.data, sloResponse.data) - && Objects.equals(this.errors, sloResponse.errors); + && Objects.equals(this.errors, sloResponse.errors) + && Objects.equals(this.additionalProperties, sloResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -104,6 +155,9 @@ public String toString() { sb.append("class SLOResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java b/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java index 51832198848..298bb846788 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -510,6 +514,52 @@ public void setWarningThreshold(Double warningThreshold) { this.warningThreshold = warningThreshold; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOResponseData + */ + @JsonAnySetter + public SLOResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -536,7 +586,8 @@ public boolean equals(Object o) { && Objects.equals(this.thresholds, sloResponseData.thresholds) && Objects.equals(this.timeframe, sloResponseData.timeframe) && Objects.equals(this.type, sloResponseData.type) - && Objects.equals(this.warningThreshold, sloResponseData.warningThreshold); + && Objects.equals(this.warningThreshold, sloResponseData.warningThreshold) + && Objects.equals(this.additionalProperties, sloResponseData.additionalProperties); } @Override @@ -558,7 +609,8 @@ public int hashCode() { thresholds, timeframe, type, - warningThreshold); + warningThreshold, + additionalProperties); } @Override @@ -582,6 +634,9 @@ public String toString() { sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" warningThreshold: ").append(toIndentedString(warningThreshold)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOStatus.java b/src/main/java/com/datadog/api/client/v1/model/SLOStatus.java index dfbaa5e1cf5..204d5544ca5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOStatus.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOStatus.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -255,6 +259,52 @@ public void setState(SLOState state) { this.state = state; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOStatus + */ + @JsonAnySetter + public SLOStatus putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOStatus object is equal to o. */ @Override public boolean equals(Object o) { @@ -271,7 +321,8 @@ public boolean equals(Object o) { && Objects.equals(this.rawErrorBudgetRemaining, sloStatus.rawErrorBudgetRemaining) && Objects.equals(this.sli, sloStatus.sli) && Objects.equals(this.spanPrecision, sloStatus.spanPrecision) - && Objects.equals(this.state, sloStatus.state); + && Objects.equals(this.state, sloStatus.state) + && Objects.equals(this.additionalProperties, sloStatus.additionalProperties); } @Override @@ -283,7 +334,8 @@ public int hashCode() { rawErrorBudgetRemaining, sli, spanPrecision, - state); + state, + additionalProperties); } @Override @@ -301,6 +353,9 @@ public String toString() { sb.append(" sli: ").append(toIndentedString(sli)).append("\n"); sb.append(" spanPrecision: ").append(toIndentedString(spanPrecision)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOThreshold.java b/src/main/java/com/datadog/api/client/v1/model/SLOThreshold.java index 855c5696304..6c1825d14ec 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOThreshold.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOThreshold.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** SLO thresholds (target and optionally warning) for a single time window. */ @@ -165,6 +169,52 @@ public void setWarningDisplay(String warningDisplay) { this.warningDisplay = warningDisplay; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOThreshold + */ + @JsonAnySetter + public SLOThreshold putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOThreshold object is equal to o. */ @Override public boolean equals(Object o) { @@ -179,12 +229,14 @@ public boolean equals(Object o) { && Objects.equals(this.targetDisplay, sloThreshold.targetDisplay) && Objects.equals(this.timeframe, sloThreshold.timeframe) && Objects.equals(this.warning, sloThreshold.warning) - && Objects.equals(this.warningDisplay, sloThreshold.warningDisplay); + && Objects.equals(this.warningDisplay, sloThreshold.warningDisplay) + && Objects.equals(this.additionalProperties, sloThreshold.additionalProperties); } @Override public int hashCode() { - return Objects.hash(target, targetDisplay, timeframe, warning, warningDisplay); + return Objects.hash( + target, targetDisplay, timeframe, warning, warningDisplay, additionalProperties); } @Override @@ -196,6 +248,9 @@ public String toString() { sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); sb.append(" warningDisplay: ").append(toIndentedString(warningDisplay)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/SLOWidgetDefinition.java index deaba72c054..5bf32041ad0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -330,6 +334,52 @@ public void setViewType(String viewType) { this.viewType = viewType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SLOWidgetDefinition + */ + @JsonAnySetter + public SLOWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SLOWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -350,7 +400,8 @@ public boolean equals(Object o) { && Objects.equals(this.titleSize, sloWidgetDefinition.titleSize) && Objects.equals(this.type, sloWidgetDefinition.type) && Objects.equals(this.viewMode, sloWidgetDefinition.viewMode) - && Objects.equals(this.viewType, sloWidgetDefinition.viewType); + && Objects.equals(this.viewType, sloWidgetDefinition.viewType) + && Objects.equals(this.additionalProperties, sloWidgetDefinition.additionalProperties); } @Override @@ -366,7 +417,8 @@ public int hashCode() { titleSize, type, viewMode, - viewType); + viewType, + additionalProperties); } @Override @@ -386,6 +438,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" viewType: ").append(toIndentedString(viewType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ScatterPlotRequest.java b/src/main/java/com/datadog/api/client/v1/model/ScatterPlotRequest.java index af1ceead9d1..3c941d4a63f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ScatterPlotRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ScatterPlotRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated scatter plot. */ @@ -281,6 +285,52 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScatterPlotRequest + */ + @JsonAnySetter + public ScatterPlotRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScatterPlotRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -300,7 +350,8 @@ public boolean equals(Object o) { && Objects.equals(this.profileMetricsQuery, scatterPlotRequest.profileMetricsQuery) && Objects.equals(this.q, scatterPlotRequest.q) && Objects.equals(this.rumQuery, scatterPlotRequest.rumQuery) - && Objects.equals(this.securityQuery, scatterPlotRequest.securityQuery); + && Objects.equals(this.securityQuery, scatterPlotRequest.securityQuery) + && Objects.equals(this.additionalProperties, scatterPlotRequest.additionalProperties); } @Override @@ -315,7 +366,8 @@ public int hashCode() { profileMetricsQuery, q, rumQuery, - securityQuery); + securityQuery, + additionalProperties); } @Override @@ -334,6 +386,9 @@ public String toString() { sb.append(" q: ").append(toIndentedString(q)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinition.java index 19c87c01cc8..45bf0de5683 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -319,6 +323,52 @@ public void setYaxis(WidgetAxis yaxis) { this.yaxis = yaxis; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScatterPlotWidgetDefinition + */ + @JsonAnySetter + public ScatterPlotWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScatterPlotWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -338,7 +388,9 @@ public boolean equals(Object o) { && Objects.equals(this.titleSize, scatterPlotWidgetDefinition.titleSize) && Objects.equals(this.type, scatterPlotWidgetDefinition.type) && Objects.equals(this.xaxis, scatterPlotWidgetDefinition.xaxis) - && Objects.equals(this.yaxis, scatterPlotWidgetDefinition.yaxis); + && Objects.equals(this.yaxis, scatterPlotWidgetDefinition.yaxis) + && Objects.equals( + this.additionalProperties, scatterPlotWidgetDefinition.additionalProperties); } @Override @@ -353,7 +405,8 @@ public int hashCode() { titleSize, type, xaxis, - yaxis); + yaxis, + additionalProperties); } @Override @@ -370,6 +423,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" xaxis: ").append(toIndentedString(xaxis)).append("\n"); sb.append(" yaxis: ").append(toIndentedString(yaxis)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinitionRequests.java b/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinitionRequests.java index 53b64c32f46..70ddcbab742 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinitionRequests.java +++ b/src/main/java/com/datadog/api/client/v1/model/ScatterPlotWidgetDefinitionRequests.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Widget definition. */ @@ -97,6 +101,52 @@ public void setY(ScatterPlotRequest y) { this.y = y; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScatterPlotWidgetDefinitionRequests + */ + @JsonAnySetter + public ScatterPlotWidgetDefinitionRequests putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScatterPlotWidgetDefinitionRequests object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,12 +160,14 @@ public boolean equals(Object o) { (ScatterPlotWidgetDefinitionRequests) o; return Objects.equals(this.table, scatterPlotWidgetDefinitionRequests.table) && Objects.equals(this.x, scatterPlotWidgetDefinitionRequests.x) - && Objects.equals(this.y, scatterPlotWidgetDefinitionRequests.y); + && Objects.equals(this.y, scatterPlotWidgetDefinitionRequests.y) + && Objects.equals( + this.additionalProperties, scatterPlotWidgetDefinitionRequests.additionalProperties); } @Override public int hashCode() { - return Objects.hash(table, x, y); + return Objects.hash(table, x, y, additionalProperties); } @Override @@ -125,6 +177,9 @@ public String toString() { sb.append(" table: ").append(toIndentedString(table)).append("\n"); sb.append(" x: ").append(toIndentedString(x)).append("\n"); sb.append(" y: ").append(toIndentedString(y)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ScatterplotTableRequest.java b/src/main/java/com/datadog/api/client/v1/model/ScatterplotTableRequest.java index e2ee5b2ea3f..e2a733f1104 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ScatterplotTableRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ScatterplotTableRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Scatterplot request containing formulas and functions. */ @@ -124,6 +128,52 @@ public void setResponseFormat(FormulaAndFunctionResponseFormat responseFormat) { this.responseFormat = responseFormat; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScatterplotTableRequest + */ + @JsonAnySetter + public ScatterplotTableRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScatterplotTableRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -136,12 +186,13 @@ public boolean equals(Object o) { ScatterplotTableRequest scatterplotTableRequest = (ScatterplotTableRequest) o; return Objects.equals(this.formulas, scatterplotTableRequest.formulas) && Objects.equals(this.queries, scatterplotTableRequest.queries) - && Objects.equals(this.responseFormat, scatterplotTableRequest.responseFormat); + && Objects.equals(this.responseFormat, scatterplotTableRequest.responseFormat) + && Objects.equals(this.additionalProperties, scatterplotTableRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formulas, queries, responseFormat); + return Objects.hash(formulas, queries, responseFormat, additionalProperties); } @Override @@ -151,6 +202,9 @@ public String toString() { sb.append(" formulas: ").append(toIndentedString(formulas)).append("\n"); sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ScatterplotWidgetFormula.java b/src/main/java/com/datadog/api/client/v1/model/ScatterplotWidgetFormula.java index 2c0025c56a4..ab27cb56997 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ScatterplotWidgetFormula.java +++ b/src/main/java/com/datadog/api/client/v1/model/ScatterplotWidgetFormula.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Formula to be used in a Scatterplot widget query. */ @@ -109,6 +113,52 @@ public void setFormula(String formula) { this.formula = formula; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScatterplotWidgetFormula + */ + @JsonAnySetter + public ScatterplotWidgetFormula putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScatterplotWidgetFormula object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { ScatterplotWidgetFormula scatterplotWidgetFormula = (ScatterplotWidgetFormula) o; return Objects.equals(this.alias, scatterplotWidgetFormula.alias) && Objects.equals(this.dimension, scatterplotWidgetFormula.dimension) - && Objects.equals(this.formula, scatterplotWidgetFormula.formula); + && Objects.equals(this.formula, scatterplotWidgetFormula.formula) + && Objects.equals(this.additionalProperties, scatterplotWidgetFormula.additionalProperties); } @Override public int hashCode() { - return Objects.hash(alias, dimension, formula); + return Objects.hash(alias, dimension, formula, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" dimension: ").append(toIndentedString(dimension)).append("\n"); sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOQuery.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOQuery.java index 08671ecdcb3..e192037d06e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOQuery.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -124,6 +128,52 @@ public void setNumerator(String numerator) { this.numerator = numerator; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOQuery + */ + @JsonAnySetter + public SearchSLOQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -136,12 +186,13 @@ public boolean equals(Object o) { SearchSLOQuery searchSloQuery = (SearchSLOQuery) o; return Objects.equals(this.denominator, searchSloQuery.denominator) && Objects.equals(this.metrics, searchSloQuery.metrics) - && Objects.equals(this.numerator, searchSloQuery.numerator); + && Objects.equals(this.numerator, searchSloQuery.numerator) + && Objects.equals(this.additionalProperties, searchSloQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(denominator, metrics, numerator); + return Objects.hash(denominator, metrics, numerator, additionalProperties); } @Override @@ -151,6 +202,9 @@ public String toString() { sb.append(" denominator: ").append(toIndentedString(denominator)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" numerator: ").append(toIndentedString(numerator)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponse.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponse.java index 20762db72ad..b0ffdfa7c8b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A search SLO response containing results from the search query. */ @@ -97,6 +101,52 @@ public void setMeta(SearchSLOResponseMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponse + */ + @JsonAnySetter + public SearchSLOResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -109,12 +159,13 @@ public boolean equals(Object o) { SearchSLOResponse searchSloResponse = (SearchSLOResponse) o; return Objects.equals(this.data, searchSloResponse.data) && Objects.equals(this.links, searchSloResponse.links) - && Objects.equals(this.meta, searchSloResponse.meta); + && Objects.equals(this.meta, searchSloResponse.meta) + && Objects.equals(this.additionalProperties, searchSloResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -124,6 +175,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseData.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseData.java index f2d14b75051..b88ebaf309e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data from search SLO response. */ @@ -70,6 +74,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseData + */ + @JsonAnySetter + public SearchSLOResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } SearchSLOResponseData searchSloResponseData = (SearchSLOResponseData) o; return Objects.equals(this.attributes, searchSloResponseData.attributes) - && Objects.equals(this.type, searchSloResponseData.type); + && Objects.equals(this.type, searchSloResponseData.type) + && Objects.equals(this.additionalProperties, searchSloResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class SearchSLOResponseData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributes.java index 5b195f74ba7..5b2ce74de63 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes */ @@ -84,6 +88,52 @@ public void setSlos(List slos) { this.slos = slos; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseDataAttributes + */ + @JsonAnySetter + public SearchSLOResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { SearchSLOResponseDataAttributes searchSloResponseDataAttributes = (SearchSLOResponseDataAttributes) o; return Objects.equals(this.facets, searchSloResponseDataAttributes.facets) - && Objects.equals(this.slos, searchSloResponseDataAttributes.slos); + && Objects.equals(this.slos, searchSloResponseDataAttributes.slos) + && Objects.equals( + this.additionalProperties, searchSloResponseDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facets, slos); + return Objects.hash(facets, slos, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class SearchSLOResponseDataAttributes {\n"); sb.append(" facets: ").append(toIndentedString(facets)).append("\n"); sb.append(" slos: ").append(toIndentedString(slos)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacets.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacets.java index 9b0c32b618d..3b956a59975 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacets.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacets.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Facets */ @@ -333,6 +337,52 @@ public void setTimeframe(List this.timeframe = timeframe; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseDataAttributesFacets + */ + @JsonAnySetter + public SearchSLOResponseDataAttributesFacets putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseDataAttributesFacets object is equal to o. */ @Override public boolean equals(Object o) { @@ -351,13 +401,23 @@ public boolean equals(Object o) { && Objects.equals(this.sloType, searchSloResponseDataAttributesFacets.sloType) && Objects.equals(this.target, searchSloResponseDataAttributesFacets.target) && Objects.equals(this.teamTags, searchSloResponseDataAttributesFacets.teamTags) - && Objects.equals(this.timeframe, searchSloResponseDataAttributesFacets.timeframe); + && Objects.equals(this.timeframe, searchSloResponseDataAttributesFacets.timeframe) + && Objects.equals( + this.additionalProperties, searchSloResponseDataAttributesFacets.additionalProperties); } @Override public int hashCode() { return Objects.hash( - allTags, creatorName, envTags, serviceTags, sloType, target, teamTags, timeframe); + allTags, + creatorName, + envTags, + serviceTags, + sloType, + target, + teamTags, + timeframe, + additionalProperties); } @Override @@ -372,6 +432,9 @@ public String toString() { sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" teamTags: ").append(toIndentedString(teamTags)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectInt.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectInt.java index 93daddb4f30..756b850a899 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectInt.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectInt.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Facet */ @@ -69,6 +73,53 @@ public void setName(Double name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseDataAttributesFacetsObjectInt + */ + @JsonAnySetter + public SearchSLOResponseDataAttributesFacetsObjectInt putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseDataAttributesFacetsObjectInt object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +132,15 @@ public boolean equals(Object o) { SearchSLOResponseDataAttributesFacetsObjectInt searchSloResponseDataAttributesFacetsObjectInt = (SearchSLOResponseDataAttributesFacetsObjectInt) o; return Objects.equals(this.count, searchSloResponseDataAttributesFacetsObjectInt.count) - && Objects.equals(this.name, searchSloResponseDataAttributesFacetsObjectInt.name); + && Objects.equals(this.name, searchSloResponseDataAttributesFacetsObjectInt.name) + && Objects.equals( + this.additionalProperties, + searchSloResponseDataAttributesFacetsObjectInt.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, name); + return Objects.hash(count, name, additionalProperties); } @Override @@ -95,6 +149,9 @@ public String toString() { sb.append("class SearchSLOResponseDataAttributesFacetsObjectInt {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectString.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectString.java index 372ecbc905b..de15694c8ef 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectString.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseDataAttributesFacetsObjectString.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Facet */ @@ -69,6 +73,53 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseDataAttributesFacetsObjectString + */ + @JsonAnySetter + public SearchSLOResponseDataAttributesFacetsObjectString putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseDataAttributesFacetsObjectString object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +133,15 @@ public boolean equals(Object o) { searchSloResponseDataAttributesFacetsObjectString = (SearchSLOResponseDataAttributesFacetsObjectString) o; return Objects.equals(this.count, searchSloResponseDataAttributesFacetsObjectString.count) - && Objects.equals(this.name, searchSloResponseDataAttributesFacetsObjectString.name); + && Objects.equals(this.name, searchSloResponseDataAttributesFacetsObjectString.name) + && Objects.equals( + this.additionalProperties, + searchSloResponseDataAttributesFacetsObjectString.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, name); + return Objects.hash(count, name, additionalProperties); } @Override @@ -96,6 +150,9 @@ public String toString() { sb.append("class SearchSLOResponseDataAttributesFacetsObjectString {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseLinks.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseLinks.java index 25a47abb06f..654e104457d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -165,6 +169,52 @@ public void setSelf(String self) { this.self = self; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseLinks + */ + @JsonAnySetter + public SearchSLOResponseLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -179,12 +229,13 @@ public boolean equals(Object o) { && Objects.equals(this.last, searchSloResponseLinks.last) && Objects.equals(this.next, searchSloResponseLinks.next) && Objects.equals(this.prev, searchSloResponseLinks.prev) - && Objects.equals(this.self, searchSloResponseLinks.self); + && Objects.equals(this.self, searchSloResponseLinks.self) + && Objects.equals(this.additionalProperties, searchSloResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(first, last, next, prev, self); + return Objects.hash(first, last, next, prev, self, additionalProperties); } @Override @@ -196,6 +247,9 @@ public String toString() { sb.append(" next: ").append(toIndentedString(next)).append("\n"); sb.append(" prev: ").append(toIndentedString(prev)).append("\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMeta.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMeta.java index 1b48e0c039d..f23ad61a696 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMeta.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Searches metadata returned by the API. */ @@ -43,6 +47,52 @@ public void setPagination(SearchSLOResponseMetaPage pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseMeta + */ + @JsonAnySetter + public SearchSLOResponseMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } SearchSLOResponseMeta searchSloResponseMeta = (SearchSLOResponseMeta) o; - return Objects.equals(this.pagination, searchSloResponseMeta.pagination); + return Objects.equals(this.pagination, searchSloResponseMeta.pagination) + && Objects.equals(this.additionalProperties, searchSloResponseMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pagination); + return Objects.hash(pagination, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchSLOResponseMeta {\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMetaPage.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMetaPage.java index 0f56dc72c8d..1ae4bd085d6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMetaPage.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOResponseMetaPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination metadata returned by the API. */ @@ -219,6 +223,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOResponseMetaPage + */ + @JsonAnySetter + public SearchSLOResponseMetaPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOResponseMetaPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -236,12 +286,23 @@ public boolean equals(Object o) { && Objects.equals(this.prevNumber, searchSloResponseMetaPage.prevNumber) && Objects.equals(this.size, searchSloResponseMetaPage.size) && Objects.equals(this.total, searchSloResponseMetaPage.total) - && Objects.equals(this.type, searchSloResponseMetaPage.type); + && Objects.equals(this.type, searchSloResponseMetaPage.type) + && Objects.equals( + this.additionalProperties, searchSloResponseMetaPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(firstNumber, lastNumber, nextNumber, number, prevNumber, size, total, type); + return Objects.hash( + firstNumber, + lastNumber, + nextNumber, + number, + prevNumber, + size, + total, + type, + additionalProperties); } @Override @@ -256,6 +317,9 @@ public String toString() { sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchSLOThreshold.java b/src/main/java/com/datadog/api/client/v1/model/SearchSLOThreshold.java index 870b15f0ced..2cd56f88e98 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchSLOThreshold.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchSLOThreshold.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -187,6 +191,52 @@ public void setWarningDisplay(String warningDisplay) { this.warningDisplay = JsonNullable.of(warningDisplay); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchSLOThreshold + */ + @JsonAnySetter + public SearchSLOThreshold putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchSLOThreshold object is equal to o. */ @Override public boolean equals(Object o) { @@ -201,12 +251,14 @@ public boolean equals(Object o) { && Objects.equals(this.targetDisplay, searchSloThreshold.targetDisplay) && Objects.equals(this.timeframe, searchSloThreshold.timeframe) && Objects.equals(this.warning, searchSloThreshold.warning) - && Objects.equals(this.warningDisplay, searchSloThreshold.warningDisplay); + && Objects.equals(this.warningDisplay, searchSloThreshold.warningDisplay) + && Objects.equals(this.additionalProperties, searchSloThreshold.additionalProperties); } @Override public int hashCode() { - return Objects.hash(target, targetDisplay, timeframe, warning, warningDisplay); + return Objects.hash( + target, targetDisplay, timeframe, warning, warningDisplay, additionalProperties); } @Override @@ -218,6 +270,9 @@ public String toString() { sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); sb.append(" warningDisplay: ").append(toIndentedString(warningDisplay)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjective.java b/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjective.java index 39949efb56c..b09bcc6f6f2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjective.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjective.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A service level objective data container. */ @@ -43,6 +47,52 @@ public void setData(SearchServiceLevelObjectiveData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchServiceLevelObjective + */ + @JsonAnySetter + public SearchServiceLevelObjective putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchServiceLevelObjective object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } SearchServiceLevelObjective searchServiceLevelObjective = (SearchServiceLevelObjective) o; - return Objects.equals(this.data, searchServiceLevelObjective.data); + return Objects.equals(this.data, searchServiceLevelObjective.data) + && Objects.equals( + this.additionalProperties, searchServiceLevelObjective.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchServiceLevelObjective {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveAttributes.java index 7107df9c6f0..be3f0e7799c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -556,6 +560,52 @@ public void setThresholds(List thresholds) { this.thresholds = thresholds; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchServiceLevelObjectiveAttributes + */ + @JsonAnySetter + public SearchServiceLevelObjectiveAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchServiceLevelObjectiveAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -582,7 +632,9 @@ public boolean equals(Object o) { && Objects.equals(this.sloType, searchServiceLevelObjectiveAttributes.sloType) && Objects.equals(this.status, searchServiceLevelObjectiveAttributes.status) && Objects.equals(this.teamTags, searchServiceLevelObjectiveAttributes.teamTags) - && Objects.equals(this.thresholds, searchServiceLevelObjectiveAttributes.thresholds); + && Objects.equals(this.thresholds, searchServiceLevelObjectiveAttributes.thresholds) + && Objects.equals( + this.additionalProperties, searchServiceLevelObjectiveAttributes.additionalProperties); } @Override @@ -603,7 +655,8 @@ public int hashCode() { sloType, status, teamTags, - thresholds); + thresholds, + additionalProperties); } @Override @@ -626,6 +679,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" teamTags: ").append(toIndentedString(teamTags)).append("\n"); sb.append(" thresholds: ").append(toIndentedString(thresholds)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveData.java b/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveData.java index 42eb9e4845d..f2e84689d75 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SearchServiceLevelObjectiveData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A service level objective ID and attributes. */ @@ -90,6 +94,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SearchServiceLevelObjectiveData + */ + @JsonAnySetter + public SearchServiceLevelObjectiveData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SearchServiceLevelObjectiveData object is equal to o. */ @Override public boolean equals(Object o) { @@ -103,12 +153,14 @@ public boolean equals(Object o) { (SearchServiceLevelObjectiveData) o; return Objects.equals(this.attributes, searchServiceLevelObjectiveData.attributes) && Objects.equals(this.id, searchServiceLevelObjectiveData.id) - && Objects.equals(this.type, searchServiceLevelObjectiveData.type); + && Objects.equals(this.type, searchServiceLevelObjectiveData.type) + && Objects.equals( + this.additionalProperties, searchServiceLevelObjectiveData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -118,6 +170,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SelectableTemplateVariableItems.java b/src/main/java/com/datadog/api/client/v1/model/SelectableTemplateVariableItems.java index 247de2da6a2..410b2472b6d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SelectableTemplateVariableItems.java +++ b/src/main/java/com/datadog/api/client/v1/model/SelectableTemplateVariableItems.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -147,6 +151,52 @@ public void setVisibleTags(List visibleTags) { this.visibleTags = JsonNullable.>of(visibleTags); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SelectableTemplateVariableItems + */ + @JsonAnySetter + public SelectableTemplateVariableItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SelectableTemplateVariableItems object is equal to o. */ @Override public boolean equals(Object o) { @@ -161,12 +211,14 @@ public boolean equals(Object o) { return Objects.equals(this.defaultValue, selectableTemplateVariableItems.defaultValue) && Objects.equals(this.name, selectableTemplateVariableItems.name) && Objects.equals(this.prefix, selectableTemplateVariableItems.prefix) - && Objects.equals(this.visibleTags, selectableTemplateVariableItems.visibleTags); + && Objects.equals(this.visibleTags, selectableTemplateVariableItems.visibleTags) + && Objects.equals( + this.additionalProperties, selectableTemplateVariableItems.additionalProperties); } @Override public int hashCode() { - return Objects.hash(defaultValue, name, prefix, visibleTags); + return Objects.hash(defaultValue, name, prefix, visibleTags, additionalProperties); } @Override @@ -177,6 +229,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); sb.append(" visibleTags: ").append(toIndentedString(visibleTags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Series.java b/src/main/java/com/datadog/api/client/v1/model/Series.java index 6ddcc46df4b..bbafc4bc004 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Series.java +++ b/src/main/java/com/datadog/api/client/v1/model/Series.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -211,6 +215,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Series + */ + @JsonAnySetter + public Series putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Series object is equal to o. */ @Override public boolean equals(Object o) { @@ -226,12 +276,13 @@ public boolean equals(Object o) { && Objects.equals(this.metric, series.metric) && Objects.equals(this.points, series.points) && Objects.equals(this.tags, series.tags) - && Objects.equals(this.type, series.type); + && Objects.equals(this.type, series.type) + && Objects.equals(this.additionalProperties, series.additionalProperties); } @Override public int hashCode() { - return Objects.hash(host, interval, metric, points, tags, type); + return Objects.hash(host, interval, metric, points, tags, type, additionalProperties); } @Override @@ -244,6 +295,9 @@ public String toString() { sb.append(" points: ").append(toIndentedString(points)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceCheck.java b/src/main/java/com/datadog/api/client/v1/model/ServiceCheck.java index 68a98f3a730..bc19f2921c9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceCheck.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceCheck.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An object containing service check and status. */ @@ -193,6 +197,52 @@ public void setTimestamp(Long timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceCheck + */ + @JsonAnySetter + public ServiceCheck putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceCheck object is equal to o. */ @Override public boolean equals(Object o) { @@ -208,12 +258,13 @@ public boolean equals(Object o) { && Objects.equals(this.message, serviceCheck.message) && Objects.equals(this.status, serviceCheck.status) && Objects.equals(this.tags, serviceCheck.tags) - && Objects.equals(this.timestamp, serviceCheck.timestamp); + && Objects.equals(this.timestamp, serviceCheck.timestamp) + && Objects.equals(this.additionalProperties, serviceCheck.additionalProperties); } @Override public int hashCode() { - return Objects.hash(check, hostName, message, status, tags, timestamp); + return Objects.hash(check, hostName, message, status, tags, timestamp, additionalProperties); } @Override @@ -226,6 +277,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java index c695c68507d..d7f0e0f77a0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -486,6 +490,52 @@ public void setWarningThreshold(Double warningThreshold) { this.warningThreshold = warningThreshold; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceLevelObjective + */ + @JsonAnySetter + public ServiceLevelObjective putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceLevelObjective object is equal to o. */ @Override public boolean equals(Object o) { @@ -511,7 +561,8 @@ public boolean equals(Object o) { && Objects.equals(this.thresholds, serviceLevelObjective.thresholds) && Objects.equals(this.timeframe, serviceLevelObjective.timeframe) && Objects.equals(this.type, serviceLevelObjective.type) - && Objects.equals(this.warningThreshold, serviceLevelObjective.warningThreshold); + && Objects.equals(this.warningThreshold, serviceLevelObjective.warningThreshold) + && Objects.equals(this.additionalProperties, serviceLevelObjective.additionalProperties); } @Override @@ -532,7 +583,8 @@ public int hashCode() { thresholds, timeframe, type, - warningThreshold); + warningThreshold, + additionalProperties); } @Override @@ -555,6 +607,9 @@ public String toString() { sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" warningThreshold: ").append(toIndentedString(warningThreshold)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java index 846b362a14f..4b5d474db19 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -82,6 +86,52 @@ public void setNumerator(String numerator) { this.numerator = numerator; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceLevelObjectiveQuery + */ + @JsonAnySetter + public ServiceLevelObjectiveQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceLevelObjectiveQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -93,12 +143,14 @@ public boolean equals(Object o) { } ServiceLevelObjectiveQuery serviceLevelObjectiveQuery = (ServiceLevelObjectiveQuery) o; return Objects.equals(this.denominator, serviceLevelObjectiveQuery.denominator) - && Objects.equals(this.numerator, serviceLevelObjectiveQuery.numerator); + && Objects.equals(this.numerator, serviceLevelObjectiveQuery.numerator) + && Objects.equals( + this.additionalProperties, serviceLevelObjectiveQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(denominator, numerator); + return Objects.hash(denominator, numerator, additionalProperties); } @Override @@ -107,6 +159,9 @@ public String toString() { sb.append("class ServiceLevelObjectiveQuery {\n"); sb.append(" denominator: ").append(toIndentedString(denominator)).append("\n"); sb.append(" numerator: ").append(toIndentedString(numerator)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java index 70338d20053..3f860f980e3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -379,6 +383,52 @@ public void setWarningThreshold(Double warningThreshold) { this.warningThreshold = warningThreshold; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceLevelObjectiveRequest + */ + @JsonAnySetter + public ServiceLevelObjectiveRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceLevelObjectiveRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -399,7 +449,9 @@ public boolean equals(Object o) { && Objects.equals(this.thresholds, serviceLevelObjectiveRequest.thresholds) && Objects.equals(this.timeframe, serviceLevelObjectiveRequest.timeframe) && Objects.equals(this.type, serviceLevelObjectiveRequest.type) - && Objects.equals(this.warningThreshold, serviceLevelObjectiveRequest.warningThreshold); + && Objects.equals(this.warningThreshold, serviceLevelObjectiveRequest.warningThreshold) + && Objects.equals( + this.additionalProperties, serviceLevelObjectiveRequest.additionalProperties); } @Override @@ -415,7 +467,8 @@ public int hashCode() { thresholds, timeframe, type, - warningThreshold); + warningThreshold, + additionalProperties); } @Override @@ -433,6 +486,9 @@ public String toString() { sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" warningThreshold: ").append(toIndentedString(warningThreshold)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceMapWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ServiceMapWidgetDefinition.java index 98f8b7f954d..c323fc391a5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceMapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceMapWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -236,6 +240,52 @@ public void setType(ServiceMapWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceMapWidgetDefinition + */ + @JsonAnySetter + public ServiceMapWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceMapWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -252,12 +302,15 @@ public boolean equals(Object o) { && Objects.equals(this.title, serviceMapWidgetDefinition.title) && Objects.equals(this.titleAlign, serviceMapWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, serviceMapWidgetDefinition.titleSize) - && Objects.equals(this.type, serviceMapWidgetDefinition.type); + && Objects.equals(this.type, serviceMapWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, serviceMapWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customLinks, filters, service, title, titleAlign, titleSize, type); + return Objects.hash( + customLinks, filters, service, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -271,6 +324,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceSummaryWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ServiceSummaryWidgetDefinition.java index 30e1e9634aa..41fe7f03289 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceSummaryWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceSummaryWidgetDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -454,6 +458,52 @@ public void setType(ServiceSummaryWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceSummaryWidgetDefinition + */ + @JsonAnySetter + public ServiceSummaryWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceSummaryWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -480,7 +530,9 @@ public boolean equals(Object o) { && Objects.equals(this.title, serviceSummaryWidgetDefinition.title) && Objects.equals(this.titleAlign, serviceSummaryWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, serviceSummaryWidgetDefinition.titleSize) - && Objects.equals(this.type, serviceSummaryWidgetDefinition.type); + && Objects.equals(this.type, serviceSummaryWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, serviceSummaryWidgetDefinition.additionalProperties); } @Override @@ -501,7 +553,8 @@ public int hashCode() { title, titleAlign, titleSize, - type); + type, + additionalProperties); } @Override @@ -524,6 +577,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboard.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboard.java index e398da79776..bdbc3711ec0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboard.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboard.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -13,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -357,6 +361,52 @@ public String getToken() { return token; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboard + */ + @JsonAnySetter + public SharedDashboard putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboard object is equal to o. */ @Override public boolean equals(Object o) { @@ -378,7 +428,8 @@ public boolean equals(Object o) { && Objects.equals(this.selectableTemplateVars, sharedDashboard.selectableTemplateVars) && Objects.equals(this.shareList, sharedDashboard.shareList) && Objects.equals(this.shareType, sharedDashboard.shareType) - && Objects.equals(this.token, sharedDashboard.token); + && Objects.equals(this.token, sharedDashboard.token) + && Objects.equals(this.additionalProperties, sharedDashboard.additionalProperties); } @Override @@ -394,7 +445,8 @@ public int hashCode() { selectableTemplateVars, shareList, shareType, - token); + token, + additionalProperties); } @Override @@ -416,6 +468,9 @@ public String toString() { sb.append(" shareList: ").append(toIndentedString(shareList)).append("\n"); sb.append(" shareType: ").append(toIndentedString(shareType)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 bb3315b4a6f..74c4e07d68e 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -66,6 +70,52 @@ private void setName_JsonNullable(JsonNullable name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardAuthor + */ + @JsonAnySetter + public SharedDashboardAuthor putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardAuthor object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,13 @@ public boolean equals(Object o) { } SharedDashboardAuthor sharedDashboardAuthor = (SharedDashboardAuthor) o; return Objects.equals(this.handle, sharedDashboardAuthor.handle) - && Objects.equals(this.name, sharedDashboardAuthor.name); + && Objects.equals(this.name, sharedDashboardAuthor.name) + && Objects.equals(this.additionalProperties, sharedDashboardAuthor.additionalProperties); } @Override public int hashCode() { - return Objects.hash(handle, name); + return Objects.hash(handle, name, additionalProperties); } @Override @@ -91,6 +142,9 @@ public String toString() { sb.append("class SharedDashboardAuthor {\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvites.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvites.java index ef05e8b7066..55483b63116 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvites.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvites.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Invitations data and metadata that exists for a shared dashboard returned by the API. */ @@ -71,6 +75,52 @@ public SharedDashboardInvitesMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardInvites + */ + @JsonAnySetter + public SharedDashboardInvites putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardInvites object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } SharedDashboardInvites sharedDashboardInvites = (SharedDashboardInvites) o; return Objects.equals(this.data, sharedDashboardInvites.data) - && Objects.equals(this.meta, sharedDashboardInvites.meta); + && Objects.equals(this.meta, sharedDashboardInvites.meta) + && Objects.equals(this.additionalProperties, sharedDashboardInvites.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class SharedDashboardInvites {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObject.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObject.java index d20dbd4a0ca..7b91d02c3bb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObject.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObject.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the information for an invitation to a shared dashboard. */ @@ -87,6 +91,52 @@ public void setType(DashboardInviteType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardInvitesDataObject + */ + @JsonAnySetter + public SharedDashboardInvitesDataObject putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardInvitesDataObject object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { SharedDashboardInvitesDataObject sharedDashboardInvitesDataObject = (SharedDashboardInvitesDataObject) o; return Objects.equals(this.attributes, sharedDashboardInvitesDataObject.attributes) - && Objects.equals(this.type, sharedDashboardInvitesDataObject.type); + && Objects.equals(this.type, sharedDashboardInvitesDataObject.type) + && Objects.equals( + this.additionalProperties, sharedDashboardInvitesDataObject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class SharedDashboardInvitesDataObject {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObjectAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObjectAttributes.java index dea24c2d9e8..734e9bdd8b1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObjectAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesDataObjectAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -142,6 +146,53 @@ public String getShareToken() { return shareToken; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardInvitesDataObjectAttributes + */ + @JsonAnySetter + public SharedDashboardInvitesDataObjectAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardInvitesDataObjectAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -160,12 +211,22 @@ public boolean equals(Object o) { this.invitationExpiry, sharedDashboardInvitesDataObjectAttributes.invitationExpiry) && Objects.equals( this.sessionExpiry, sharedDashboardInvitesDataObjectAttributes.sessionExpiry) - && Objects.equals(this.shareToken, sharedDashboardInvitesDataObjectAttributes.shareToken); + && Objects.equals(this.shareToken, sharedDashboardInvitesDataObjectAttributes.shareToken) + && Objects.equals( + this.additionalProperties, + sharedDashboardInvitesDataObjectAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, email, hasSession, invitationExpiry, sessionExpiry, shareToken); + return Objects.hash( + createdAt, + email, + hasSession, + invitationExpiry, + sessionExpiry, + shareToken, + additionalProperties); } @Override @@ -178,6 +239,9 @@ public String toString() { sb.append(" invitationExpiry: ").append(toIndentedString(invitationExpiry)).append("\n"); sb.append(" sessionExpiry: ").append(toIndentedString(sessionExpiry)).append("\n"); sb.append(" shareToken: ").append(toIndentedString(shareToken)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMeta.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMeta.java index 1cbae3e2906..78726dff004 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMeta.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination metadata returned by the API. */ @@ -43,6 +47,52 @@ public void setPage(SharedDashboardInvitesMetaPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardInvitesMeta + */ + @JsonAnySetter + public SharedDashboardInvitesMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardInvitesMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } SharedDashboardInvitesMeta sharedDashboardInvitesMeta = (SharedDashboardInvitesMeta) o; - return Objects.equals(this.page, sharedDashboardInvitesMeta.page); + return Objects.equals(this.page, sharedDashboardInvitesMeta.page) + && Objects.equals( + this.additionalProperties, sharedDashboardInvitesMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SharedDashboardInvitesMeta {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMetaPage.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMetaPage.java index 4ea7e73c150..22970a78620 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMetaPage.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardInvitesMetaPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the total count of invitations across all pages */ @@ -42,6 +46,52 @@ public void setTotalCount(Long totalCount) { this.totalCount = totalCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardInvitesMetaPage + */ + @JsonAnySetter + public SharedDashboardInvitesMetaPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardInvitesMetaPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } SharedDashboardInvitesMetaPage sharedDashboardInvitesMetaPage = (SharedDashboardInvitesMetaPage) o; - return Objects.equals(this.totalCount, sharedDashboardInvitesMetaPage.totalCount); + return Objects.equals(this.totalCount, sharedDashboardInvitesMetaPage.totalCount) + && Objects.equals( + this.additionalProperties, sharedDashboardInvitesMetaPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount); + return Objects.hash(totalCount, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SharedDashboardInvitesMetaPage {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequest.java index 23c08e9254f..753d22dac02 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -244,6 +248,52 @@ public void setShareType(DashboardShareType shareType) { this.shareType = JsonNullable.of(shareType); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardUpdateRequest + */ + @JsonAnySetter + public SharedDashboardUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -261,13 +311,20 @@ public boolean equals(Object o) { && Objects.equals( this.selectableTemplateVars, sharedDashboardUpdateRequest.selectableTemplateVars) && Objects.equals(this.shareList, sharedDashboardUpdateRequest.shareList) - && Objects.equals(this.shareType, sharedDashboardUpdateRequest.shareType); + && Objects.equals(this.shareType, sharedDashboardUpdateRequest.shareType) + && Objects.equals( + this.additionalProperties, sharedDashboardUpdateRequest.additionalProperties); } @Override public int hashCode() { return Objects.hash( - globalTime, globalTimeSelectableEnabled, selectableTemplateVars, shareList, shareType); + globalTime, + globalTimeSelectableEnabled, + selectableTemplateVars, + shareList, + shareType, + additionalProperties); } @Override @@ -283,6 +340,9 @@ public String toString() { .append("\n"); sb.append(" shareList: ").append(toIndentedString(shareList)).append("\n"); sb.append(" shareType: ").append(toIndentedString(shareType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequestGlobalTime.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequestGlobalTime.java index 1e25abdbb3a..109e50a8315 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequestGlobalTime.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardUpdateRequestGlobalTime.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Timeframe setting for the shared dashboard. */ @@ -46,6 +50,52 @@ public void setLiveSpan(DashboardGlobalTimeLiveSpan liveSpan) { this.liveSpan = liveSpan; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SharedDashboardUpdateRequestGlobalTime + */ + @JsonAnySetter + public SharedDashboardUpdateRequestGlobalTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SharedDashboardUpdateRequestGlobalTime object is equal to o. */ @Override public boolean equals(Object o) { @@ -57,12 +107,14 @@ public boolean equals(Object o) { } SharedDashboardUpdateRequestGlobalTime sharedDashboardUpdateRequestGlobalTime = (SharedDashboardUpdateRequestGlobalTime) o; - return Objects.equals(this.liveSpan, sharedDashboardUpdateRequestGlobalTime.liveSpan); + return Objects.equals(this.liveSpan, sharedDashboardUpdateRequestGlobalTime.liveSpan) + && Objects.equals( + this.additionalProperties, sharedDashboardUpdateRequestGlobalTime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(liveSpan); + return Objects.hash(liveSpan, additionalProperties); } @Override @@ -70,6 +122,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SharedDashboardUpdateRequestGlobalTime {\n"); sb.append(" liveSpan: ").append(toIndentedString(liveSpan)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SignalAssigneeUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/SignalAssigneeUpdateRequest.java index 96d40e4704a..30a38af0190 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SignalAssigneeUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SignalAssigneeUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes describing an assignee update operation over a security signal. */ @@ -77,6 +81,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SignalAssigneeUpdateRequest + */ + @JsonAnySetter + public SignalAssigneeUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SignalAssigneeUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -88,12 +138,14 @@ public boolean equals(Object o) { } SignalAssigneeUpdateRequest signalAssigneeUpdateRequest = (SignalAssigneeUpdateRequest) o; return Objects.equals(this.assignee, signalAssigneeUpdateRequest.assignee) - && Objects.equals(this.version, signalAssigneeUpdateRequest.version); + && Objects.equals(this.version, signalAssigneeUpdateRequest.version) + && Objects.equals( + this.additionalProperties, signalAssigneeUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(assignee, version); + return Objects.hash(assignee, version, additionalProperties); } @Override @@ -102,6 +154,9 @@ public String toString() { sb.append("class SignalAssigneeUpdateRequest {\n"); sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SignalStateUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/SignalStateUpdateRequest.java index a5abd88e215..1601c586377 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SignalStateUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SignalStateUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes describing the change of state for a given state. */ @@ -136,6 +140,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SignalStateUpdateRequest + */ + @JsonAnySetter + public SignalStateUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SignalStateUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -149,12 +199,13 @@ public boolean equals(Object o) { return Objects.equals(this.archiveComment, signalStateUpdateRequest.archiveComment) && Objects.equals(this.archiveReason, signalStateUpdateRequest.archiveReason) && Objects.equals(this.state, signalStateUpdateRequest.state) - && Objects.equals(this.version, signalStateUpdateRequest.version); + && Objects.equals(this.version, signalStateUpdateRequest.version) + && Objects.equals(this.additionalProperties, signalStateUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(archiveComment, archiveReason, state, version); + return Objects.hash(archiveComment, archiveReason, state, version, additionalProperties); } @Override @@ -165,6 +216,9 @@ public String toString() { sb.append(" archiveReason: ").append(toIndentedString(archiveReason)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannel.java b/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannel.java index 6370f7fac74..c9d4d72d2f1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannel.java +++ b/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannel.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The Slack channel configuration. */ @@ -70,6 +74,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SlackIntegrationChannel + */ + @JsonAnySetter + public SlackIntegrationChannel putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SlackIntegrationChannel object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } SlackIntegrationChannel slackIntegrationChannel = (SlackIntegrationChannel) o; return Objects.equals(this.display, slackIntegrationChannel.display) - && Objects.equals(this.name, slackIntegrationChannel.name); + && Objects.equals(this.name, slackIntegrationChannel.name) + && Objects.equals(this.additionalProperties, slackIntegrationChannel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(display, name); + return Objects.hash(display, name, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class SlackIntegrationChannel {\n"); sb.append(" display: ").append(toIndentedString(display)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannelDisplay.java b/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannelDisplay.java index e7edfe49f56..905f71687e5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannelDisplay.java +++ b/src/main/java/com/datadog/api/client/v1/model/SlackIntegrationChannelDisplay.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Configuration options for what is shown in an alert event message. */ @@ -119,6 +123,52 @@ public void setTags(Boolean tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SlackIntegrationChannelDisplay + */ + @JsonAnySetter + public SlackIntegrationChannelDisplay putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SlackIntegrationChannelDisplay object is equal to o. */ @Override public boolean equals(Object o) { @@ -133,12 +183,14 @@ public boolean equals(Object o) { return Objects.equals(this.message, slackIntegrationChannelDisplay.message) && Objects.equals(this.notified, slackIntegrationChannelDisplay.notified) && Objects.equals(this.snapshot, slackIntegrationChannelDisplay.snapshot) - && Objects.equals(this.tags, slackIntegrationChannelDisplay.tags); + && Objects.equals(this.tags, slackIntegrationChannelDisplay.tags) + && Objects.equals( + this.additionalProperties, slackIntegrationChannelDisplay.additionalProperties); } @Override public int hashCode() { - return Objects.hash(message, notified, snapshot, tags); + return Objects.hash(message, notified, snapshot, tags, additionalProperties); } @Override @@ -149,6 +201,9 @@ public String toString() { sb.append(" notified: ").append(toIndentedString(notified)).append("\n"); sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SuccessfulSignalUpdateResponse.java b/src/main/java/com/datadog/api/client/v1/model/SuccessfulSignalUpdateResponse.java index 7d973b63801..84fd3262f76 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SuccessfulSignalUpdateResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SuccessfulSignalUpdateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Updated signal data following a successfully performed update. */ @@ -42,6 +46,52 @@ public void setStatus(String status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SuccessfulSignalUpdateResponse + */ + @JsonAnySetter + public SuccessfulSignalUpdateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SuccessfulSignalUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } SuccessfulSignalUpdateResponse successfulSignalUpdateResponse = (SuccessfulSignalUpdateResponse) o; - return Objects.equals(this.status, successfulSignalUpdateResponse.status); + return Objects.equals(this.status, successfulSignalUpdateResponse.status) + && Objects.equals( + this.additionalProperties, successfulSignalUpdateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(status); + return Objects.hash(status, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SuccessfulSignalUpdateResponse {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetDefinition.java index f5aeb63931b..d3fb887d25b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Sunbursts are spot on to highlight how groups contribute to the total of a query. */ @@ -289,6 +293,52 @@ public void setType(SunburstWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SunburstWidgetDefinition + */ + @JsonAnySetter + public SunburstWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SunburstWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -307,13 +357,23 @@ public boolean equals(Object o) { && Objects.equals(this.title, sunburstWidgetDefinition.title) && Objects.equals(this.titleAlign, sunburstWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, sunburstWidgetDefinition.titleSize) - && Objects.equals(this.type, sunburstWidgetDefinition.type); + && Objects.equals(this.type, sunburstWidgetDefinition.type) + && Objects.equals(this.additionalProperties, sunburstWidgetDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - customLinks, hideTotal, legend, requests, time, title, titleAlign, titleSize, type); + customLinks, + hideTotal, + legend, + requests, + time, + title, + titleAlign, + titleSize, + type, + additionalProperties); } @Override @@ -329,6 +389,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendInlineAutomatic.java b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendInlineAutomatic.java index d3b6ec708f7..4c28c4f9647 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendInlineAutomatic.java +++ b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendInlineAutomatic.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Configuration of inline or automatic legends. */ @@ -108,6 +112,52 @@ public void setType(SunburstWidgetLegendInlineAutomaticType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SunburstWidgetLegendInlineAutomatic + */ + @JsonAnySetter + public SunburstWidgetLegendInlineAutomatic putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SunburstWidgetLegendInlineAutomatic object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,14 @@ public boolean equals(Object o) { (SunburstWidgetLegendInlineAutomatic) o; return Objects.equals(this.hidePercent, sunburstWidgetLegendInlineAutomatic.hidePercent) && Objects.equals(this.hideValue, sunburstWidgetLegendInlineAutomatic.hideValue) - && Objects.equals(this.type, sunburstWidgetLegendInlineAutomatic.type); + && Objects.equals(this.type, sunburstWidgetLegendInlineAutomatic.type) + && Objects.equals( + this.additionalProperties, sunburstWidgetLegendInlineAutomatic.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hidePercent, hideValue, type); + return Objects.hash(hidePercent, hideValue, type, additionalProperties); } @Override @@ -136,6 +188,9 @@ public String toString() { sb.append(" hidePercent: ").append(toIndentedString(hidePercent)).append("\n"); sb.append(" hideValue: ").append(toIndentedString(hideValue)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendTable.java b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendTable.java index ed433c1e81d..340c04b561a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendTable.java +++ b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetLegendTable.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Configuration of table-based legend. */ @@ -56,6 +60,52 @@ public void setType(SunburstWidgetLegendTableType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SunburstWidgetLegendTable + */ + @JsonAnySetter + public SunburstWidgetLegendTable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SunburstWidgetLegendTable object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } SunburstWidgetLegendTable sunburstWidgetLegendTable = (SunburstWidgetLegendTable) o; - return Objects.equals(this.type, sunburstWidgetLegendTable.type); + return Objects.equals(this.type, sunburstWidgetLegendTable.type) + && Objects.equals( + this.additionalProperties, sunburstWidgetLegendTable.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type); + return Objects.hash(type, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SunburstWidgetLegendTable {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java index 69ce8159525..6536be9b9bd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request definition of sunburst widget. */ @@ -383,6 +387,52 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SunburstWidgetRequest + */ + @JsonAnySetter + public SunburstWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SunburstWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -405,7 +455,8 @@ public boolean equals(Object o) { && Objects.equals(this.queries, sunburstWidgetRequest.queries) && Objects.equals(this.responseFormat, sunburstWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, sunburstWidgetRequest.rumQuery) - && Objects.equals(this.securityQuery, sunburstWidgetRequest.securityQuery); + && Objects.equals(this.securityQuery, sunburstWidgetRequest.securityQuery) + && Objects.equals(this.additionalProperties, sunburstWidgetRequest.additionalProperties); } @Override @@ -423,7 +474,8 @@ public int hashCode() { queries, responseFormat, rumQuery, - securityQuery); + securityQuery, + additionalProperties); } @Override @@ -445,6 +497,9 @@ public String toString() { sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPIStep.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPIStep.java index 58ca32e0b77..263a5f727e0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPIStep.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPIStep.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The steps used in a Synthetic multistep API test. */ @@ -265,6 +269,52 @@ public void setSubtype(SyntheticsAPIStepSubtype subtype) { this.subtype = subtype; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPIStep + */ + @JsonAnySetter + public SyntheticsAPIStep putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPIStep object is equal to o. */ @Override public boolean equals(Object o) { @@ -282,13 +332,22 @@ public boolean equals(Object o) { && Objects.equals(this.name, syntheticsApiStep.name) && Objects.equals(this.request, syntheticsApiStep.request) && Objects.equals(this.retry, syntheticsApiStep.retry) - && Objects.equals(this.subtype, syntheticsApiStep.subtype); + && Objects.equals(this.subtype, syntheticsApiStep.subtype) + && Objects.equals(this.additionalProperties, syntheticsApiStep.additionalProperties); } @Override public int hashCode() { return Objects.hash( - allowFailure, assertions, extractedValues, isCritical, name, request, retry, subtype); + allowFailure, + assertions, + extractedValues, + isCritical, + name, + request, + retry, + subtype, + additionalProperties); } @Override @@ -303,6 +362,9 @@ public String toString() { sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" retry: ").append(toIndentedString(retry)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITest.java index 9e2cfcaecb7..841e26a5077 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing details about a Synthetic API test. */ @@ -324,6 +328,52 @@ public void setType(SyntheticsAPITestType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITest + */ + @JsonAnySetter + public SyntheticsAPITest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITest object is equal to o. */ @Override public boolean equals(Object o) { @@ -344,14 +394,25 @@ public boolean equals(Object o) { && Objects.equals(this.status, syntheticsApiTest.status) && Objects.equals(this.subtype, syntheticsApiTest.subtype) && Objects.equals(this.tags, syntheticsApiTest.tags) - && Objects.equals(this.type, syntheticsApiTest.type); + && Objects.equals(this.type, syntheticsApiTest.type) + && Objects.equals(this.additionalProperties, syntheticsApiTest.additionalProperties); } @Override public int hashCode() { return Objects.hash( - config, locations, message, monitorId, name, options, publicId, status, subtype, tags, - type); + config, + locations, + message, + monitorId, + name, + options, + publicId, + status, + subtype, + tags, + type, + additionalProperties); } @Override @@ -369,6 +430,9 @@ public String toString() { sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestConfig.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestConfig.java index 421a012089e..b709c5bacee 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestConfig.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestConfig.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Configuration object for a Synthetic API test. */ @@ -159,6 +163,52 @@ public void setSteps(List steps) { this.steps = steps; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITestConfig + */ + @JsonAnySetter + public SyntheticsAPITestConfig putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITestConfig object is equal to o. */ @Override public boolean equals(Object o) { @@ -172,12 +222,13 @@ public boolean equals(Object o) { return Objects.equals(this.assertions, syntheticsApiTestConfig.assertions) && Objects.equals(this.configVariables, syntheticsApiTestConfig.configVariables) && Objects.equals(this.request, syntheticsApiTestConfig.request) - && Objects.equals(this.steps, syntheticsApiTestConfig.steps); + && Objects.equals(this.steps, syntheticsApiTestConfig.steps) + && Objects.equals(this.additionalProperties, syntheticsApiTestConfig.additionalProperties); } @Override public int hashCode() { - return Objects.hash(assertions, configVariables, request, steps); + return Objects.hash(assertions, configVariables, request, steps, additionalProperties); } @Override @@ -188,6 +239,9 @@ public String toString() { sb.append(" configVariables: ").append(toIndentedString(configVariables)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultData.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultData.java index d5b4d3a55fd..ab829f698ef 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultData.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -272,6 +274,52 @@ public void setTimings(SyntheticsTiming timings) { this.timings = timings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITestResultData + */ + @JsonAnySetter + public SyntheticsAPITestResultData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITestResultData object is equal to o. */ @Override public boolean equals(Object o) { @@ -290,7 +338,9 @@ public boolean equals(Object o) { && Objects.equals(this.responseBody, syntheticsApiTestResultData.responseBody) && Objects.equals(this.responseHeaders, syntheticsApiTestResultData.responseHeaders) && Objects.equals(this.responseSize, syntheticsApiTestResultData.responseSize) - && Objects.equals(this.timings, syntheticsApiTestResultData.timings); + && Objects.equals(this.timings, syntheticsApiTestResultData.timings) + && Objects.equals( + this.additionalProperties, syntheticsApiTestResultData.additionalProperties); } @Override @@ -304,7 +354,8 @@ public int hashCode() { responseBody, responseHeaders, responseSize, - timings); + timings, + additionalProperties); } @Override @@ -320,6 +371,9 @@ public String toString() { sb.append(" responseHeaders: ").append(toIndentedString(responseHeaders)).append("\n"); sb.append(" responseSize: ").append(toIndentedString(responseSize)).append("\n"); sb.append(" timings: ").append(toIndentedString(timings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFull.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFull.java index e6f24d216aa..ffc000a46e0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFull.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFull.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object returned describing a API test result. */ @@ -201,6 +205,52 @@ public void setStatus(SyntheticsTestMonitorStatus status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITestResultFull + */ + @JsonAnySetter + public SyntheticsAPITestResultFull putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITestResultFull object is equal to o. */ @Override public boolean equals(Object o) { @@ -217,12 +267,15 @@ public boolean equals(Object o) { && Objects.equals(this.probeDc, syntheticsApiTestResultFull.probeDc) && Objects.equals(this.result, syntheticsApiTestResultFull.result) && Objects.equals(this.resultId, syntheticsApiTestResultFull.resultId) - && Objects.equals(this.status, syntheticsApiTestResultFull.status); + && Objects.equals(this.status, syntheticsApiTestResultFull.status) + && Objects.equals( + this.additionalProperties, syntheticsApiTestResultFull.additionalProperties); } @Override public int hashCode() { - return Objects.hash(check, checkTime, checkVersion, probeDc, result, resultId, status); + return Objects.hash( + check, checkTime, checkVersion, probeDc, result, resultId, status, additionalProperties); } @Override @@ -236,6 +289,9 @@ public String toString() { sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" resultId: ").append(toIndentedString(resultId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFullCheck.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFullCheck.java index d581dd881a2..af63d54a052 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFullCheck.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultFullCheck.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the API test configuration. */ @@ -52,6 +56,52 @@ public void setConfig(SyntheticsTestConfig config) { this.config = config; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITestResultFullCheck + */ + @JsonAnySetter + public SyntheticsAPITestResultFullCheck putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITestResultFullCheck object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } SyntheticsAPITestResultFullCheck syntheticsApiTestResultFullCheck = (SyntheticsAPITestResultFullCheck) o; - return Objects.equals(this.config, syntheticsApiTestResultFullCheck.config); + return Objects.equals(this.config, syntheticsApiTestResultFullCheck.config) + && Objects.equals( + this.additionalProperties, syntheticsApiTestResultFullCheck.additionalProperties); } @Override public int hashCode() { - return Objects.hash(config); + return Objects.hash(config, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsAPITestResultFullCheck {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShort.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShort.java index 8d9d6138b2f..0277af776fd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShort.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShort.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object with the results of a single Synthetic API test. */ @@ -150,6 +154,52 @@ public void setStatus(SyntheticsTestMonitorStatus status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITestResultShort + */ + @JsonAnySetter + public SyntheticsAPITestResultShort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITestResultShort object is equal to o. */ @Override public boolean equals(Object o) { @@ -164,12 +214,14 @@ public boolean equals(Object o) { && Objects.equals(this.probeDc, syntheticsApiTestResultShort.probeDc) && Objects.equals(this.result, syntheticsApiTestResultShort.result) && Objects.equals(this.resultId, syntheticsApiTestResultShort.resultId) - && Objects.equals(this.status, syntheticsApiTestResultShort.status); + && Objects.equals(this.status, syntheticsApiTestResultShort.status) + && Objects.equals( + this.additionalProperties, syntheticsApiTestResultShort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(checkTime, probeDc, result, resultId, status); + return Objects.hash(checkTime, probeDc, result, resultId, status, additionalProperties); } @Override @@ -181,6 +233,9 @@ public String toString() { sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" resultId: ").append(toIndentedString(resultId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShortResult.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShortResult.java index 93c1550f853..a98a51d9b0a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShortResult.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestResultShortResult.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Result of the last API test run. */ @@ -72,6 +76,52 @@ public void setTimings(SyntheticsTiming timings) { this.timings = timings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAPITestResultShortResult + */ + @JsonAnySetter + public SyntheticsAPITestResultShortResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAPITestResultShortResult object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,14 @@ public boolean equals(Object o) { SyntheticsAPITestResultShortResult syntheticsApiTestResultShortResult = (SyntheticsAPITestResultShortResult) o; return Objects.equals(this.passed, syntheticsApiTestResultShortResult.passed) - && Objects.equals(this.timings, syntheticsApiTestResultShortResult.timings); + && Objects.equals(this.timings, syntheticsApiTestResultShortResult.timings) + && Objects.equals( + this.additionalProperties, syntheticsApiTestResultShortResult.additionalProperties); } @Override public int hashCode() { - return Objects.hash(passed, timings); + return Objects.hash(passed, timings, additionalProperties); } @Override @@ -98,6 +150,9 @@ public String toString() { sb.append("class SyntheticsAPITestResultShortResult {\n"); sb.append(" passed: ").append(toIndentedString(passed)).append("\n"); sb.append(" timings: ").append(toIndentedString(timings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsApiTestResultFailure.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsApiTestResultFailure.java index ef0053bd301..cd69979158d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsApiTestResultFailure.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsApiTestResultFailure.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The API test failure details. */ @@ -73,6 +77,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsApiTestResultFailure + */ + @JsonAnySetter + public SyntheticsApiTestResultFailure putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsApiTestResultFailure object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { SyntheticsApiTestResultFailure syntheticsApiTestResultFailure = (SyntheticsApiTestResultFailure) o; return Objects.equals(this.code, syntheticsApiTestResultFailure.code) - && Objects.equals(this.message, syntheticsApiTestResultFailure.message); + && Objects.equals(this.message, syntheticsApiTestResultFailure.message) + && Objects.equals( + this.additionalProperties, syntheticsApiTestResultFailure.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, message); + return Objects.hash(code, message, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class SyntheticsApiTestResultFailure {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTarget.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTarget.java index 208cd4ebc79..732775fe6e7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTarget.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTarget.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An assertion for the validatesJSONPath operator. */ @@ -140,6 +144,52 @@ public void setType(SyntheticsAssertionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAssertionJSONPathTarget + */ + @JsonAnySetter + public SyntheticsAssertionJSONPathTarget putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAssertionJSONPathTarget object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +204,14 @@ public boolean equals(Object o) { return Objects.equals(this.operator, syntheticsAssertionJsonPathTarget.operator) && Objects.equals(this.property, syntheticsAssertionJsonPathTarget.property) && Objects.equals(this.target, syntheticsAssertionJsonPathTarget.target) - && Objects.equals(this.type, syntheticsAssertionJsonPathTarget.type); + && Objects.equals(this.type, syntheticsAssertionJsonPathTarget.type) + && Objects.equals( + this.additionalProperties, syntheticsAssertionJsonPathTarget.additionalProperties); } @Override public int hashCode() { - return Objects.hash(operator, property, target, type); + return Objects.hash(operator, property, target, type, additionalProperties); } @Override @@ -170,6 +222,9 @@ public String toString() { sb.append(" property: ").append(toIndentedString(property)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTargetTarget.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTargetTarget.java index 8432302036f..06e421329cb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTargetTarget.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionJSONPathTargetTarget.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Composed target for validatesJSONPath operator. */ @@ -94,6 +98,52 @@ public void setTargetValue(Object targetValue) { this.targetValue = targetValue; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAssertionJSONPathTargetTarget + */ + @JsonAnySetter + public SyntheticsAssertionJSONPathTargetTarget putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAssertionJSONPathTargetTarget object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,15 @@ public boolean equals(Object o) { (SyntheticsAssertionJSONPathTargetTarget) o; return Objects.equals(this.jsonPath, syntheticsAssertionJsonPathTargetTarget.jsonPath) && Objects.equals(this.operator, syntheticsAssertionJsonPathTargetTarget.operator) - && Objects.equals(this.targetValue, syntheticsAssertionJsonPathTargetTarget.targetValue); + && Objects.equals(this.targetValue, syntheticsAssertionJsonPathTargetTarget.targetValue) + && Objects.equals( + this.additionalProperties, + syntheticsAssertionJsonPathTargetTarget.additionalProperties); } @Override public int hashCode() { - return Objects.hash(jsonPath, operator, targetValue); + return Objects.hash(jsonPath, operator, targetValue, additionalProperties); } @Override @@ -122,6 +175,9 @@ public String toString() { sb.append(" jsonPath: ").append(toIndentedString(jsonPath)).append("\n"); sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); sb.append(" targetValue: ").append(toIndentedString(targetValue)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionTarget.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionTarget.java index 074d93b942c..2e23b343eb2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionTarget.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionTarget.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An assertion which uses a simple target. */ @@ -140,6 +144,52 @@ public void setType(SyntheticsAssertionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAssertionTarget + */ + @JsonAnySetter + public SyntheticsAssertionTarget putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAssertionTarget object is equal to o. */ @Override public boolean equals(Object o) { @@ -153,12 +203,14 @@ public boolean equals(Object o) { return Objects.equals(this.operator, syntheticsAssertionTarget.operator) && Objects.equals(this.property, syntheticsAssertionTarget.property) && Objects.equals(this.target, syntheticsAssertionTarget.target) - && Objects.equals(this.type, syntheticsAssertionTarget.type); + && Objects.equals(this.type, syntheticsAssertionTarget.type) + && Objects.equals( + this.additionalProperties, syntheticsAssertionTarget.additionalProperties); } @Override public int hashCode() { - return Objects.hash(operator, property, target, type); + return Objects.hash(operator, property, target, type, additionalProperties); } @Override @@ -169,6 +221,9 @@ public String toString() { sb.append(" property: ").append(toIndentedString(property)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTarget.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTarget.java index 5ca0557b4f0..52cbaa9cb1d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTarget.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTarget.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An assertion for the validatesXPath operator. */ @@ -140,6 +144,52 @@ public void setType(SyntheticsAssertionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAssertionXPathTarget + */ + @JsonAnySetter + public SyntheticsAssertionXPathTarget putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAssertionXPathTarget object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +204,14 @@ public boolean equals(Object o) { return Objects.equals(this.operator, syntheticsAssertionXPathTarget.operator) && Objects.equals(this.property, syntheticsAssertionXPathTarget.property) && Objects.equals(this.target, syntheticsAssertionXPathTarget.target) - && Objects.equals(this.type, syntheticsAssertionXPathTarget.type); + && Objects.equals(this.type, syntheticsAssertionXPathTarget.type) + && Objects.equals( + this.additionalProperties, syntheticsAssertionXPathTarget.additionalProperties); } @Override public int hashCode() { - return Objects.hash(operator, property, target, type); + return Objects.hash(operator, property, target, type, additionalProperties); } @Override @@ -170,6 +222,9 @@ public String toString() { sb.append(" property: ").append(toIndentedString(property)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTargetTarget.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTargetTarget.java index e5238525ab0..faddb7021f0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTargetTarget.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsAssertionXPathTargetTarget.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Composed target for validatesXPath operator. */ @@ -94,6 +98,52 @@ public void setXPath(String xPath) { this.xPath = xPath; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsAssertionXPathTargetTarget + */ + @JsonAnySetter + public SyntheticsAssertionXPathTargetTarget putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsAssertionXPathTargetTarget object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,14 @@ public boolean equals(Object o) { (SyntheticsAssertionXPathTargetTarget) o; return Objects.equals(this.operator, syntheticsAssertionXPathTargetTarget.operator) && Objects.equals(this.targetValue, syntheticsAssertionXPathTargetTarget.targetValue) - && Objects.equals(this.xPath, syntheticsAssertionXPathTargetTarget.xPath); + && Objects.equals(this.xPath, syntheticsAssertionXPathTargetTarget.xPath) + && Objects.equals( + this.additionalProperties, syntheticsAssertionXPathTargetTarget.additionalProperties); } @Override public int hashCode() { - return Objects.hash(operator, targetValue, xPath); + return Objects.hash(operator, targetValue, xPath, additionalProperties); } @Override @@ -122,6 +174,9 @@ public String toString() { sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); sb.append(" targetValue: ").append(toIndentedString(targetValue)).append("\n"); sb.append(" xPath: ").append(toIndentedString(xPath)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthDigest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthDigest.java index 325e5961244..cdf122f7974 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthDigest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthDigest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to handle digest authentication when performing the test. */ @@ -107,6 +111,52 @@ public void setUsername(String username) { this.username = username; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBasicAuthDigest + */ + @JsonAnySetter + public SyntheticsBasicAuthDigest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBasicAuthDigest object is equal to o. */ @Override public boolean equals(Object o) { @@ -119,12 +169,14 @@ public boolean equals(Object o) { SyntheticsBasicAuthDigest syntheticsBasicAuthDigest = (SyntheticsBasicAuthDigest) o; return Objects.equals(this.password, syntheticsBasicAuthDigest.password) && Objects.equals(this.type, syntheticsBasicAuthDigest.type) - && Objects.equals(this.username, syntheticsBasicAuthDigest.username); + && Objects.equals(this.username, syntheticsBasicAuthDigest.username) + && Objects.equals( + this.additionalProperties, syntheticsBasicAuthDigest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(password, type, username); + return Objects.hash(password, type, username, additionalProperties); } @Override @@ -134,6 +186,9 @@ public String toString() { sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthNTLM.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthNTLM.java index 0adc3c2c3fc..31900cd733a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthNTLM.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthNTLM.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to handle NTLM authentication when performing the test. */ @@ -157,6 +161,52 @@ public void setWorkstation(String workstation) { this.workstation = workstation; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBasicAuthNTLM + */ + @JsonAnySetter + public SyntheticsBasicAuthNTLM putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBasicAuthNTLM object is equal to o. */ @Override public boolean equals(Object o) { @@ -171,12 +221,13 @@ public boolean equals(Object o) { && Objects.equals(this.password, syntheticsBasicAuthNtlm.password) && Objects.equals(this.type, syntheticsBasicAuthNtlm.type) && Objects.equals(this.username, syntheticsBasicAuthNtlm.username) - && Objects.equals(this.workstation, syntheticsBasicAuthNtlm.workstation); + && Objects.equals(this.workstation, syntheticsBasicAuthNtlm.workstation) + && Objects.equals(this.additionalProperties, syntheticsBasicAuthNtlm.additionalProperties); } @Override public int hashCode() { - return Objects.hash(domain, password, type, username, workstation); + return Objects.hash(domain, password, type, username, workstation, additionalProperties); } @Override @@ -188,6 +239,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" workstation: ").append(toIndentedString(workstation)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthClient.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthClient.java index 7cb8d57e4a3..1c2697a628d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthClient.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthClient.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to handle oauth client authentication when performing the test. */ @@ -242,6 +246,52 @@ public void setType(SyntheticsBasicAuthOauthClientType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBasicAuthOauthClient + */ + @JsonAnySetter + public SyntheticsBasicAuthOauthClient putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBasicAuthOauthClient object is equal to o. */ @Override public boolean equals(Object o) { @@ -261,7 +311,9 @@ public boolean equals(Object o) { && Objects.equals(this.scope, syntheticsBasicAuthOauthClient.scope) && Objects.equals( this.tokenApiAuthentication, syntheticsBasicAuthOauthClient.tokenApiAuthentication) - && Objects.equals(this.type, syntheticsBasicAuthOauthClient.type); + && Objects.equals(this.type, syntheticsBasicAuthOauthClient.type) + && Objects.equals( + this.additionalProperties, syntheticsBasicAuthOauthClient.additionalProperties); } @Override @@ -274,7 +326,8 @@ public int hashCode() { resource, scope, tokenApiAuthentication, - type); + type, + additionalProperties); } @Override @@ -291,6 +344,9 @@ public String toString() { .append(toIndentedString(tokenApiAuthentication)) .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthROP.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthROP.java index d65cd1b6c60..5e5d1a4888a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthROP.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthOauthROP.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to handle oauth rop authentication when performing the test. */ @@ -292,6 +296,52 @@ public void setUsername(String username) { this.username = username; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBasicAuthOauthROP + */ + @JsonAnySetter + public SyntheticsBasicAuthOauthROP putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBasicAuthOauthROP object is equal to o. */ @Override public boolean equals(Object o) { @@ -312,7 +362,9 @@ public boolean equals(Object o) { && Objects.equals( this.tokenApiAuthentication, syntheticsBasicAuthOauthRop.tokenApiAuthentication) && Objects.equals(this.type, syntheticsBasicAuthOauthRop.type) - && Objects.equals(this.username, syntheticsBasicAuthOauthRop.username); + && Objects.equals(this.username, syntheticsBasicAuthOauthRop.username) + && Objects.equals( + this.additionalProperties, syntheticsBasicAuthOauthRop.additionalProperties); } @Override @@ -327,7 +379,8 @@ public int hashCode() { scope, tokenApiAuthentication, type, - username); + username, + additionalProperties); } @Override @@ -346,6 +399,9 @@ public String toString() { .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthSigv4.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthSigv4.java index 38aecae5c33..417749b79a0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthSigv4.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthSigv4.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to handle SIGV4 authentication when performing the test. */ @@ -185,6 +189,52 @@ public void setType(SyntheticsBasicAuthSigv4Type type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBasicAuthSigv4 + */ + @JsonAnySetter + public SyntheticsBasicAuthSigv4 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBasicAuthSigv4 object is equal to o. */ @Override public boolean equals(Object o) { @@ -200,12 +250,14 @@ public boolean equals(Object o) { && Objects.equals(this.secretKey, syntheticsBasicAuthSigv4.secretKey) && Objects.equals(this.serviceName, syntheticsBasicAuthSigv4.serviceName) && Objects.equals(this.sessionToken, syntheticsBasicAuthSigv4.sessionToken) - && Objects.equals(this.type, syntheticsBasicAuthSigv4.type); + && Objects.equals(this.type, syntheticsBasicAuthSigv4.type) + && Objects.equals(this.additionalProperties, syntheticsBasicAuthSigv4.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accessKey, region, secretKey, serviceName, sessionToken, type); + return Objects.hash( + accessKey, region, secretKey, serviceName, sessionToken, type, additionalProperties); } @Override @@ -218,6 +270,9 @@ public String toString() { sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); sb.append(" sessionToken: ").append(toIndentedString(sessionToken)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java index 8ee34fa8eb8..8eba6949478 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to handle basic authentication when performing the test. */ @@ -107,6 +111,52 @@ public void setUsername(String username) { this.username = username; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBasicAuthWeb + */ + @JsonAnySetter + public SyntheticsBasicAuthWeb putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBasicAuthWeb object is equal to o. */ @Override public boolean equals(Object o) { @@ -119,12 +169,13 @@ public boolean equals(Object o) { SyntheticsBasicAuthWeb syntheticsBasicAuthWeb = (SyntheticsBasicAuthWeb) o; return Objects.equals(this.password, syntheticsBasicAuthWeb.password) && Objects.equals(this.type, syntheticsBasicAuthWeb.type) - && Objects.equals(this.username, syntheticsBasicAuthWeb.username); + && Objects.equals(this.username, syntheticsBasicAuthWeb.username) + && Objects.equals(this.additionalProperties, syntheticsBasicAuthWeb.additionalProperties); } @Override public int hashCode() { - return Objects.hash(password, type, username); + return Objects.hash(password, type, username, additionalProperties); } @Override @@ -134,6 +185,9 @@ public String toString() { sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetails.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetails.java index 3cb6b96d35f..5f31abcbb5b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetails.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetails.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Details about a batch response. */ @@ -43,6 +47,52 @@ public void setData(SyntheticsBatchDetailsData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBatchDetails + */ + @JsonAnySetter + public SyntheticsBatchDetails putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBatchDetails object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } SyntheticsBatchDetails syntheticsBatchDetails = (SyntheticsBatchDetails) o; - return Objects.equals(this.data, syntheticsBatchDetails.data); + return Objects.equals(this.data, syntheticsBatchDetails.data) + && Objects.equals(this.additionalProperties, syntheticsBatchDetails.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsBatchDetails {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetailsData.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetailsData.java index 3a07fd5b707..c8bf73e0201 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetailsData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchDetailsData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Wrapper object that contains the details of a batch. */ @@ -113,6 +117,52 @@ public void setStatus(SyntheticsStatus status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBatchDetailsData + */ + @JsonAnySetter + public SyntheticsBatchDetailsData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBatchDetailsData object is equal to o. */ @Override public boolean equals(Object o) { @@ -125,12 +175,14 @@ public boolean equals(Object o) { SyntheticsBatchDetailsData syntheticsBatchDetailsData = (SyntheticsBatchDetailsData) o; return Objects.equals(this.metadata, syntheticsBatchDetailsData.metadata) && Objects.equals(this.results, syntheticsBatchDetailsData.results) - && Objects.equals(this.status, syntheticsBatchDetailsData.status); + && Objects.equals(this.status, syntheticsBatchDetailsData.status) + && Objects.equals( + this.additionalProperties, syntheticsBatchDetailsData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metadata, results, status); + return Objects.hash(metadata, results, status, additionalProperties); } @Override @@ -140,6 +192,9 @@ public String toString() { sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchResult.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchResult.java index b5ec63e121d..8c987fb4d95 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchResult.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBatchResult.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object with the results of a Synthetic batch. */ @@ -285,6 +289,52 @@ public void setTestType(SyntheticsTestDetailsType testType) { this.testType = testType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBatchResult + */ + @JsonAnySetter + public SyntheticsBatchResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBatchResult object is equal to o. */ @Override public boolean equals(Object o) { @@ -304,7 +354,8 @@ public boolean equals(Object o) { && Objects.equals(this.status, syntheticsBatchResult.status) && Objects.equals(this.testName, syntheticsBatchResult.testName) && Objects.equals(this.testPublicId, syntheticsBatchResult.testPublicId) - && Objects.equals(this.testType, syntheticsBatchResult.testType); + && Objects.equals(this.testType, syntheticsBatchResult.testType) + && Objects.equals(this.additionalProperties, syntheticsBatchResult.additionalProperties); } @Override @@ -319,7 +370,8 @@ public int hashCode() { status, testName, testPublicId, - testType); + testType, + additionalProperties); } @Override @@ -336,6 +388,9 @@ public String toString() { sb.append(" testName: ").append(toIndentedString(testName)).append("\n"); sb.append(" testPublicId: ").append(toIndentedString(testPublicId)).append("\n"); sb.append(" testType: ").append(toIndentedString(testType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserError.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserError.java index 7be2c6026a6..955af26ea59 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserError.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserError.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Error response object for a browser test. */ @@ -134,6 +138,52 @@ public void setType(SyntheticsBrowserErrorType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserError + */ + @JsonAnySetter + public SyntheticsBrowserError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserError object is equal to o. */ @Override public boolean equals(Object o) { @@ -147,12 +197,13 @@ public boolean equals(Object o) { return Objects.equals(this.description, syntheticsBrowserError.description) && Objects.equals(this.name, syntheticsBrowserError.name) && Objects.equals(this.status, syntheticsBrowserError.status) - && Objects.equals(this.type, syntheticsBrowserError.type); + && Objects.equals(this.type, syntheticsBrowserError.type) + && Objects.equals(this.additionalProperties, syntheticsBrowserError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, name, status, type); + return Objects.hash(description, name, status, type, additionalProperties); } @Override @@ -163,6 +214,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTest.java index 27d0d776d7d..06f09976e22 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing details about a Synthetic browser test. */ @@ -331,6 +335,52 @@ public void setType(SyntheticsBrowserTestType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTest + */ + @JsonAnySetter + public SyntheticsBrowserTest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTest object is equal to o. */ @Override public boolean equals(Object o) { @@ -351,13 +401,25 @@ public boolean equals(Object o) { && Objects.equals(this.status, syntheticsBrowserTest.status) && Objects.equals(this.steps, syntheticsBrowserTest.steps) && Objects.equals(this.tags, syntheticsBrowserTest.tags) - && Objects.equals(this.type, syntheticsBrowserTest.type); + && Objects.equals(this.type, syntheticsBrowserTest.type) + && Objects.equals(this.additionalProperties, syntheticsBrowserTest.additionalProperties); } @Override public int hashCode() { return Objects.hash( - config, locations, message, monitorId, name, options, publicId, status, steps, tags, type); + config, + locations, + message, + monitorId, + name, + options, + publicId, + status, + steps, + tags, + type, + additionalProperties); } @Override @@ -375,6 +437,9 @@ public String toString() { sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestConfig.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestConfig.java index 585cd5f1209..6298bf0b6c5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestConfig.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestConfig.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Configuration object for a Synthetic browser test. */ @@ -195,6 +199,52 @@ public void setVariables(List variables) { this.variables = variables; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestConfig + */ + @JsonAnySetter + public SyntheticsBrowserTestConfig putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestConfig object is equal to o. */ @Override public boolean equals(Object o) { @@ -209,12 +259,15 @@ public boolean equals(Object o) { && Objects.equals(this.configVariables, syntheticsBrowserTestConfig.configVariables) && Objects.equals(this.request, syntheticsBrowserTestConfig.request) && Objects.equals(this.setCookie, syntheticsBrowserTestConfig.setCookie) - && Objects.equals(this.variables, syntheticsBrowserTestConfig.variables); + && Objects.equals(this.variables, syntheticsBrowserTestConfig.variables) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestConfig.additionalProperties); } @Override public int hashCode() { - return Objects.hash(assertions, configVariables, request, setCookie, variables); + return Objects.hash( + assertions, configVariables, request, setCookie, variables, additionalProperties); } @Override @@ -226,6 +279,9 @@ public String toString() { sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" setCookie: ").append(toIndentedString(setCookie)).append("\n"); sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultData.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultData.java index c42a497c57a..9aea51eb001 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing results for your Synthetic browser test. */ @@ -335,6 +339,52 @@ public void setTimeToInteractive(Double timeToInteractive) { this.timeToInteractive = timeToInteractive; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestResultData + */ + @JsonAnySetter + public SyntheticsBrowserTestResultData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestResultData object is equal to o. */ @Override public boolean equals(Object o) { @@ -359,8 +409,9 @@ public boolean equals(Object o) { && Objects.equals(this.stepDetails, syntheticsBrowserTestResultData.stepDetails) && Objects.equals( this.thumbnailsBucketKey, syntheticsBrowserTestResultData.thumbnailsBucketKey) + && Objects.equals(this.timeToInteractive, syntheticsBrowserTestResultData.timeToInteractive) && Objects.equals( - this.timeToInteractive, syntheticsBrowserTestResultData.timeToInteractive); + this.additionalProperties, syntheticsBrowserTestResultData.additionalProperties); } @Override @@ -377,7 +428,8 @@ public int hashCode() { startUrl, stepDetails, thumbnailsBucketKey, - timeToInteractive); + timeToInteractive, + additionalProperties); } @Override @@ -398,6 +450,9 @@ public String toString() { .append(toIndentedString(thumbnailsBucketKey)) .append("\n"); sb.append(" timeToInteractive: ").append(toIndentedString(timeToInteractive)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFailure.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFailure.java index 0dc583b7449..37125a0b4b6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFailure.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFailure.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The browser test failure details. */ @@ -73,6 +77,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestResultFailure + */ + @JsonAnySetter + public SyntheticsBrowserTestResultFailure putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestResultFailure object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { SyntheticsBrowserTestResultFailure syntheticsBrowserTestResultFailure = (SyntheticsBrowserTestResultFailure) o; return Objects.equals(this.code, syntheticsBrowserTestResultFailure.code) - && Objects.equals(this.message, syntheticsBrowserTestResultFailure.message); + && Objects.equals(this.message, syntheticsBrowserTestResultFailure.message) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestResultFailure.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, message); + return Objects.hash(code, message, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class SyntheticsBrowserTestResultFailure {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFull.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFull.java index e3ce0a37f1c..64f8cf09b0a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFull.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFull.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object returned describing a browser test result. */ @@ -201,6 +205,52 @@ public void setStatus(SyntheticsTestMonitorStatus status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestResultFull + */ + @JsonAnySetter + public SyntheticsBrowserTestResultFull putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestResultFull object is equal to o. */ @Override public boolean equals(Object o) { @@ -218,12 +268,15 @@ public boolean equals(Object o) { && Objects.equals(this.probeDc, syntheticsBrowserTestResultFull.probeDc) && Objects.equals(this.result, syntheticsBrowserTestResultFull.result) && Objects.equals(this.resultId, syntheticsBrowserTestResultFull.resultId) - && Objects.equals(this.status, syntheticsBrowserTestResultFull.status); + && Objects.equals(this.status, syntheticsBrowserTestResultFull.status) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestResultFull.additionalProperties); } @Override public int hashCode() { - return Objects.hash(check, checkTime, checkVersion, probeDc, result, resultId, status); + return Objects.hash( + check, checkTime, checkVersion, probeDc, result, resultId, status, additionalProperties); } @Override @@ -237,6 +290,9 @@ public String toString() { sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" resultId: ").append(toIndentedString(resultId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFullCheck.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFullCheck.java index f09db424401..b61c2b06597 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFullCheck.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultFullCheck.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the browser test configuration. */ @@ -52,6 +56,52 @@ public void setConfig(SyntheticsTestConfig config) { this.config = config; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestResultFullCheck + */ + @JsonAnySetter + public SyntheticsBrowserTestResultFullCheck putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestResultFullCheck object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } SyntheticsBrowserTestResultFullCheck syntheticsBrowserTestResultFullCheck = (SyntheticsBrowserTestResultFullCheck) o; - return Objects.equals(this.config, syntheticsBrowserTestResultFullCheck.config); + return Objects.equals(this.config, syntheticsBrowserTestResultFullCheck.config) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestResultFullCheck.additionalProperties); } @Override public int hashCode() { - return Objects.hash(config); + return Objects.hash(config, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsBrowserTestResultFullCheck {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShort.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShort.java index e689ffd5a7e..d9272ed6af0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShort.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShort.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object with the results of a single Synthetic browser test. */ @@ -150,6 +154,52 @@ public void setStatus(SyntheticsTestMonitorStatus status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestResultShort + */ + @JsonAnySetter + public SyntheticsBrowserTestResultShort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestResultShort object is equal to o. */ @Override public boolean equals(Object o) { @@ -165,12 +215,14 @@ public boolean equals(Object o) { && Objects.equals(this.probeDc, syntheticsBrowserTestResultShort.probeDc) && Objects.equals(this.result, syntheticsBrowserTestResultShort.result) && Objects.equals(this.resultId, syntheticsBrowserTestResultShort.resultId) - && Objects.equals(this.status, syntheticsBrowserTestResultShort.status); + && Objects.equals(this.status, syntheticsBrowserTestResultShort.status) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestResultShort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(checkTime, probeDc, result, resultId, status); + return Objects.hash(checkTime, probeDc, result, resultId, status, additionalProperties); } @Override @@ -182,6 +234,9 @@ public String toString() { sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" resultId: ").append(toIndentedString(resultId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShortResult.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShortResult.java index 1cf3477b862..683a424a7ea 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShortResult.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestResultShortResult.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object with the result of the last browser test run. */ @@ -145,6 +149,52 @@ public void setStepCountTotal(Long stepCountTotal) { this.stepCountTotal = stepCountTotal; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestResultShortResult + */ + @JsonAnySetter + public SyntheticsBrowserTestResultShortResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestResultShortResult object is equal to o. */ @Override public boolean equals(Object o) { @@ -162,12 +212,15 @@ public boolean equals(Object o) { && Objects.equals( this.stepCountCompleted, syntheticsBrowserTestResultShortResult.stepCountCompleted) && Objects.equals( - this.stepCountTotal, syntheticsBrowserTestResultShortResult.stepCountTotal); + this.stepCountTotal, syntheticsBrowserTestResultShortResult.stepCountTotal) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestResultShortResult.additionalProperties); } @Override public int hashCode() { - return Objects.hash(device, duration, errorCount, stepCountCompleted, stepCountTotal); + return Objects.hash( + device, duration, errorCount, stepCountCompleted, stepCountTotal, additionalProperties); } @Override @@ -179,6 +232,9 @@ public String toString() { sb.append(" errorCount: ").append(toIndentedString(errorCount)).append("\n"); sb.append(" stepCountCompleted: ").append(toIndentedString(stepCountCompleted)).append("\n"); sb.append(" stepCountTotal: ").append(toIndentedString(stepCountTotal)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestRumSettings.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestRumSettings.java index a2f3ca3cadb..b472fdc5e49 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestRumSettings.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserTestRumSettings.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -114,6 +118,52 @@ public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserTestRumSettings + */ + @JsonAnySetter + public SyntheticsBrowserTestRumSettings putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserTestRumSettings object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,14 @@ public boolean equals(Object o) { (SyntheticsBrowserTestRumSettings) o; return Objects.equals(this.applicationId, syntheticsBrowserTestRumSettings.applicationId) && Objects.equals(this.clientTokenId, syntheticsBrowserTestRumSettings.clientTokenId) - && Objects.equals(this.isEnabled, syntheticsBrowserTestRumSettings.isEnabled); + && Objects.equals(this.isEnabled, syntheticsBrowserTestRumSettings.isEnabled) + && Objects.equals( + this.additionalProperties, syntheticsBrowserTestRumSettings.additionalProperties); } @Override public int hashCode() { - return Objects.hash(applicationId, clientTokenId, isEnabled); + return Objects.hash(applicationId, clientTokenId, isEnabled, additionalProperties); } @Override @@ -142,6 +194,9 @@ public String toString() { sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); sb.append(" clientTokenId: ").append(toIndentedString(clientTokenId)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserVariable.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserVariable.java index c0ccd26934d..2bea965a411 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserVariable.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBrowserVariable.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -189,6 +193,52 @@ public void setType(SyntheticsBrowserVariableType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsBrowserVariable + */ + @JsonAnySetter + public SyntheticsBrowserVariable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsBrowserVariable object is equal to o. */ @Override public boolean equals(Object o) { @@ -204,12 +254,14 @@ public boolean equals(Object o) { && Objects.equals(this.name, syntheticsBrowserVariable.name) && Objects.equals(this.pattern, syntheticsBrowserVariable.pattern) && Objects.equals(this.secure, syntheticsBrowserVariable.secure) - && Objects.equals(this.type, syntheticsBrowserVariable.type); + && Objects.equals(this.type, syntheticsBrowserVariable.type) + && Objects.equals( + this.additionalProperties, syntheticsBrowserVariable.additionalProperties); } @Override public int hashCode() { - return Objects.hash(example, id, name, pattern, secure, type); + return Objects.hash(example, id, name, pattern, secure, type, additionalProperties); } @Override @@ -222,6 +274,9 @@ public String toString() { sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append(" secure: ").append(toIndentedString(secure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadata.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadata.java index 9e1cdf803cb..9f0d91ca67b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Metadata for the Synthetic tests run. */ @@ -71,6 +75,52 @@ public void setGit(SyntheticsCIBatchMetadataGit git) { this.git = git; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCIBatchMetadata + */ + @JsonAnySetter + public SyntheticsCIBatchMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCIBatchMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { } SyntheticsCIBatchMetadata syntheticsCiBatchMetadata = (SyntheticsCIBatchMetadata) o; return Objects.equals(this.ci, syntheticsCiBatchMetadata.ci) - && Objects.equals(this.git, syntheticsCiBatchMetadata.git); + && Objects.equals(this.git, syntheticsCiBatchMetadata.git) + && Objects.equals( + this.additionalProperties, syntheticsCiBatchMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(ci, git); + return Objects.hash(ci, git, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class SyntheticsCIBatchMetadata {\n"); sb.append(" ci: ").append(toIndentedString(ci)).append("\n"); sb.append(" git: ").append(toIndentedString(git)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataCI.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataCI.java index 2db4fb1a45e..a9d3229a6d5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataCI.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataCI.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Description of the CI provider. */ @@ -71,6 +75,52 @@ public void setProvider(SyntheticsCIBatchMetadataProvider provider) { this.provider = provider; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCIBatchMetadataCI + */ + @JsonAnySetter + public SyntheticsCIBatchMetadataCI putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCIBatchMetadataCI object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { } SyntheticsCIBatchMetadataCI syntheticsCiBatchMetadataCi = (SyntheticsCIBatchMetadataCI) o; return Objects.equals(this.pipeline, syntheticsCiBatchMetadataCi.pipeline) - && Objects.equals(this.provider, syntheticsCiBatchMetadataCi.provider); + && Objects.equals(this.provider, syntheticsCiBatchMetadataCi.provider) + && Objects.equals( + this.additionalProperties, syntheticsCiBatchMetadataCi.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pipeline, provider); + return Objects.hash(pipeline, provider, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class SyntheticsCIBatchMetadataCI {\n"); sb.append(" pipeline: ").append(toIndentedString(pipeline)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataGit.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataGit.java index 159d49724e9..f6e96a28a54 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataGit.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataGit.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Git information. */ @@ -69,6 +73,52 @@ public void setCommitSha(String commitSha) { this.commitSha = commitSha; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCIBatchMetadataGit + */ + @JsonAnySetter + public SyntheticsCIBatchMetadataGit putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCIBatchMetadataGit object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } SyntheticsCIBatchMetadataGit syntheticsCiBatchMetadataGit = (SyntheticsCIBatchMetadataGit) o; return Objects.equals(this.branch, syntheticsCiBatchMetadataGit.branch) - && Objects.equals(this.commitSha, syntheticsCiBatchMetadataGit.commitSha); + && Objects.equals(this.commitSha, syntheticsCiBatchMetadataGit.commitSha) + && Objects.equals( + this.additionalProperties, syntheticsCiBatchMetadataGit.additionalProperties); } @Override public int hashCode() { - return Objects.hash(branch, commitSha); + return Objects.hash(branch, commitSha, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class SyntheticsCIBatchMetadataGit {\n"); sb.append(" branch: ").append(toIndentedString(branch)).append("\n"); sb.append(" commitSha: ").append(toIndentedString(commitSha)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataPipeline.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataPipeline.java index 46125f68477..28b2c3ae5c1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataPipeline.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataPipeline.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Description of the CI pipeline. */ @@ -42,6 +46,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCIBatchMetadataPipeline + */ + @JsonAnySetter + public SyntheticsCIBatchMetadataPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCIBatchMetadataPipeline object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } SyntheticsCIBatchMetadataPipeline syntheticsCiBatchMetadataPipeline = (SyntheticsCIBatchMetadataPipeline) o; - return Objects.equals(this.url, syntheticsCiBatchMetadataPipeline.url); + return Objects.equals(this.url, syntheticsCiBatchMetadataPipeline.url) + && Objects.equals( + this.additionalProperties, syntheticsCiBatchMetadataPipeline.additionalProperties); } @Override public int hashCode() { - return Objects.hash(url); + return Objects.hash(url, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsCIBatchMetadataPipeline {\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataProvider.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataProvider.java index e29bc5eae91..fac747291ca 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataProvider.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCIBatchMetadataProvider.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Description of the CI provider. */ @@ -42,6 +46,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCIBatchMetadataProvider + */ + @JsonAnySetter + public SyntheticsCIBatchMetadataProvider putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCIBatchMetadataProvider object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } SyntheticsCIBatchMetadataProvider syntheticsCiBatchMetadataProvider = (SyntheticsCIBatchMetadataProvider) o; - return Objects.equals(this.name, syntheticsCiBatchMetadataProvider.name); + return Objects.equals(this.name, syntheticsCiBatchMetadataProvider.name) + && Objects.equals( + this.additionalProperties, syntheticsCiBatchMetadataProvider.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsCIBatchMetadataProvider {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITest.java index ab30a281c22..85f9062ab33 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITest.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -418,6 +420,52 @@ public void setVariables(Map variables) { this.variables = variables; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCITest + */ + @JsonAnySetter + public SyntheticsCITest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCITest object is equal to o. */ @Override public boolean equals(Object o) { @@ -442,7 +490,8 @@ public boolean equals(Object o) { && Objects.equals(this.publicId, syntheticsCiTest.publicId) && Objects.equals(this.retry, syntheticsCiTest.retry) && Objects.equals(this.startUrl, syntheticsCiTest.startUrl) - && Objects.equals(this.variables, syntheticsCiTest.variables); + && Objects.equals(this.variables, syntheticsCiTest.variables) + && Objects.equals(this.additionalProperties, syntheticsCiTest.additionalProperties); } @Override @@ -461,7 +510,8 @@ public int hashCode() { publicId, retry, startUrl, - variables); + variables, + additionalProperties); } @Override @@ -484,6 +534,9 @@ public String toString() { sb.append(" retry: ").append(toIndentedString(retry)).append("\n"); sb.append(" startUrl: ").append(toIndentedString(startUrl)).append("\n"); sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITestBody.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITestBody.java index 503f65b253f..8fd8304ea0b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITestBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCITestBody.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing the synthetics tests to trigger. */ @@ -56,6 +60,52 @@ public void setTests(List tests) { this.tests = tests; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCITestBody + */ + @JsonAnySetter + public SyntheticsCITestBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCITestBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } SyntheticsCITestBody syntheticsCiTestBody = (SyntheticsCITestBody) o; - return Objects.equals(this.tests, syntheticsCiTestBody.tests); + return Objects.equals(this.tests, syntheticsCiTestBody.tests) + && Objects.equals(this.additionalProperties, syntheticsCiTestBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tests); + return Objects.hash(tests, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsCITestBody {\n"); sb.append(" tests: ").append(toIndentedString(tests)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsConfigVariable.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsConfigVariable.java index 6a64d6a40f8..08ce2c5a111 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsConfigVariable.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsConfigVariable.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object defining a variable that can be used in your test configuration. */ @@ -185,6 +189,52 @@ public void setType(SyntheticsConfigVariableType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsConfigVariable + */ + @JsonAnySetter + public SyntheticsConfigVariable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsConfigVariable object is equal to o. */ @Override public boolean equals(Object o) { @@ -200,12 +250,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, syntheticsConfigVariable.name) && Objects.equals(this.pattern, syntheticsConfigVariable.pattern) && Objects.equals(this.secure, syntheticsConfigVariable.secure) - && Objects.equals(this.type, syntheticsConfigVariable.type); + && Objects.equals(this.type, syntheticsConfigVariable.type) + && Objects.equals(this.additionalProperties, syntheticsConfigVariable.additionalProperties); } @Override public int hashCode() { - return Objects.hash(example, id, name, pattern, secure, type); + return Objects.hash(example, id, name, pattern, secure, type, additionalProperties); } @Override @@ -218,6 +269,9 @@ public String toString() { sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append(" secure: ").append(toIndentedString(secure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCoreWebVitals.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCoreWebVitals.java index d0a8942ae13..d23e5e4afbb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsCoreWebVitals.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsCoreWebVitals.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Core Web Vitals attached to a browser test step. */ @@ -94,6 +98,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsCoreWebVitals + */ + @JsonAnySetter + public SyntheticsCoreWebVitals putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsCoreWebVitals object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { SyntheticsCoreWebVitals syntheticsCoreWebVitals = (SyntheticsCoreWebVitals) o; return Objects.equals(this.cls, syntheticsCoreWebVitals.cls) && Objects.equals(this.lcp, syntheticsCoreWebVitals.lcp) - && Objects.equals(this.url, syntheticsCoreWebVitals.url); + && Objects.equals(this.url, syntheticsCoreWebVitals.url) + && Objects.equals(this.additionalProperties, syntheticsCoreWebVitals.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cls, lcp, url); + return Objects.hash(cls, lcp, url, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" cls: ").append(toIndentedString(cls)).append("\n"); sb.append(" lcp: ").append(toIndentedString(lcp)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsPayload.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsPayload.java index ed3b17385ad..9ec9658ec31 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsPayload.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsPayload.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A JSON list of the ID or IDs of the Synthetic tests that you want to delete. */ @@ -52,6 +56,52 @@ public void setPublicIds(List publicIds) { this.publicIds = publicIds; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsDeleteTestsPayload + */ + @JsonAnySetter + public SyntheticsDeleteTestsPayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsDeleteTestsPayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } SyntheticsDeleteTestsPayload syntheticsDeleteTestsPayload = (SyntheticsDeleteTestsPayload) o; - return Objects.equals(this.publicIds, syntheticsDeleteTestsPayload.publicIds); + return Objects.equals(this.publicIds, syntheticsDeleteTestsPayload.publicIds) + && Objects.equals( + this.additionalProperties, syntheticsDeleteTestsPayload.additionalProperties); } @Override public int hashCode() { - return Objects.hash(publicIds); + return Objects.hash(publicIds, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsDeleteTestsPayload {\n"); sb.append(" publicIds: ").append(toIndentedString(publicIds)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsResponse.java index 0115c864df8..4ccc5573206 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeleteTestsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object for deleting Synthetic tests. */ @@ -56,6 +60,52 @@ public void setDeletedTests(List deletedTests) { this.deletedTests = deletedTests; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsDeleteTestsResponse + */ + @JsonAnySetter + public SyntheticsDeleteTestsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsDeleteTestsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } SyntheticsDeleteTestsResponse syntheticsDeleteTestsResponse = (SyntheticsDeleteTestsResponse) o; - return Objects.equals(this.deletedTests, syntheticsDeleteTestsResponse.deletedTests); + return Objects.equals(this.deletedTests, syntheticsDeleteTestsResponse.deletedTests) + && Objects.equals( + this.additionalProperties, syntheticsDeleteTestsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedTests); + return Objects.hash(deletedTests, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsDeleteTestsResponse {\n"); sb.append(" deletedTests: ").append(toIndentedString(deletedTests)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeletedTest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeletedTest.java index b9e0112f70a..dd05bf772ff 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeletedTest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDeletedTest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing a deleted Synthetic test ID with the associated deletion timestamp. */ @@ -70,6 +74,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsDeletedTest + */ + @JsonAnySetter + public SyntheticsDeletedTest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsDeletedTest object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } SyntheticsDeletedTest syntheticsDeletedTest = (SyntheticsDeletedTest) o; return Objects.equals(this.deletedAt, syntheticsDeletedTest.deletedAt) - && Objects.equals(this.publicId, syntheticsDeletedTest.publicId); + && Objects.equals(this.publicId, syntheticsDeletedTest.publicId) + && Objects.equals(this.additionalProperties, syntheticsDeletedTest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedAt, publicId); + return Objects.hash(deletedAt, publicId, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class SyntheticsDeletedTest {\n"); sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDevice.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDevice.java index 03db146684f..c589ee96c99 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsDevice.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsDevice.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the device used to perform the Synthetic test. */ @@ -160,6 +164,52 @@ public void setWidth(Long width) { this.width = width; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsDevice + */ + @JsonAnySetter + public SyntheticsDevice putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsDevice object is equal to o. */ @Override public boolean equals(Object o) { @@ -174,12 +224,13 @@ public boolean equals(Object o) { && Objects.equals(this.id, syntheticsDevice.id) && Objects.equals(this.isMobile, syntheticsDevice.isMobile) && Objects.equals(this.name, syntheticsDevice.name) - && Objects.equals(this.width, syntheticsDevice.width); + && Objects.equals(this.width, syntheticsDevice.width) + && Objects.equals(this.additionalProperties, syntheticsDevice.additionalProperties); } @Override public int hashCode() { - return Objects.hash(height, id, isMobile, name, width); + return Objects.hash(height, id, isMobile, name, width, additionalProperties); } @Override @@ -191,6 +242,9 @@ public String toString() { sb.append(" isMobile: ").append(toIndentedString(isMobile)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" width: ").append(toIndentedString(width)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetAPITestLatestResultsResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetAPITestLatestResultsResponse.java index 89fee77bc7e..414624aff4a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetAPITestLatestResultsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetAPITestLatestResultsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object with the latest Synthetic API test run. */ @@ -85,6 +89,52 @@ public void setResults(List results) { this.results = results; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGetAPITestLatestResultsResponse + */ + @JsonAnySetter + public SyntheticsGetAPITestLatestResultsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGetAPITestLatestResultsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,15 @@ public boolean equals(Object o) { return Objects.equals( this.lastTimestampFetched, syntheticsGetApiTestLatestResultsResponse.lastTimestampFetched) - && Objects.equals(this.results, syntheticsGetApiTestLatestResultsResponse.results); + && Objects.equals(this.results, syntheticsGetApiTestLatestResultsResponse.results) + && Objects.equals( + this.additionalProperties, + syntheticsGetApiTestLatestResultsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(lastTimestampFetched, results); + return Objects.hash(lastTimestampFetched, results, additionalProperties); } @Override @@ -115,6 +168,9 @@ public String toString() { .append(toIndentedString(lastTimestampFetched)) .append("\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetBrowserTestLatestResultsResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetBrowserTestLatestResultsResponse.java index dcd9717cbf5..ee7801ca758 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetBrowserTestLatestResultsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGetBrowserTestLatestResultsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object with the latest Synthetic browser test run. */ @@ -86,6 +90,53 @@ public void setResults(List results) { this.results = results; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGetBrowserTestLatestResultsResponse + */ + @JsonAnySetter + public SyntheticsGetBrowserTestLatestResultsResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGetBrowserTestLatestResultsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +151,15 @@ public boolean equals(Object o) { return Objects.equals( this.lastTimestampFetched, syntheticsGetBrowserTestLatestResultsResponse.lastTimestampFetched) - && Objects.equals(this.results, syntheticsGetBrowserTestLatestResultsResponse.results); + && Objects.equals(this.results, syntheticsGetBrowserTestLatestResultsResponse.results) + && Objects.equals( + this.additionalProperties, + syntheticsGetBrowserTestLatestResultsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(lastTimestampFetched, results); + return Objects.hash(lastTimestampFetched, results, additionalProperties); } @Override @@ -116,6 +170,9 @@ public String toString() { .append(toIndentedString(lastTimestampFetched)) .append("\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariable.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariable.java index ae5a887a1f6..57d2a829123 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariable.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariable.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Synthetic global variable. */ @@ -235,6 +239,52 @@ public void setValue(SyntheticsGlobalVariableValue value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGlobalVariable + */ + @JsonAnySetter + public SyntheticsGlobalVariable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGlobalVariable object is equal to o. */ @Override public boolean equals(Object o) { @@ -252,13 +302,22 @@ public boolean equals(Object o) { && Objects.equals(this.parseTestOptions, syntheticsGlobalVariable.parseTestOptions) && Objects.equals(this.parseTestPublicId, syntheticsGlobalVariable.parseTestPublicId) && Objects.equals(this.tags, syntheticsGlobalVariable.tags) - && Objects.equals(this.value, syntheticsGlobalVariable.value); + && Objects.equals(this.value, syntheticsGlobalVariable.value) + && Objects.equals(this.additionalProperties, syntheticsGlobalVariable.additionalProperties); } @Override public int hashCode() { return Objects.hash( - attributes, description, id, name, parseTestOptions, parseTestPublicId, tags, value); + attributes, + description, + id, + name, + parseTestOptions, + parseTestPublicId, + tags, + value, + additionalProperties); } @Override @@ -273,6 +332,9 @@ public String toString() { sb.append(" parseTestPublicId: ").append(toIndentedString(parseTestPublicId)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableAttributes.java index 3b7e08510ca..233eaf5cd60 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes of the global variable. */ @@ -53,6 +57,52 @@ public void setRestrictedRoles(List restrictedRoles) { this.restrictedRoles = restrictedRoles; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGlobalVariableAttributes + */ + @JsonAnySetter + public SyntheticsGlobalVariableAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGlobalVariableAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } SyntheticsGlobalVariableAttributes syntheticsGlobalVariableAttributes = (SyntheticsGlobalVariableAttributes) o; - return Objects.equals(this.restrictedRoles, syntheticsGlobalVariableAttributes.restrictedRoles); + return Objects.equals(this.restrictedRoles, syntheticsGlobalVariableAttributes.restrictedRoles) + && Objects.equals( + this.additionalProperties, syntheticsGlobalVariableAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(restrictedRoles); + return Objects.hash(restrictedRoles, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsGlobalVariableAttributes {\n"); sb.append(" restrictedRoles: ").append(toIndentedString(restrictedRoles)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableOptions.java index 047bdc3dda4..bc339c5d990 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options for the Global Variable for MFA. */ @@ -44,6 +48,52 @@ public void setTotpParameters(SyntheticsGlobalVariableTOTPParameters totpParamet this.totpParameters = totpParameters; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGlobalVariableOptions + */ + @JsonAnySetter + public SyntheticsGlobalVariableOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGlobalVariableOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,14 @@ public boolean equals(Object o) { } SyntheticsGlobalVariableOptions syntheticsGlobalVariableOptions = (SyntheticsGlobalVariableOptions) o; - return Objects.equals(this.totpParameters, syntheticsGlobalVariableOptions.totpParameters); + return Objects.equals(this.totpParameters, syntheticsGlobalVariableOptions.totpParameters) + && Objects.equals( + this.additionalProperties, syntheticsGlobalVariableOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totpParameters); + return Objects.hash(totpParameters, additionalProperties); } @Override @@ -68,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsGlobalVariableOptions {\n"); sb.append(" totpParameters: ").append(toIndentedString(totpParameters)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableParseTestOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableParseTestOptions.java index 85bafa9a7c4..fe3d2efd600 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableParseTestOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableParseTestOptions.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -139,6 +143,52 @@ public void setType(SyntheticsGlobalVariableParseTestOptionsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGlobalVariableParseTestOptions + */ + @JsonAnySetter + public SyntheticsGlobalVariableParseTestOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGlobalVariableParseTestOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +204,15 @@ public boolean equals(Object o) { && Objects.equals( this.localVariableName, syntheticsGlobalVariableParseTestOptions.localVariableName) && Objects.equals(this.parser, syntheticsGlobalVariableParseTestOptions.parser) - && Objects.equals(this.type, syntheticsGlobalVariableParseTestOptions.type); + && Objects.equals(this.type, syntheticsGlobalVariableParseTestOptions.type) + && Objects.equals( + this.additionalProperties, + syntheticsGlobalVariableParseTestOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(field, localVariableName, parser, type); + return Objects.hash(field, localVariableName, parser, type, additionalProperties); } @Override @@ -170,6 +223,9 @@ public String toString() { sb.append(" localVariableName: ").append(toIndentedString(localVariableName)).append("\n"); sb.append(" parser: ").append(toIndentedString(parser)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableTOTPParameters.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableTOTPParameters.java index 7e1cc8e6663..c73d6122064 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableTOTPParameters.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableTOTPParameters.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Parameters for the TOTP/MFA variable */ @@ -69,6 +73,52 @@ public void setRefreshInterval(Integer refreshInterval) { this.refreshInterval = refreshInterval; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGlobalVariableTOTPParameters + */ + @JsonAnySetter + public SyntheticsGlobalVariableTOTPParameters putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGlobalVariableTOTPParameters object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { (SyntheticsGlobalVariableTOTPParameters) o; return Objects.equals(this.digits, syntheticsGlobalVariableTotpParameters.digits) && Objects.equals( - this.refreshInterval, syntheticsGlobalVariableTotpParameters.refreshInterval); + this.refreshInterval, syntheticsGlobalVariableTotpParameters.refreshInterval) + && Objects.equals( + this.additionalProperties, syntheticsGlobalVariableTotpParameters.additionalProperties); } @Override public int hashCode() { - return Objects.hash(digits, refreshInterval); + return Objects.hash(digits, refreshInterval, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class SyntheticsGlobalVariableTOTPParameters {\n"); sb.append(" digits: ").append(toIndentedString(digits)).append("\n"); sb.append(" refreshInterval: ").append(toIndentedString(refreshInterval)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableValue.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableValue.java index 80f5708cdd5..4767cd8e01a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableValue.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsGlobalVariableValue.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Value of the global variable. */ @@ -96,6 +100,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsGlobalVariableValue + */ + @JsonAnySetter + public SyntheticsGlobalVariableValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsGlobalVariableValue object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,14 @@ public boolean equals(Object o) { SyntheticsGlobalVariableValue syntheticsGlobalVariableValue = (SyntheticsGlobalVariableValue) o; return Objects.equals(this.options, syntheticsGlobalVariableValue.options) && Objects.equals(this.secure, syntheticsGlobalVariableValue.secure) - && Objects.equals(this.value, syntheticsGlobalVariableValue.value); + && Objects.equals(this.value, syntheticsGlobalVariableValue.value) + && Objects.equals( + this.additionalProperties, syntheticsGlobalVariableValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(options, secure, value); + return Objects.hash(options, secure, value, additionalProperties); } @Override @@ -123,6 +175,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" secure: ").append(toIndentedString(secure)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsListGlobalVariablesResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsListGlobalVariablesResponse.java index ae539ed2f1d..2f62fa48d90 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsListGlobalVariablesResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsListGlobalVariablesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing an array of Synthetic global variables. */ @@ -57,6 +61,52 @@ public void setVariables(List variables) { this.variables = variables; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsListGlobalVariablesResponse + */ + @JsonAnySetter + public SyntheticsListGlobalVariablesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsListGlobalVariablesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { } SyntheticsListGlobalVariablesResponse syntheticsListGlobalVariablesResponse = (SyntheticsListGlobalVariablesResponse) o; - return Objects.equals(this.variables, syntheticsListGlobalVariablesResponse.variables); + return Objects.equals(this.variables, syntheticsListGlobalVariablesResponse.variables) + && Objects.equals( + this.additionalProperties, syntheticsListGlobalVariablesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(variables); + return Objects.hash(variables, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsListGlobalVariablesResponse {\n"); sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java index 844a3a94c95..bd48394435d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing an array of Synthetic tests configuration. */ @@ -56,6 +60,52 @@ public void setTests(List tests) { this.tests = tests; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsListTestsResponse + */ + @JsonAnySetter + public SyntheticsListTestsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsListTestsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } SyntheticsListTestsResponse syntheticsListTestsResponse = (SyntheticsListTestsResponse) o; - return Objects.equals(this.tests, syntheticsListTestsResponse.tests); + return Objects.equals(this.tests, syntheticsListTestsResponse.tests) + && Objects.equals( + this.additionalProperties, syntheticsListTestsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tests); + return Objects.hash(tests, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsListTestsResponse {\n"); sb.append(" tests: ").append(toIndentedString(tests)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocation.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocation.java index 16a7ba7af31..7dfa9b8c538 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocation.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocation.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Synthetic location that can be used when creating or editing a test. */ @@ -66,6 +70,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsLocation + */ + @JsonAnySetter + public SyntheticsLocation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsLocation object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,13 @@ public boolean equals(Object o) { } SyntheticsLocation syntheticsLocation = (SyntheticsLocation) o; return Objects.equals(this.id, syntheticsLocation.id) - && Objects.equals(this.name, syntheticsLocation.name); + && Objects.equals(this.name, syntheticsLocation.name) + && Objects.equals(this.additionalProperties, syntheticsLocation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name); + return Objects.hash(id, name, additionalProperties); } @Override @@ -91,6 +142,9 @@ public String toString() { sb.append("class SyntheticsLocation {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocations.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocations.java index 051bba8cb8d..957f93c35d4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocations.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsLocations.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List of Synthetic locations. */ @@ -56,6 +60,52 @@ public void setLocations(List locations) { this.locations = locations; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsLocations + */ + @JsonAnySetter + public SyntheticsLocations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsLocations object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } SyntheticsLocations syntheticsLocations = (SyntheticsLocations) o; - return Objects.equals(this.locations, syntheticsLocations.locations); + return Objects.equals(this.locations, syntheticsLocations.locations) + && Objects.equals(this.additionalProperties, syntheticsLocations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(locations); + return Objects.hash(locations, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsLocations {\n"); sb.append(" locations: ").append(toIndentedString(locations)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsParsingOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsParsingOptions.java index ab91d8658dc..7cf926da932 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsParsingOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsParsingOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Parsing options for variables to extract. */ @@ -149,6 +153,52 @@ public void setType(SyntheticsGlobalVariableParseTestOptionsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsParsingOptions + */ + @JsonAnySetter + public SyntheticsParsingOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsParsingOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -163,12 +213,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, syntheticsParsingOptions.name) && Objects.equals(this.parser, syntheticsParsingOptions.parser) && Objects.equals(this.secure, syntheticsParsingOptions.secure) - && Objects.equals(this.type, syntheticsParsingOptions.type); + && Objects.equals(this.type, syntheticsParsingOptions.type) + && Objects.equals(this.additionalProperties, syntheticsParsingOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(field, name, parser, secure, type); + return Objects.hash(field, name, parser, secure, type, additionalProperties); } @Override @@ -180,6 +231,9 @@ public String toString() { sb.append(" parser: ").append(toIndentedString(parser)).append("\n"); sb.append(" secure: ").append(toIndentedString(secure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocation.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocation.java index 766de16a81e..5b3c5fb8b94 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocation.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocation.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing information about the private location to create. */ @@ -170,6 +174,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocation + */ + @JsonAnySetter + public SyntheticsPrivateLocation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsPrivateLocation object is equal to o. */ @Override public boolean equals(Object o) { @@ -185,12 +235,14 @@ public boolean equals(Object o) { && Objects.equals(this.metadata, syntheticsPrivateLocation.metadata) && Objects.equals(this.name, syntheticsPrivateLocation.name) && Objects.equals(this.secrets, syntheticsPrivateLocation.secrets) - && Objects.equals(this.tags, syntheticsPrivateLocation.tags); + && Objects.equals(this.tags, syntheticsPrivateLocation.tags) + && Objects.equals( + this.additionalProperties, syntheticsPrivateLocation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, id, metadata, name, secrets, tags); + return Objects.hash(description, id, metadata, name, secrets, tags, additionalProperties); } @Override @@ -203,6 +255,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" secrets: ").append(toIndentedString(secrets)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponse.java index 65051d77f5b..a6f6245f080 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -103,6 +107,52 @@ public void setResultEncryption( this.resultEncryption = resultEncryption; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocationCreationResponse + */ + @JsonAnySetter + public SyntheticsPrivateLocationCreationResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsPrivateLocationCreationResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -118,12 +168,15 @@ public boolean equals(Object o) { && Objects.equals( this.privateLocation, syntheticsPrivateLocationCreationResponse.privateLocation) && Objects.equals( - this.resultEncryption, syntheticsPrivateLocationCreationResponse.resultEncryption); + this.resultEncryption, syntheticsPrivateLocationCreationResponse.resultEncryption) + && Objects.equals( + this.additionalProperties, + syntheticsPrivateLocationCreationResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(config, privateLocation, resultEncryption); + return Objects.hash(config, privateLocation, resultEncryption, additionalProperties); } @Override @@ -133,6 +186,9 @@ public String toString() { sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append(" privateLocation: ").append(toIndentedString(privateLocation)).append("\n"); sb.append(" resultEncryption: ").append(toIndentedString(resultEncryption)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponseResultEncryption.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponseResultEncryption.java index b8e9f9a9d43..1ef15923305 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponseResultEncryption.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationCreationResponseResultEncryption.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Public key for the result encryption. */ @@ -69,6 +73,53 @@ public void setKey(String key) { this.key = key; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocationCreationResponseResultEncryption + */ + @JsonAnySetter + public SyntheticsPrivateLocationCreationResponseResultEncryption putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** * Return true if this SyntheticsPrivateLocationCreationResponseResultEncryption object is equal * to o. @@ -85,12 +136,15 @@ public boolean equals(Object o) { syntheticsPrivateLocationCreationResponseResultEncryption = (SyntheticsPrivateLocationCreationResponseResultEncryption) o; return Objects.equals(this.id, syntheticsPrivateLocationCreationResponseResultEncryption.id) - && Objects.equals(this.key, syntheticsPrivateLocationCreationResponseResultEncryption.key); + && Objects.equals(this.key, syntheticsPrivateLocationCreationResponseResultEncryption.key) + && Objects.equals( + this.additionalProperties, + syntheticsPrivateLocationCreationResponseResultEncryption.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, key); + return Objects.hash(id, key, additionalProperties); } @Override @@ -99,6 +153,9 @@ public String toString() { sb.append("class SyntheticsPrivateLocationCreationResponseResultEncryption {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationMetadata.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationMetadata.java index 8228df2619e..1d832f67c25 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing metadata about the private location. */ @@ -53,6 +57,52 @@ public void setRestrictedRoles(List restrictedRoles) { this.restrictedRoles = restrictedRoles; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocationMetadata + */ + @JsonAnySetter + public SyntheticsPrivateLocationMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsPrivateLocationMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } SyntheticsPrivateLocationMetadata syntheticsPrivateLocationMetadata = (SyntheticsPrivateLocationMetadata) o; - return Objects.equals(this.restrictedRoles, syntheticsPrivateLocationMetadata.restrictedRoles); + return Objects.equals(this.restrictedRoles, syntheticsPrivateLocationMetadata.restrictedRoles) + && Objects.equals( + this.additionalProperties, syntheticsPrivateLocationMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(restrictedRoles); + return Objects.hash(restrictedRoles, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsPrivateLocationMetadata {\n"); sb.append(" restrictedRoles: ").append(toIndentedString(restrictedRoles)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecrets.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecrets.java index 04e06a7d4c9..7bc326f3a74 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecrets.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecrets.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -77,6 +81,52 @@ public void setConfigDecryption( this.configDecryption = configDecryption; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocationSecrets + */ + @JsonAnySetter + public SyntheticsPrivateLocationSecrets putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsPrivateLocationSecrets object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { SyntheticsPrivateLocationSecrets syntheticsPrivateLocationSecrets = (SyntheticsPrivateLocationSecrets) o; return Objects.equals(this.authentication, syntheticsPrivateLocationSecrets.authentication) - && Objects.equals(this.configDecryption, syntheticsPrivateLocationSecrets.configDecryption); + && Objects.equals(this.configDecryption, syntheticsPrivateLocationSecrets.configDecryption) + && Objects.equals( + this.additionalProperties, syntheticsPrivateLocationSecrets.additionalProperties); } @Override public int hashCode() { - return Objects.hash(authentication, configDecryption); + return Objects.hash(authentication, configDecryption, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class SyntheticsPrivateLocationSecrets {\n"); sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); sb.append(" configDecryption: ").append(toIndentedString(configDecryption)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsAuthentication.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsAuthentication.java index f8617ba093b..e4e00988083 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsAuthentication.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsAuthentication.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Authentication part of the secrets. */ @@ -51,6 +55,53 @@ public String getKey() { return key; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocationSecretsAuthentication + */ + @JsonAnySetter + public SyntheticsPrivateLocationSecretsAuthentication putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsPrivateLocationSecretsAuthentication object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +114,15 @@ public boolean equals(Object o) { SyntheticsPrivateLocationSecretsAuthentication syntheticsPrivateLocationSecretsAuthentication = (SyntheticsPrivateLocationSecretsAuthentication) o; return Objects.equals(this.id, syntheticsPrivateLocationSecretsAuthentication.id) - && Objects.equals(this.key, syntheticsPrivateLocationSecretsAuthentication.key); + && Objects.equals(this.key, syntheticsPrivateLocationSecretsAuthentication.key) + && Objects.equals( + this.additionalProperties, + syntheticsPrivateLocationSecretsAuthentication.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, key); + return Objects.hash(id, key, additionalProperties); } @Override @@ -77,6 +131,9 @@ public String toString() { sb.append("class SyntheticsPrivateLocationSecretsAuthentication {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsConfigDecryption.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsConfigDecryption.java index 5380440184c..edead4c7c07 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsConfigDecryption.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsPrivateLocationSecretsConfigDecryption.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Private key for the private location. */ @@ -33,6 +37,53 @@ public String getKey() { return key; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsPrivateLocationSecretsConfigDecryption + */ + @JsonAnySetter + public SyntheticsPrivateLocationSecretsConfigDecryption putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsPrivateLocationSecretsConfigDecryption object is equal to o. */ @Override public boolean equals(Object o) { @@ -45,12 +96,15 @@ public boolean equals(Object o) { SyntheticsPrivateLocationSecretsConfigDecryption syntheticsPrivateLocationSecretsConfigDecryption = (SyntheticsPrivateLocationSecretsConfigDecryption) o; - return Objects.equals(this.key, syntheticsPrivateLocationSecretsConfigDecryption.key); + return Objects.equals(this.key, syntheticsPrivateLocationSecretsConfigDecryption.key) + && Objects.equals( + this.additionalProperties, + syntheticsPrivateLocationSecretsConfigDecryption.additionalProperties); } @Override public int hashCode() { - return Objects.hash(key); + return Objects.hash(key, additionalProperties); } @Override @@ -58,6 +112,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsPrivateLocationSecretsConfigDecryption {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificate.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificate.java index c610c687194..d9bf3ae152e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificate.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificate.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing the SSL certificate used for a Synthetic test. */ @@ -332,6 +336,52 @@ public void setValidTo(OffsetDateTime validTo) { this.validTo = validTo; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsSSLCertificate + */ + @JsonAnySetter + public SyntheticsSSLCertificate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsSSLCertificate object is equal to o. */ @Override public boolean equals(Object o) { @@ -353,7 +403,8 @@ public boolean equals(Object o) { && Objects.equals(this.serialNumber, syntheticsSslCertificate.serialNumber) && Objects.equals(this.subject, syntheticsSslCertificate.subject) && Objects.equals(this.validFrom, syntheticsSslCertificate.validFrom) - && Objects.equals(this.validTo, syntheticsSslCertificate.validTo); + && Objects.equals(this.validTo, syntheticsSslCertificate.validTo) + && Objects.equals(this.additionalProperties, syntheticsSslCertificate.additionalProperties); } @Override @@ -370,7 +421,8 @@ public int hashCode() { serialNumber, subject, validFrom, - validTo); + validTo, + additionalProperties); } @Override @@ -389,6 +441,9 @@ public String toString() { sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); sb.append(" validFrom: ").append(toIndentedString(validFrom)).append("\n"); sb.append(" validTo: ").append(toIndentedString(validTo)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateIssuer.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateIssuer.java index 1484cda18d5..c933cc34810 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateIssuer.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateIssuer.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the issuer of a SSL certificate. */ @@ -169,6 +173,52 @@ public void setST(String ST) { this.ST = ST; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsSSLCertificateIssuer + */ + @JsonAnySetter + public SyntheticsSSLCertificateIssuer putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsSSLCertificateIssuer object is equal to o. */ @Override public boolean equals(Object o) { @@ -185,12 +235,14 @@ public boolean equals(Object o) { && Objects.equals(this.L, syntheticsSslCertificateIssuer.L) && Objects.equals(this.O, syntheticsSslCertificateIssuer.O) && Objects.equals(this.OU, syntheticsSslCertificateIssuer.OU) - && Objects.equals(this.ST, syntheticsSslCertificateIssuer.ST); + && Objects.equals(this.ST, syntheticsSslCertificateIssuer.ST) + && Objects.equals( + this.additionalProperties, syntheticsSslCertificateIssuer.additionalProperties); } @Override public int hashCode() { - return Objects.hash(C, CN, L, O, OU, ST); + return Objects.hash(C, CN, L, O, OU, ST, additionalProperties); } @Override @@ -203,6 +255,9 @@ public String toString() { sb.append(" O: ").append(toIndentedString(O)).append("\n"); sb.append(" OU: ").append(toIndentedString(OU)).append("\n"); sb.append(" ST: ").append(toIndentedString(ST)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateSubject.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateSubject.java index 2179b1a570c..591508a05f8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateSubject.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsSSLCertificateSubject.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the SSL certificate used for the test. */ @@ -194,6 +198,52 @@ public void setAltName(String altName) { this.altName = altName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsSSLCertificateSubject + */ + @JsonAnySetter + public SyntheticsSSLCertificateSubject putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsSSLCertificateSubject object is equal to o. */ @Override public boolean equals(Object o) { @@ -211,12 +261,14 @@ public boolean equals(Object o) { && Objects.equals(this.O, syntheticsSslCertificateSubject.O) && Objects.equals(this.OU, syntheticsSslCertificateSubject.OU) && Objects.equals(this.ST, syntheticsSslCertificateSubject.ST) - && Objects.equals(this.altName, syntheticsSslCertificateSubject.altName); + && Objects.equals(this.altName, syntheticsSslCertificateSubject.altName) + && Objects.equals( + this.additionalProperties, syntheticsSslCertificateSubject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(C, CN, L, O, OU, ST, altName); + return Objects.hash(C, CN, L, O, OU, ST, altName, additionalProperties); } @Override @@ -230,6 +282,9 @@ public String toString() { sb.append(" OU: ").append(toIndentedString(OU)).append("\n"); sb.append(" ST: ").append(toIndentedString(ST)).append("\n"); sb.append(" altName: ").append(toIndentedString(altName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java index cd2f38912d2..56f21f7576a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The steps used in a Synthetic browser test. */ @@ -199,6 +203,52 @@ public void setType(SyntheticsStepType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsStep + */ + @JsonAnySetter + public SyntheticsStep putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsStep object is equal to o. */ @Override public boolean equals(Object o) { @@ -215,12 +265,14 @@ public boolean equals(Object o) { && Objects.equals(this.noScreenshot, syntheticsStep.noScreenshot) && Objects.equals(this.params, syntheticsStep.params) && Objects.equals(this.timeout, syntheticsStep.timeout) - && Objects.equals(this.type, syntheticsStep.type); + && Objects.equals(this.type, syntheticsStep.type) + && Objects.equals(this.additionalProperties, syntheticsStep.additionalProperties); } @Override public int hashCode() { - return Objects.hash(allowFailure, isCritical, name, noScreenshot, params, timeout, type); + return Objects.hash( + allowFailure, isCritical, name, noScreenshot, params, timeout, type, additionalProperties); } @Override @@ -234,6 +286,9 @@ public String toString() { sb.append(" params: ").append(toIndentedString(params)).append("\n"); sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetail.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetail.java index 7b55f603aae..cb207fc47bf 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetail.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetail.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing a step for a Synthetic test. */ @@ -509,6 +513,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsStepDetail + */ + @JsonAnySetter + public SyntheticsStepDetail putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsStepDetail object is equal to o. */ @Override public boolean equals(Object o) { @@ -535,7 +585,8 @@ public boolean equals(Object o) { && Objects.equals(this.url, syntheticsStepDetail.url) && Objects.equals(this.value, syntheticsStepDetail.value) && Objects.equals(this.vitalsMetrics, syntheticsStepDetail.vitalsMetrics) - && Objects.equals(this.warnings, syntheticsStepDetail.warnings); + && Objects.equals(this.warnings, syntheticsStepDetail.warnings) + && Objects.equals(this.additionalProperties, syntheticsStepDetail.additionalProperties); } @Override @@ -557,7 +608,8 @@ public int hashCode() { url, value, vitalsMetrics, - warnings); + warnings, + additionalProperties); } @Override @@ -583,6 +635,9 @@ public String toString() { sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" vitalsMetrics: ").append(toIndentedString(vitalsMetrics)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetailWarning.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetailWarning.java index 39d29d7b6c9..36f04c2b6f5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetailWarning.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetailWarning.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object collecting warnings for a given step. */ @@ -83,6 +87,52 @@ public void setType(SyntheticsWarningType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsStepDetailWarning + */ + @JsonAnySetter + public SyntheticsStepDetailWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsStepDetailWarning object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,14 @@ public boolean equals(Object o) { } SyntheticsStepDetailWarning syntheticsStepDetailWarning = (SyntheticsStepDetailWarning) o; return Objects.equals(this.message, syntheticsStepDetailWarning.message) - && Objects.equals(this.type, syntheticsStepDetailWarning.type); + && Objects.equals(this.type, syntheticsStepDetailWarning.type) + && Objects.equals( + this.additionalProperties, syntheticsStepDetailWarning.additionalProperties); } @Override public int hashCode() { - return Objects.hash(message, type); + return Objects.hash(message, type, additionalProperties); } @Override @@ -108,6 +160,9 @@ public String toString() { sb.append("class SyntheticsStepDetailWarning {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestCiOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestCiOptions.java index e56659ae309..d6e7c3b62c2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestCiOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestCiOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** CI/CD options for a Synthetic test. */ @@ -46,6 +50,52 @@ public void setExecutionRule(SyntheticsTestExecutionRule executionRule) { this.executionRule = executionRule; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestCiOptions + */ + @JsonAnySetter + public SyntheticsTestCiOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestCiOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -56,12 +106,13 @@ public boolean equals(Object o) { return false; } SyntheticsTestCiOptions syntheticsTestCiOptions = (SyntheticsTestCiOptions) o; - return Objects.equals(this.executionRule, syntheticsTestCiOptions.executionRule); + return Objects.equals(this.executionRule, syntheticsTestCiOptions.executionRule) + && Objects.equals(this.additionalProperties, syntheticsTestCiOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(executionRule); + return Objects.hash(executionRule, additionalProperties); } @Override @@ -69,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsTestCiOptions {\n"); sb.append(" executionRule: ").append(toIndentedString(executionRule)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestConfig.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestConfig.java index 50bc1823362..641af2fc686 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestConfig.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestConfig.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Configuration object for a Synthetic test. */ @@ -158,6 +162,52 @@ public void setVariables(List variables) { this.variables = variables; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestConfig + */ + @JsonAnySetter + public SyntheticsTestConfig putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestConfig object is equal to o. */ @Override public boolean equals(Object o) { @@ -171,12 +221,13 @@ public boolean equals(Object o) { return Objects.equals(this.assertions, syntheticsTestConfig.assertions) && Objects.equals(this.configVariables, syntheticsTestConfig.configVariables) && Objects.equals(this.request, syntheticsTestConfig.request) - && Objects.equals(this.variables, syntheticsTestConfig.variables); + && Objects.equals(this.variables, syntheticsTestConfig.variables) + && Objects.equals(this.additionalProperties, syntheticsTestConfig.additionalProperties); } @Override public int hashCode() { - return Objects.hash(assertions, configVariables, request, variables); + return Objects.hash(assertions, configVariables, request, variables, additionalProperties); } @Override @@ -187,6 +238,9 @@ public String toString() { sb.append(" configVariables: ").append(toIndentedString(configVariables)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java index ab5e3775530..6442b3c3cb3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing details about your Synthetic test. */ @@ -364,6 +368,52 @@ public void setType(SyntheticsTestDetailsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestDetails + */ + @JsonAnySetter + public SyntheticsTestDetails putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestDetails object is equal to o. */ @Override public boolean equals(Object o) { @@ -386,14 +436,27 @@ public boolean equals(Object o) { && Objects.equals(this.steps, syntheticsTestDetails.steps) && Objects.equals(this.subtype, syntheticsTestDetails.subtype) && Objects.equals(this.tags, syntheticsTestDetails.tags) - && Objects.equals(this.type, syntheticsTestDetails.type); + && Objects.equals(this.type, syntheticsTestDetails.type) + && Objects.equals(this.additionalProperties, syntheticsTestDetails.additionalProperties); } @Override public int hashCode() { return Objects.hash( - config, creator, locations, message, monitorId, name, options, publicId, status, steps, - subtype, tags, type); + config, + creator, + locations, + message, + monitorId, + name, + options, + publicId, + status, + steps, + subtype, + tags, + type, + additionalProperties); } @Override @@ -413,6 +476,9 @@ public String toString() { sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptions.java index c7bd250612d..8c5b8e89442 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptions.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing the extra options for a Synthetic test. */ @@ -611,6 +615,52 @@ public void setTickEvery(Long tickEvery) { this.tickEvery = tickEvery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestOptions + */ + @JsonAnySetter + public SyntheticsTestOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -645,7 +695,8 @@ public boolean equals(Object o) { && Objects.equals(this.retry, syntheticsTestOptions.retry) && Objects.equals(this.rumSettings, syntheticsTestOptions.rumSettings) && Objects.equals(this.scheduling, syntheticsTestOptions.scheduling) - && Objects.equals(this.tickEvery, syntheticsTestOptions.tickEvery); + && Objects.equals(this.tickEvery, syntheticsTestOptions.tickEvery) + && Objects.equals(this.additionalProperties, syntheticsTestOptions.additionalProperties); } @Override @@ -672,7 +723,8 @@ public int hashCode() { retry, rumSettings, scheduling, - tickEvery); + tickEvery, + additionalProperties); } @Override @@ -707,6 +759,9 @@ public String toString() { sb.append(" rumSettings: ").append(toIndentedString(rumSettings)).append("\n"); sb.append(" scheduling: ").append(toIndentedString(scheduling)).append("\n"); sb.append(" tickEvery: ").append(toIndentedString(tickEvery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsMonitorOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsMonitorOptions.java index 986d8172357..2d87205908d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsMonitorOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsMonitorOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -45,6 +49,52 @@ public void setRenotifyInterval(Long renotifyInterval) { this.renotifyInterval = renotifyInterval; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestOptionsMonitorOptions + */ + @JsonAnySetter + public SyntheticsTestOptionsMonitorOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestOptionsMonitorOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -57,12 +107,14 @@ public boolean equals(Object o) { SyntheticsTestOptionsMonitorOptions syntheticsTestOptionsMonitorOptions = (SyntheticsTestOptionsMonitorOptions) o; return Objects.equals( - this.renotifyInterval, syntheticsTestOptionsMonitorOptions.renotifyInterval); + this.renotifyInterval, syntheticsTestOptionsMonitorOptions.renotifyInterval) + && Objects.equals( + this.additionalProperties, syntheticsTestOptionsMonitorOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(renotifyInterval); + return Objects.hash(renotifyInterval, additionalProperties); } @Override @@ -70,6 +122,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsTestOptionsMonitorOptions {\n"); sb.append(" renotifyInterval: ").append(toIndentedString(renotifyInterval)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsRetry.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsRetry.java index 3bce994ec12..c9df3fa8837 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsRetry.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsRetry.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing the retry strategy to apply to a Synthetic test. */ @@ -69,6 +73,52 @@ public void setInterval(Double interval) { this.interval = interval; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestOptionsRetry + */ + @JsonAnySetter + public SyntheticsTestOptionsRetry putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestOptionsRetry object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } SyntheticsTestOptionsRetry syntheticsTestOptionsRetry = (SyntheticsTestOptionsRetry) o; return Objects.equals(this.count, syntheticsTestOptionsRetry.count) - && Objects.equals(this.interval, syntheticsTestOptionsRetry.interval); + && Objects.equals(this.interval, syntheticsTestOptionsRetry.interval) + && Objects.equals( + this.additionalProperties, syntheticsTestOptionsRetry.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, interval); + return Objects.hash(count, interval, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class SyntheticsTestOptionsRetry {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsScheduling.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsScheduling.java index 71153a908e8..40d56c6a8e0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsScheduling.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsScheduling.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing timeframes and timezone used for advanced scheduling. */ @@ -85,6 +89,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestOptionsScheduling + */ + @JsonAnySetter + public SyntheticsTestOptionsScheduling putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestOptionsScheduling object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,14 @@ public boolean equals(Object o) { SyntheticsTestOptionsScheduling syntheticsTestOptionsScheduling = (SyntheticsTestOptionsScheduling) o; return Objects.equals(this.timeframes, syntheticsTestOptionsScheduling.timeframes) - && Objects.equals(this.timezone, syntheticsTestOptionsScheduling.timezone); + && Objects.equals(this.timezone, syntheticsTestOptionsScheduling.timezone) + && Objects.equals( + this.additionalProperties, syntheticsTestOptionsScheduling.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timeframes, timezone); + return Objects.hash(timeframes, timezone, additionalProperties); } @Override @@ -111,6 +163,9 @@ public String toString() { sb.append("class SyntheticsTestOptionsScheduling {\n"); sb.append(" timeframes: ").append(toIndentedString(timeframes)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsSchedulingTimeframe.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsSchedulingTimeframe.java index ae66318928f..e8427aa5225 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsSchedulingTimeframe.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestOptionsSchedulingTimeframe.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing a timeframe. */ @@ -94,6 +98,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestOptionsSchedulingTimeframe + */ + @JsonAnySetter + public SyntheticsTestOptionsSchedulingTimeframe putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestOptionsSchedulingTimeframe object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,15 @@ public boolean equals(Object o) { (SyntheticsTestOptionsSchedulingTimeframe) o; return Objects.equals(this.day, syntheticsTestOptionsSchedulingTimeframe.day) && Objects.equals(this.from, syntheticsTestOptionsSchedulingTimeframe.from) - && Objects.equals(this.to, syntheticsTestOptionsSchedulingTimeframe.to); + && Objects.equals(this.to, syntheticsTestOptionsSchedulingTimeframe.to) + && Objects.equals( + this.additionalProperties, + syntheticsTestOptionsSchedulingTimeframe.additionalProperties); } @Override public int hashCode() { - return Objects.hash(day, from, to); + return Objects.hash(day, from, to, additionalProperties); } @Override @@ -122,6 +175,9 @@ public String toString() { sb.append(" day: ").append(toIndentedString(day)).append("\n"); sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequest.java index c2893b0e676..b5ea1b33690 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequest.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -714,6 +716,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestRequest + */ + @JsonAnySetter + public SyntheticsTestRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -750,7 +798,8 @@ public boolean equals(Object o) { && Objects.equals(this.service, syntheticsTestRequest.service) && Objects.equals(this.shouldTrackHops, syntheticsTestRequest.shouldTrackHops) && Objects.equals(this.timeout, syntheticsTestRequest.timeout) - && Objects.equals(this.url, syntheticsTestRequest.url); + && Objects.equals(this.url, syntheticsTestRequest.url) + && Objects.equals(this.additionalProperties, syntheticsTestRequest.additionalProperties); } @Override @@ -781,7 +830,8 @@ public int hashCode() { service, shouldTrackHops, timeout, - url); + url, + additionalProperties); } @Override @@ -818,6 +868,9 @@ public String toString() { sb.append(" shouldTrackHops: ").append(toIndentedString(shouldTrackHops)).append("\n"); sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificate.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificate.java index 97a822667d7..0798e251b9a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificate.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificate.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Client certificate to use when performing the test request. */ @@ -71,6 +75,52 @@ public void setKey(SyntheticsTestRequestCertificateItem key) { this.key = key; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestRequestCertificate + */ + @JsonAnySetter + public SyntheticsTestRequestCertificate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestRequestCertificate object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { SyntheticsTestRequestCertificate syntheticsTestRequestCertificate = (SyntheticsTestRequestCertificate) o; return Objects.equals(this.cert, syntheticsTestRequestCertificate.cert) - && Objects.equals(this.key, syntheticsTestRequestCertificate.key); + && Objects.equals(this.key, syntheticsTestRequestCertificate.key) + && Objects.equals( + this.additionalProperties, syntheticsTestRequestCertificate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cert, key); + return Objects.hash(cert, key, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class SyntheticsTestRequestCertificate {\n"); sb.append(" cert: ").append(toIndentedString(cert)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificateItem.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificateItem.java index 4797570f6af..9857db30481 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificateItem.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestCertificateItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Define a request certificate. */ @@ -94,6 +98,52 @@ public void setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestRequestCertificateItem + */ + @JsonAnySetter + public SyntheticsTestRequestCertificateItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestRequestCertificateItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,14 @@ public boolean equals(Object o) { (SyntheticsTestRequestCertificateItem) o; return Objects.equals(this.content, syntheticsTestRequestCertificateItem.content) && Objects.equals(this.filename, syntheticsTestRequestCertificateItem.filename) - && Objects.equals(this.updatedAt, syntheticsTestRequestCertificateItem.updatedAt); + && Objects.equals(this.updatedAt, syntheticsTestRequestCertificateItem.updatedAt) + && Objects.equals( + this.additionalProperties, syntheticsTestRequestCertificateItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(content, filename, updatedAt); + return Objects.hash(content, filename, updatedAt, additionalProperties); } @Override @@ -122,6 +174,9 @@ public String toString() { sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestProxy.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestProxy.java index 30e73a0cd47..8841eeb341a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestProxy.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestRequestProxy.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -87,6 +89,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestRequestProxy + */ + @JsonAnySetter + public SyntheticsTestRequestProxy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTestRequestProxy object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +146,14 @@ public boolean equals(Object o) { } SyntheticsTestRequestProxy syntheticsTestRequestProxy = (SyntheticsTestRequestProxy) o; return Objects.equals(this.headers, syntheticsTestRequestProxy.headers) - && Objects.equals(this.url, syntheticsTestRequestProxy.url); + && Objects.equals(this.url, syntheticsTestRequestProxy.url) + && Objects.equals( + this.additionalProperties, syntheticsTestRequestProxy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(headers, url); + return Objects.hash(headers, url, additionalProperties); } @Override @@ -112,6 +162,9 @@ public String toString() { sb.append("class SyntheticsTestRequestProxy {\n"); sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTiming.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTiming.java index ac4389b0bbe..12995b1c512 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTiming.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTiming.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -248,6 +252,52 @@ public void setWait(Double wait) { this.wait = wait; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTiming + */ + @JsonAnySetter + public SyntheticsTiming putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTiming object is equal to o. */ @Override public boolean equals(Object o) { @@ -266,12 +316,14 @@ public boolean equals(Object o) { && Objects.equals(this.ssl, syntheticsTiming.ssl) && Objects.equals(this.tcp, syntheticsTiming.tcp) && Objects.equals(this.total, syntheticsTiming.total) - && Objects.equals(this.wait, syntheticsTiming.wait); + && Objects.equals(this.wait, syntheticsTiming.wait) + && Objects.equals(this.additionalProperties, syntheticsTiming.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dns, download, firstByte, handshake, redirect, ssl, tcp, total, wait); + return Objects.hash( + dns, download, firstByte, handshake, redirect, ssl, tcp, total, wait, additionalProperties); } @Override @@ -287,6 +339,9 @@ public String toString() { sb.append(" tcp: ").append(toIndentedString(tcp)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); sb.append(" wait: ").append(toIndentedString(wait)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerBody.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerBody.java index 1656e96208c..a3a1775ebc1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerBody.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object describing the Synthetic tests to trigger. */ @@ -62,6 +66,52 @@ public void setTests(List tests) { this.tests = tests; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTriggerBody + */ + @JsonAnySetter + public SyntheticsTriggerBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTriggerBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,13 @@ public boolean equals(Object o) { return false; } SyntheticsTriggerBody syntheticsTriggerBody = (SyntheticsTriggerBody) o; - return Objects.equals(this.tests, syntheticsTriggerBody.tests); + return Objects.equals(this.tests, syntheticsTriggerBody.tests) + && Objects.equals(this.additionalProperties, syntheticsTriggerBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tests); + return Objects.hash(tests, additionalProperties); } @Override @@ -85,6 +136,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsTriggerBody {\n"); sb.append(" tests: ").append(toIndentedString(tests)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestLocation.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestLocation.java index 45c5954e410..4d6a50a2ca1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestLocation.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestLocation.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Synthetic location. */ @@ -69,6 +73,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTriggerCITestLocation + */ + @JsonAnySetter + public SyntheticsTriggerCITestLocation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTriggerCITestLocation object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { SyntheticsTriggerCITestLocation syntheticsTriggerCiTestLocation = (SyntheticsTriggerCITestLocation) o; return Objects.equals(this.id, syntheticsTriggerCiTestLocation.id) - && Objects.equals(this.name, syntheticsTriggerCiTestLocation.name); + && Objects.equals(this.name, syntheticsTriggerCiTestLocation.name) + && Objects.equals( + this.additionalProperties, syntheticsTriggerCiTestLocation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name); + return Objects.hash(id, name, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class SyntheticsTriggerCITestLocation {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestRunResult.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestRunResult.java index 344574e97c0..16cf5a8670a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestRunResult.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestRunResult.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Information about a single test run. */ @@ -123,6 +127,52 @@ public void setResultId(String resultId) { this.resultId = resultId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTriggerCITestRunResult + */ + @JsonAnySetter + public SyntheticsTriggerCITestRunResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTriggerCITestRunResult object is equal to o. */ @Override public boolean equals(Object o) { @@ -137,12 +187,14 @@ public boolean equals(Object o) { return Objects.equals(this.device, syntheticsTriggerCiTestRunResult.device) && Objects.equals(this.location, syntheticsTriggerCiTestRunResult.location) && Objects.equals(this.publicId, syntheticsTriggerCiTestRunResult.publicId) - && Objects.equals(this.resultId, syntheticsTriggerCiTestRunResult.resultId); + && Objects.equals(this.resultId, syntheticsTriggerCiTestRunResult.resultId) + && Objects.equals( + this.additionalProperties, syntheticsTriggerCiTestRunResult.additionalProperties); } @Override public int hashCode() { - return Objects.hash(device, location, publicId, resultId); + return Objects.hash(device, location, publicId, resultId, additionalProperties); } @Override @@ -153,6 +205,9 @@ public String toString() { sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" resultId: ").append(toIndentedString(resultId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestsResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestsResponse.java index a35005e290c..2d769fdf9b6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerCITestsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -167,6 +171,52 @@ public void setTriggeredCheckIds(List triggeredCheckIds) { this.triggeredCheckIds = triggeredCheckIds; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTriggerCITestsResponse + */ + @JsonAnySetter + public SyntheticsTriggerCITestsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTriggerCITestsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -182,12 +232,14 @@ public boolean equals(Object o) { && Objects.equals(this.locations, syntheticsTriggerCiTestsResponse.locations) && Objects.equals(this.results, syntheticsTriggerCiTestsResponse.results) && Objects.equals( - this.triggeredCheckIds, syntheticsTriggerCiTestsResponse.triggeredCheckIds); + this.triggeredCheckIds, syntheticsTriggerCiTestsResponse.triggeredCheckIds) + && Objects.equals( + this.additionalProperties, syntheticsTriggerCiTestsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(batchId, locations, results, triggeredCheckIds); + return Objects.hash(batchId, locations, results, triggeredCheckIds, additionalProperties); } @Override @@ -198,6 +250,9 @@ public String toString() { sb.append(" locations: ").append(toIndentedString(locations)).append("\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); sb.append(" triggeredCheckIds: ").append(toIndentedString(triggeredCheckIds)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerTest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerTest.java index fc08617533d..7c127341c99 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerTest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTriggerTest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Test configuration for Synthetics */ @@ -78,6 +82,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTriggerTest + */ + @JsonAnySetter + public SyntheticsTriggerTest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsTriggerTest object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { } SyntheticsTriggerTest syntheticsTriggerTest = (SyntheticsTriggerTest) o; return Objects.equals(this.metadata, syntheticsTriggerTest.metadata) - && Objects.equals(this.publicId, syntheticsTriggerTest.publicId); + && Objects.equals(this.publicId, syntheticsTriggerTest.publicId) + && Objects.equals(this.additionalProperties, syntheticsTriggerTest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metadata, publicId); + return Objects.hash(metadata, publicId, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append("class SyntheticsTriggerTest {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsUpdateTestPauseStatusPayload.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsUpdateTestPauseStatusPayload.java index ca0fbc6e5b8..54d4991e71e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsUpdateTestPauseStatusPayload.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsUpdateTestPauseStatusPayload.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to start or pause an existing Synthetic test. */ @@ -47,6 +51,52 @@ public void setNewStatus(SyntheticsTestPauseStatus newStatus) { this.newStatus = newStatus; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsUpdateTestPauseStatusPayload + */ + @JsonAnySetter + public SyntheticsUpdateTestPauseStatusPayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsUpdateTestPauseStatusPayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -58,12 +108,14 @@ public boolean equals(Object o) { } SyntheticsUpdateTestPauseStatusPayload syntheticsUpdateTestPauseStatusPayload = (SyntheticsUpdateTestPauseStatusPayload) o; - return Objects.equals(this.newStatus, syntheticsUpdateTestPauseStatusPayload.newStatus); + return Objects.equals(this.newStatus, syntheticsUpdateTestPauseStatusPayload.newStatus) + && Objects.equals( + this.additionalProperties, syntheticsUpdateTestPauseStatusPayload.additionalProperties); } @Override public int hashCode() { - return Objects.hash(newStatus); + return Objects.hash(newStatus, additionalProperties); } @Override @@ -71,6 +123,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsUpdateTestPauseStatusPayload {\n"); sb.append(" newStatus: ").append(toIndentedString(newStatus)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsVariableParser.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsVariableParser.java index 26773e89db5..15fed1bdac9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsVariableParser.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsVariableParser.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Details of the parser to use for the global variable. */ @@ -83,6 +87,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsVariableParser + */ + @JsonAnySetter + public SyntheticsVariableParser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SyntheticsVariableParser object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } SyntheticsVariableParser syntheticsVariableParser = (SyntheticsVariableParser) o; return Objects.equals(this.type, syntheticsVariableParser.type) - && Objects.equals(this.value, syntheticsVariableParser.value); + && Objects.equals(this.value, syntheticsVariableParser.value) + && Objects.equals(this.additionalProperties, syntheticsVariableParser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, value); + return Objects.hash(type, value, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class SyntheticsVariableParser {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TableWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/TableWidgetDefinition.java index 0f78f8f629c..6318471c999 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TableWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/TableWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -269,6 +273,52 @@ public void setType(TableWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TableWidgetDefinition + */ + @JsonAnySetter + public TableWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TableWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -286,13 +336,22 @@ public boolean equals(Object o) { && Objects.equals(this.title, tableWidgetDefinition.title) && Objects.equals(this.titleAlign, tableWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, tableWidgetDefinition.titleSize) - && Objects.equals(this.type, tableWidgetDefinition.type); + && Objects.equals(this.type, tableWidgetDefinition.type) + && Objects.equals(this.additionalProperties, tableWidgetDefinition.additionalProperties); } @Override public int hashCode() { return Objects.hash( - customLinks, hasSearchBar, requests, time, title, titleAlign, titleSize, type); + customLinks, + hasSearchBar, + requests, + time, + title, + titleAlign, + titleSize, + type, + additionalProperties); } @Override @@ -307,6 +366,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TableWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/TableWidgetRequest.java index 7a1ff32e65c..de451c7f6e4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TableWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/TableWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated table widget. */ @@ -564,6 +568,52 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TableWidgetRequest + */ + @JsonAnySetter + public TableWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TableWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -592,7 +642,8 @@ public boolean equals(Object o) { && Objects.equals(this.queries, tableWidgetRequest.queries) && Objects.equals(this.responseFormat, tableWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, tableWidgetRequest.rumQuery) - && Objects.equals(this.securityQuery, tableWidgetRequest.securityQuery); + && Objects.equals(this.securityQuery, tableWidgetRequest.securityQuery) + && Objects.equals(this.additionalProperties, tableWidgetRequest.additionalProperties); } @Override @@ -616,7 +667,8 @@ public int hashCode() { queries, responseFormat, rumQuery, - securityQuery); + securityQuery, + additionalProperties); } @Override @@ -644,6 +696,9 @@ public String toString() { sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TagToHosts.java b/src/main/java/com/datadog/api/client/v1/model/TagToHosts.java index 808fa132cd1..c7edfca7497 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TagToHosts.java +++ b/src/main/java/com/datadog/api/client/v1/model/TagToHosts.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -56,6 +58,52 @@ public void setTags(Map> tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TagToHosts + */ + @JsonAnySetter + public TagToHosts putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TagToHosts object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +114,13 @@ public boolean equals(Object o) { return false; } TagToHosts tagToHosts = (TagToHosts) o; - return Objects.equals(this.tags, tagToHosts.tags); + return Objects.equals(this.tags, tagToHosts.tags) + && Objects.equals(this.additionalProperties, tagToHosts.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tags); + return Objects.hash(tags, additionalProperties); } @Override @@ -79,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TagToHosts {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TimeseriesBackground.java b/src/main/java/com/datadog/api/client/v1/model/TimeseriesBackground.java index 72e87beb3d9..59e00f0cc0d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TimeseriesBackground.java +++ b/src/main/java/com/datadog/api/client/v1/model/TimeseriesBackground.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Set a timeseries on the widget background. */ @@ -83,6 +87,52 @@ public void setYaxis(WidgetAxis yaxis) { this.yaxis = yaxis; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesBackground + */ + @JsonAnySetter + public TimeseriesBackground putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesBackground object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } TimeseriesBackground timeseriesBackground = (TimeseriesBackground) o; return Objects.equals(this.type, timeseriesBackground.type) - && Objects.equals(this.yaxis, timeseriesBackground.yaxis); + && Objects.equals(this.yaxis, timeseriesBackground.yaxis) + && Objects.equals(this.additionalProperties, timeseriesBackground.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, yaxis); + return Objects.hash(type, yaxis, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class TimeseriesBackground {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" yaxis: ").append(toIndentedString(yaxis)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetDefinition.java index bfc79fceb4e..1cfb7d23bda 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -482,6 +486,52 @@ public void setYaxis(WidgetAxis yaxis) { this.yaxis = yaxis; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesWidgetDefinition + */ + @JsonAnySetter + public TimeseriesWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -506,7 +556,9 @@ public boolean equals(Object o) { && Objects.equals(this.titleAlign, timeseriesWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, timeseriesWidgetDefinition.titleSize) && Objects.equals(this.type, timeseriesWidgetDefinition.type) - && Objects.equals(this.yaxis, timeseriesWidgetDefinition.yaxis); + && Objects.equals(this.yaxis, timeseriesWidgetDefinition.yaxis) + && Objects.equals( + this.additionalProperties, timeseriesWidgetDefinition.additionalProperties); } @Override @@ -526,7 +578,8 @@ public int hashCode() { titleAlign, titleSize, type, - yaxis); + yaxis, + additionalProperties); } @Override @@ -548,6 +601,9 @@ public String toString() { sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" yaxis: ").append(toIndentedString(yaxis)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetExpressionAlias.java b/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetExpressionAlias.java index 4f4db8a2d69..9c60d2dbc48 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetExpressionAlias.java +++ b/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetExpressionAlias.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Define an expression alias. */ @@ -77,6 +81,52 @@ public void setExpression(String expression) { this.expression = expression; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesWidgetExpressionAlias + */ + @JsonAnySetter + public TimeseriesWidgetExpressionAlias putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesWidgetExpressionAlias object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { TimeseriesWidgetExpressionAlias timeseriesWidgetExpressionAlias = (TimeseriesWidgetExpressionAlias) o; return Objects.equals(this.aliasName, timeseriesWidgetExpressionAlias.aliasName) - && Objects.equals(this.expression, timeseriesWidgetExpressionAlias.expression); + && Objects.equals(this.expression, timeseriesWidgetExpressionAlias.expression) + && Objects.equals( + this.additionalProperties, timeseriesWidgetExpressionAlias.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aliasName, expression); + return Objects.hash(aliasName, expression, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class TimeseriesWidgetExpressionAlias {\n"); sb.append(" aliasName: ").append(toIndentedString(aliasName)).append("\n"); sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetRequest.java index 112c6cfb6a9..14b64688d08 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/TimeseriesWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated timeseries widget. */ @@ -500,6 +504,52 @@ public void setStyle(WidgetRequestStyle style) { this.style = style; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesWidgetRequest + */ + @JsonAnySetter + public TimeseriesWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -526,7 +576,8 @@ public boolean equals(Object o) { && Objects.equals(this.responseFormat, timeseriesWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, timeseriesWidgetRequest.rumQuery) && Objects.equals(this.securityQuery, timeseriesWidgetRequest.securityQuery) - && Objects.equals(this.style, timeseriesWidgetRequest.style); + && Objects.equals(this.style, timeseriesWidgetRequest.style) + && Objects.equals(this.additionalProperties, timeseriesWidgetRequest.additionalProperties); } @Override @@ -548,7 +599,8 @@ public int hashCode() { responseFormat, rumQuery, securityQuery, - style); + style, + additionalProperties); } @Override @@ -574,6 +626,9 @@ public String toString() { sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetDefinition.java index 64c7627fca7..da78780bfab 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -241,6 +245,52 @@ public void setType(ToplistWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ToplistWidgetDefinition + */ + @JsonAnySetter + public ToplistWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ToplistWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -257,12 +307,14 @@ public boolean equals(Object o) { && Objects.equals(this.title, toplistWidgetDefinition.title) && Objects.equals(this.titleAlign, toplistWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, toplistWidgetDefinition.titleSize) - && Objects.equals(this.type, toplistWidgetDefinition.type); + && Objects.equals(this.type, toplistWidgetDefinition.type) + && Objects.equals(this.additionalProperties, toplistWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customLinks, requests, time, title, titleAlign, titleSize, type); + return Objects.hash( + customLinks, requests, time, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -276,6 +328,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetRequest.java index d110668ed7c..2ad6151f30c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Updated top list widget. */ @@ -447,6 +451,52 @@ public void setStyle(WidgetRequestStyle style) { this.style = style; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ToplistWidgetRequest + */ + @JsonAnySetter + public ToplistWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ToplistWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -471,7 +521,8 @@ public boolean equals(Object o) { && Objects.equals(this.responseFormat, toplistWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, toplistWidgetRequest.rumQuery) && Objects.equals(this.securityQuery, toplistWidgetRequest.securityQuery) - && Objects.equals(this.style, toplistWidgetRequest.style); + && Objects.equals(this.style, toplistWidgetRequest.style) + && Objects.equals(this.additionalProperties, toplistWidgetRequest.additionalProperties); } @Override @@ -491,7 +542,8 @@ public int hashCode() { responseFormat, rumQuery, securityQuery, - style); + style, + additionalProperties); } @Override @@ -515,6 +567,9 @@ public String toString() { sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TopologyMapWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/TopologyMapWidgetDefinition.java index db94b7202fb..51a40c6fa73 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TopologyMapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/TopologyMapWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -214,6 +218,52 @@ public void setType(TopologyMapWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TopologyMapWidgetDefinition + */ + @JsonAnySetter + public TopologyMapWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TopologyMapWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -229,12 +279,15 @@ public boolean equals(Object o) { && Objects.equals(this.title, topologyMapWidgetDefinition.title) && Objects.equals(this.titleAlign, topologyMapWidgetDefinition.titleAlign) && Objects.equals(this.titleSize, topologyMapWidgetDefinition.titleSize) - && Objects.equals(this.type, topologyMapWidgetDefinition.type); + && Objects.equals(this.type, topologyMapWidgetDefinition.type) + && Objects.equals( + this.additionalProperties, topologyMapWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customLinks, requests, title, titleAlign, titleSize, type); + return Objects.hash( + customLinks, requests, title, titleAlign, titleSize, type, additionalProperties); } @Override @@ -247,6 +300,9 @@ public String toString() { sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TopologyQuery.java b/src/main/java/com/datadog/api/client/v1/model/TopologyQuery.java index b40e185d08a..a445c901d02 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TopologyQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/TopologyQuery.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Query to service-based topology data sources like the service map or data streams. */ @@ -108,6 +112,52 @@ public void setService(String service) { this.service = service; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TopologyQuery + */ + @JsonAnySetter + public TopologyQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TopologyQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { TopologyQuery topologyQuery = (TopologyQuery) o; return Objects.equals(this.dataSource, topologyQuery.dataSource) && Objects.equals(this.filters, topologyQuery.filters) - && Objects.equals(this.service, topologyQuery.service); + && Objects.equals(this.service, topologyQuery.service) + && Objects.equals(this.additionalProperties, topologyQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dataSource, filters, service); + return Objects.hash(dataSource, filters, service, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TopologyRequest.java b/src/main/java/com/datadog/api/client/v1/model/TopologyRequest.java index 7d77eaf3581..90f82b7778a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TopologyRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/TopologyRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request that will return nodes and edges to be used by topology map. */ @@ -74,6 +78,52 @@ public void setRequestType(TopologyRequestType requestType) { this.requestType = requestType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TopologyRequest + */ + @JsonAnySetter + public TopologyRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TopologyRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,13 @@ public boolean equals(Object o) { } TopologyRequest topologyRequest = (TopologyRequest) o; return Objects.equals(this.query, topologyRequest.query) - && Objects.equals(this.requestType, topologyRequest.requestType); + && Objects.equals(this.requestType, topologyRequest.requestType) + && Objects.equals(this.additionalProperties, topologyRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query, requestType); + return Objects.hash(query, requestType, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append("class TopologyRequest {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" requestType: ").append(toIndentedString(requestType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetDefinition.java b/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetDefinition.java index 15490d85cc4..f71606ff488 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetDefinition.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -283,6 +287,52 @@ public void setType(TreeMapWidgetDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TreeMapWidgetDefinition + */ + @JsonAnySetter + public TreeMapWidgetDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TreeMapWidgetDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -300,12 +350,14 @@ public boolean equals(Object o) { && Objects.equals(this.sizeBy, treeMapWidgetDefinition.sizeBy) && Objects.equals(this.time, treeMapWidgetDefinition.time) && Objects.equals(this.title, treeMapWidgetDefinition.title) - && Objects.equals(this.type, treeMapWidgetDefinition.type); + && Objects.equals(this.type, treeMapWidgetDefinition.type) + && Objects.equals(this.additionalProperties, treeMapWidgetDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(colorBy, customLinks, groupBy, requests, sizeBy, time, title, type); + return Objects.hash( + colorBy, customLinks, groupBy, requests, sizeBy, time, title, type, additionalProperties); } @Override @@ -320,6 +372,9 @@ public String toString() { sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java index cd8164b027a..e47b8d66f93 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An updated treemap widget. */ @@ -149,6 +153,52 @@ public void setResponseFormat(FormulaAndFunctionResponseFormat responseFormat) { this.responseFormat = responseFormat; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TreeMapWidgetRequest + */ + @JsonAnySetter + public TreeMapWidgetRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TreeMapWidgetRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -162,12 +212,13 @@ public boolean equals(Object o) { return Objects.equals(this.formulas, treeMapWidgetRequest.formulas) && Objects.equals(this.q, treeMapWidgetRequest.q) && Objects.equals(this.queries, treeMapWidgetRequest.queries) - && Objects.equals(this.responseFormat, treeMapWidgetRequest.responseFormat); + && Objects.equals(this.responseFormat, treeMapWidgetRequest.responseFormat) + && Objects.equals(this.additionalProperties, treeMapWidgetRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formulas, q, queries, responseFormat); + return Objects.hash(formulas, q, queries, responseFormat, additionalProperties); } @Override @@ -178,6 +229,9 @@ public String toString() { sb.append(" q: ").append(toIndentedString(q)).append("\n"); sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsHour.java index ebe881bb927..8ee8cb38ad4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAnalyzedLogsHour + */ + @JsonAnySetter + public UsageAnalyzedLogsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAnalyzedLogsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.analyzedLogs, usageAnalyzedLogsHour.analyzedLogs) && Objects.equals(this.hour, usageAnalyzedLogsHour.hour) && Objects.equals(this.orgName, usageAnalyzedLogsHour.orgName) - && Objects.equals(this.publicId, usageAnalyzedLogsHour.publicId); + && Objects.equals(this.publicId, usageAnalyzedLogsHour.publicId) + && Objects.equals(this.additionalProperties, usageAnalyzedLogsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(analyzedLogs, hour, orgName, publicId); + return Objects.hash(analyzedLogs, hour, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsResponse.java index 0a5cad36d7d..e93e446b4ad 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAnalyzedLogsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A response containing the number of analyzed logs for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAnalyzedLogsResponse + */ + @JsonAnySetter + public UsageAnalyzedLogsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAnalyzedLogsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageAnalyzedLogsResponse usageAnalyzedLogsResponse = (UsageAnalyzedLogsResponse) o; - return Objects.equals(this.usage, usageAnalyzedLogsResponse.usage); + return Objects.equals(this.usage, usageAnalyzedLogsResponse.usage) + && Objects.equals( + this.additionalProperties, usageAnalyzedLogsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageAnalyzedLogsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionAggregatesBody.java b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionAggregatesBody.java index b1141328991..33001df87bb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionAggregatesBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionAggregatesBody.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing the aggregates. */ @@ -94,6 +98,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributionAggregatesBody + */ + @JsonAnySetter + public UsageAttributionAggregatesBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributionAggregatesBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,14 @@ public boolean equals(Object o) { (UsageAttributionAggregatesBody) o; return Objects.equals(this.aggType, usageAttributionAggregatesBody.aggType) && Objects.equals(this.field, usageAttributionAggregatesBody.field) - && Objects.equals(this.value, usageAttributionAggregatesBody.value); + && Objects.equals(this.value, usageAttributionAggregatesBody.value) + && Objects.equals( + this.additionalProperties, usageAttributionAggregatesBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggType, field, value); + return Objects.hash(aggType, field, value, additionalProperties); } @Override @@ -122,6 +174,9 @@ public String toString() { sb.append(" aggType: ").append(toIndentedString(aggType)).append("\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 15ab7c20c30..da328afd714 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 @@ -6,6 +6,8 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -233,6 +235,52 @@ public void setValues(UsageAttributionValues values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributionBody + */ + @JsonAnySetter + public UsageAttributionBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributionBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -249,12 +297,14 @@ public boolean equals(Object o) { && Objects.equals(this.tagConfigSource, usageAttributionBody.tagConfigSource) && Objects.equals(this.tags, usageAttributionBody.tags) && Objects.equals(this.updatedAt, usageAttributionBody.updatedAt) - && Objects.equals(this.values, usageAttributionBody.values); + && Objects.equals(this.values, usageAttributionBody.values) + && Objects.equals(this.additionalProperties, usageAttributionBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(month, orgName, publicId, tagConfigSource, tags, updatedAt, values); + return Objects.hash( + month, orgName, publicId, tagConfigSource, tags, updatedAt, values, additionalProperties); } @Override @@ -268,6 +318,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionMetadata.java b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionMetadata.java index a01c65c52d0..848ebc808ec 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -84,6 +88,52 @@ public void setPagination(UsageAttributionPagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributionMetadata + */ + @JsonAnySetter + public UsageAttributionMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributionMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,13 @@ public boolean equals(Object o) { } UsageAttributionMetadata usageAttributionMetadata = (UsageAttributionMetadata) o; return Objects.equals(this.aggregates, usageAttributionMetadata.aggregates) - && Objects.equals(this.pagination, usageAttributionMetadata.pagination); + && Objects.equals(this.pagination, usageAttributionMetadata.pagination) + && Objects.equals(this.additionalProperties, usageAttributionMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregates, pagination); + return Objects.hash(aggregates, pagination, additionalProperties); } @Override @@ -109,6 +160,9 @@ public String toString() { sb.append("class UsageAttributionMetadata {\n"); sb.append(" aggregates: ").append(toIndentedString(aggregates)).append("\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionPagination.java b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionPagination.java index a8aad56fa54..b77e0da58f2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionPagination.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionPagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The metadata for the current pagination. */ @@ -144,6 +148,52 @@ public void setTotalNumberOfRecords(Long totalNumberOfRecords) { this.totalNumberOfRecords = totalNumberOfRecords; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributionPagination + */ + @JsonAnySetter + public UsageAttributionPagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributionPagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -159,12 +209,15 @@ public boolean equals(Object o) { && Objects.equals(this.sortDirection, usageAttributionPagination.sortDirection) && Objects.equals(this.sortName, usageAttributionPagination.sortName) && Objects.equals( - this.totalNumberOfRecords, usageAttributionPagination.totalNumberOfRecords); + this.totalNumberOfRecords, usageAttributionPagination.totalNumberOfRecords) + && Objects.equals( + this.additionalProperties, usageAttributionPagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(limit, offset, sortDirection, sortName, totalNumberOfRecords); + return Objects.hash( + limit, offset, sortDirection, sortName, totalNumberOfRecords, additionalProperties); } @Override @@ -178,6 +231,9 @@ public String toString() { sb.append(" totalNumberOfRecords: ") .append(toIndentedString(totalNumberOfRecords)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionResponse.java index 479edfbce48..4ead419db69 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the Usage Summary by tag(s). */ @@ -84,6 +88,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributionResponse + */ + @JsonAnySetter + public UsageAttributionResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributionResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,13 @@ public boolean equals(Object o) { } UsageAttributionResponse usageAttributionResponse = (UsageAttributionResponse) o; return Objects.equals(this.metadata, usageAttributionResponse.metadata) - && Objects.equals(this.usage, usageAttributionResponse.usage); + && Objects.equals(this.usage, usageAttributionResponse.usage) + && Objects.equals(this.additionalProperties, usageAttributionResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metadata, usage); + return Objects.hash(metadata, usage, additionalProperties); } @Override @@ -109,6 +160,9 @@ public String toString() { sb.append("class UsageAttributionResponse {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionValues.java b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionValues.java index 296f4b45973..490cc827772 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionValues.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionValues.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Fields in Usage Summary by tag(s). */ @@ -1338,6 +1342,52 @@ public void setSnmpUsage(Double snmpUsage) { this.snmpUsage = snmpUsage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributionValues + */ + @JsonAnySetter + public UsageAttributionValues putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributionValues object is equal to o. */ @Override public boolean equals(Object o) { @@ -1424,7 +1474,8 @@ public boolean equals(Object o) { this.profiledHostsPercentage, usageAttributionValues.profiledHostsPercentage) && Objects.equals(this.profiledHostsUsage, usageAttributionValues.profiledHostsUsage) && Objects.equals(this.snmpPercentage, usageAttributionValues.snmpPercentage) - && Objects.equals(this.snmpUsage, usageAttributionValues.snmpUsage); + && Objects.equals(this.snmpUsage, usageAttributionValues.snmpUsage) + && Objects.equals(this.additionalProperties, usageAttributionValues.additionalProperties); } @Override @@ -1481,7 +1532,8 @@ public int hashCode() { profiledHostsPercentage, profiledHostsUsage, snmpPercentage, - snmpUsage); + snmpUsage, + additionalProperties); } @Override @@ -1592,6 +1644,9 @@ public String toString() { sb.append(" profiledHostsUsage: ").append(toIndentedString(profiledHostsUsage)).append("\n"); sb.append(" snmpPercentage: ").append(toIndentedString(snmpPercentage)).append("\n"); sb.append(" snmpUsage: ").append(toIndentedString(snmpUsage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsHour.java index 2102dfec618..f360745d6d1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAuditLogsHour + */ + @JsonAnySetter + public UsageAuditLogsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAuditLogsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageAuditLogsHour.hour) && Objects.equals(this.linesIndexed, usageAuditLogsHour.linesIndexed) && Objects.equals(this.orgName, usageAuditLogsHour.orgName) - && Objects.equals(this.publicId, usageAuditLogsHour.publicId); + && Objects.equals(this.publicId, usageAuditLogsHour.publicId) + && Objects.equals(this.additionalProperties, usageAuditLogsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, linesIndexed, orgName, publicId); + return Objects.hash(hour, linesIndexed, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" linesIndexed: ").append(toIndentedString(linesIndexed)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsResponse.java index 208dab23d39..ee8118b0ecb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAuditLogsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the audit logs usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAuditLogsResponse + */ + @JsonAnySetter + public UsageAuditLogsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAuditLogsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageAuditLogsResponse usageAuditLogsResponse = (UsageAuditLogsResponse) o; - return Objects.equals(this.usage, usageAuditLogsResponse.usage); + return Objects.equals(this.usage, usageAuditLogsResponse.usage) + && Objects.equals(this.additionalProperties, usageAuditLogsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageAuditLogsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryBody.java b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryBody.java index 2fcc20382cb..f5b077ea773 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryBody.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response with properties for each aggregated usage type. */ @@ -195,6 +199,52 @@ public void setUsageUnit(String usageUnit) { this.usageUnit = usageUnit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageBillableSummaryBody + */ + @JsonAnySetter + public UsageBillableSummaryBody putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageBillableSummaryBody object is equal to o. */ @Override public boolean equals(Object o) { @@ -213,7 +263,8 @@ public boolean equals(Object o) { this.lastBillableUsageHour, usageBillableSummaryBody.lastBillableUsageHour) && Objects.equals(this.orgBillableUsage, usageBillableSummaryBody.orgBillableUsage) && Objects.equals(this.percentageInAccount, usageBillableSummaryBody.percentageInAccount) - && Objects.equals(this.usageUnit, usageBillableSummaryBody.usageUnit); + && Objects.equals(this.usageUnit, usageBillableSummaryBody.usageUnit) + && Objects.equals(this.additionalProperties, usageBillableSummaryBody.additionalProperties); } @Override @@ -225,7 +276,8 @@ public int hashCode() { lastBillableUsageHour, orgBillableUsage, percentageInAccount, - usageUnit); + usageUnit, + additionalProperties); } @Override @@ -247,6 +299,9 @@ public String toString() { .append(toIndentedString(percentageInAccount)) .append("\n"); sb.append(" usageUnit: ").append(toIndentedString(usageUnit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryHour.java index 773585c0d08..bcf910c93db 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response with monthly summary of data billed by Datadog. */ @@ -246,6 +250,52 @@ public void setUsage(UsageBillableSummaryKeys usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageBillableSummaryHour + */ + @JsonAnySetter + public UsageBillableSummaryHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageBillableSummaryHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -264,13 +314,23 @@ public boolean equals(Object o) { && Objects.equals(this.ratioInMonth, usageBillableSummaryHour.ratioInMonth) && Objects.equals(this.region, usageBillableSummaryHour.region) && Objects.equals(this.startDate, usageBillableSummaryHour.startDate) - && Objects.equals(this.usage, usageBillableSummaryHour.usage); + && Objects.equals(this.usage, usageBillableSummaryHour.usage) + && Objects.equals(this.additionalProperties, usageBillableSummaryHour.additionalProperties); } @Override public int hashCode() { return Objects.hash( - billingPlan, endDate, numOrgs, orgName, publicId, ratioInMonth, region, startDate, usage); + billingPlan, + endDate, + numOrgs, + orgName, + publicId, + ratioInMonth, + region, + startDate, + usage, + additionalProperties); } @Override @@ -286,6 +346,9 @@ public String toString() { sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryKeys.java b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryKeys.java index db2cd04dac0..7c5e52e4436 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryKeys.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryKeys.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response with aggregated usage types. */ @@ -2371,6 +2375,52 @@ public void setTimeseriesSum(UsageBillableSummaryBody timeseriesSum) { this.timeseriesSum = timeseriesSum; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageBillableSummaryKeys + */ + @JsonAnySetter + public UsageBillableSummaryKeys putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageBillableSummaryKeys object is equal to o. */ @Override public boolean equals(Object o) { @@ -2504,7 +2554,8 @@ public boolean equals(Object o) { && Objects.equals( this.syntheticsBrowserChecksSum, usageBillableSummaryKeys.syntheticsBrowserChecksSum) && Objects.equals(this.timeseriesAverage, usageBillableSummaryKeys.timeseriesAverage) - && Objects.equals(this.timeseriesSum, usageBillableSummaryKeys.timeseriesSum); + && Objects.equals(this.timeseriesSum, usageBillableSummaryKeys.timeseriesSum) + && Objects.equals(this.additionalProperties, usageBillableSummaryKeys.additionalProperties); } @Override @@ -2597,7 +2648,8 @@ public int hashCode() { syntheticsAppTestingMaximum, syntheticsBrowserChecksSum, timeseriesAverage, - timeseriesSum); + timeseriesSum, + additionalProperties); } @Override @@ -2770,6 +2822,9 @@ public String toString() { .append("\n"); sb.append(" timeseriesAverage: ").append(toIndentedString(timeseriesAverage)).append("\n"); sb.append(" timeseriesSum: ").append(toIndentedString(timeseriesSum)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryResponse.java index a35a97559f3..2301be0aa71 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageBillableSummaryResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with monthly summary of data billed by Datadog. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageBillableSummaryResponse + */ + @JsonAnySetter + public UsageBillableSummaryResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageBillableSummaryResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageBillableSummaryResponse usageBillableSummaryResponse = (UsageBillableSummaryResponse) o; - return Objects.equals(this.usage, usageBillableSummaryResponse.usage); + return Objects.equals(this.usage, usageBillableSummaryResponse.usage) + && Objects.equals( + this.additionalProperties, usageBillableSummaryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageBillableSummaryResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 60ab33e49e5..83dae94aa4a 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -216,6 +220,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCIVisibilityHour + */ + @JsonAnySetter + public UsageCIVisibilityHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCIVisibilityHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -234,7 +284,8 @@ public boolean equals(Object o) { && Objects.equals( this.ciVisibilityTestCommitters, usageCiVisibilityHour.ciVisibilityTestCommitters) && Objects.equals(this.orgName, usageCiVisibilityHour.orgName) - && Objects.equals(this.publicId, usageCiVisibilityHour.publicId); + && Objects.equals(this.publicId, usageCiVisibilityHour.publicId) + && Objects.equals(this.additionalProperties, usageCiVisibilityHour.additionalProperties); } @Override @@ -245,7 +296,8 @@ public int hashCode() { ciVisibilityPipelineCommitters, ciVisibilityTestCommitters, orgName, - publicId); + publicId, + additionalProperties); } @Override @@ -264,6 +316,9 @@ public String toString() { .append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityResponse.java index 152ca97c4f2..dc625503824 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** CI visibility usage response */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCIVisibilityResponse + */ + @JsonAnySetter + public UsageCIVisibilityResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCIVisibilityResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageCIVisibilityResponse usageCiVisibilityResponse = (UsageCIVisibilityResponse) o; - return Objects.equals(this.usage, usageCiVisibilityResponse.usage); + return Objects.equals(this.usage, usageCiVisibilityResponse.usage) + && Objects.equals( + this.additionalProperties, usageCiVisibilityResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageCIVisibilityResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 6009e896cb7..a4a45c9b9d3 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -168,6 +172,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCWSHour + */ + @JsonAnySetter + public UsageCWSHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCWSHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -182,12 +232,14 @@ public boolean equals(Object o) { && Objects.equals(this.cwsHostCount, usageCwsHour.cwsHostCount) && Objects.equals(this.hour, usageCwsHour.hour) && Objects.equals(this.orgName, usageCwsHour.orgName) - && Objects.equals(this.publicId, usageCwsHour.publicId); + && Objects.equals(this.publicId, usageCwsHour.publicId) + && Objects.equals(this.additionalProperties, usageCwsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cwsContainerCount, cwsHostCount, hour, orgName, publicId); + return Objects.hash( + cwsContainerCount, cwsHostCount, hour, orgName, publicId, additionalProperties); } @Override @@ -199,6 +251,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCWSResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageCWSResponse.java index ffaf52aa6be..8f080620c02 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCWSResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCWSResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the Cloud Workload Security usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCWSResponse + */ + @JsonAnySetter + public UsageCWSResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCWSResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageCWSResponse usageCwsResponse = (UsageCWSResponse) o; - return Objects.equals(this.usage, usageCwsResponse.usage); + return Objects.equals(this.usage, usageCwsResponse.usage) + && Objects.equals(this.additionalProperties, usageCwsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageCWSResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementHour.java index 25eb2931169..f90d7f3d470 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -341,6 +345,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCloudSecurityPostureManagementHour + */ + @JsonAnySetter + public UsageCloudSecurityPostureManagementHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCloudSecurityPostureManagementHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -364,7 +414,10 @@ public boolean equals(Object o) { && Objects.equals(this.hostCount, usageCloudSecurityPostureManagementHour.hostCount) && Objects.equals(this.hour, usageCloudSecurityPostureManagementHour.hour) && Objects.equals(this.orgName, usageCloudSecurityPostureManagementHour.orgName) - && Objects.equals(this.publicId, usageCloudSecurityPostureManagementHour.publicId); + && Objects.equals(this.publicId, usageCloudSecurityPostureManagementHour.publicId) + && Objects.equals( + this.additionalProperties, + usageCloudSecurityPostureManagementHour.additionalProperties); } @Override @@ -379,7 +432,8 @@ public int hashCode() { hostCount, hour, orgName, - publicId); + publicId, + additionalProperties); } @Override @@ -398,6 +452,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementResponse.java index 2d443861353..abfe74c9343 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCloudSecurityPostureManagementResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -61,6 +65,53 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCloudSecurityPostureManagementResponse + */ + @JsonAnySetter + public UsageCloudSecurityPostureManagementResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCloudSecurityPostureManagementResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +123,15 @@ public boolean equals(Object o) { } UsageCloudSecurityPostureManagementResponse usageCloudSecurityPostureManagementResponse = (UsageCloudSecurityPostureManagementResponse) o; - return Objects.equals(this.usage, usageCloudSecurityPostureManagementResponse.usage); + return Objects.equals(this.usage, usageCloudSecurityPostureManagementResponse.usage) + && Objects.equals( + this.additionalProperties, + usageCloudSecurityPostureManagementResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -85,6 +139,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageCloudSecurityPostureManagementResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsAttributes.java b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsAttributes.java index 7ed2418ba49..643d476a751 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response containing attributes for custom reports. */ @@ -154,6 +158,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCustomReportsAttributes + */ + @JsonAnySetter + public UsageCustomReportsAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCustomReportsAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -168,12 +218,14 @@ public boolean equals(Object o) { && Objects.equals(this.endDate, usageCustomReportsAttributes.endDate) && Objects.equals(this.size, usageCustomReportsAttributes.size) && Objects.equals(this.startDate, usageCustomReportsAttributes.startDate) - && Objects.equals(this.tags, usageCustomReportsAttributes.tags); + && Objects.equals(this.tags, usageCustomReportsAttributes.tags) + && Objects.equals( + this.additionalProperties, usageCustomReportsAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(computedOn, endDate, size, startDate, tags); + return Objects.hash(computedOn, endDate, size, startDate, tags, additionalProperties); } @Override @@ -185,6 +237,9 @@ public String toString() { sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsData.java b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsData.java index 0f973f673a7..c2cc2bc2da3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsData.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response containing the date and type for custom reports. */ @@ -99,6 +103,52 @@ public void setType(UsageReportsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCustomReportsData + */ + @JsonAnySetter + public UsageCustomReportsData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCustomReportsData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { UsageCustomReportsData usageCustomReportsData = (UsageCustomReportsData) o; return Objects.equals(this.attributes, usageCustomReportsData.attributes) && Objects.equals(this.id, usageCustomReportsData.id) - && Objects.equals(this.type, usageCustomReportsData.type); + && Objects.equals(this.type, usageCustomReportsData.type) + && Objects.equals(this.additionalProperties, usageCustomReportsData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsMeta.java b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsMeta.java index bb77491eaac..4a6b85ed2b9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsMeta.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -43,6 +47,52 @@ public void setPage(UsageCustomReportsPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCustomReportsMeta + */ + @JsonAnySetter + public UsageCustomReportsMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCustomReportsMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } UsageCustomReportsMeta usageCustomReportsMeta = (UsageCustomReportsMeta) o; - return Objects.equals(this.page, usageCustomReportsMeta.page); + return Objects.equals(this.page, usageCustomReportsMeta.page) + && Objects.equals(this.additionalProperties, usageCustomReportsMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageCustomReportsMeta {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsPage.java b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsPage.java index 27eccab862b..047c2beef71 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsPage.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing page total count. */ @@ -42,6 +46,52 @@ public void setTotalCount(Long totalCount) { this.totalCount = totalCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCustomReportsPage + */ + @JsonAnySetter + public UsageCustomReportsPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCustomReportsPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } UsageCustomReportsPage usageCustomReportsPage = (UsageCustomReportsPage) o; - return Objects.equals(this.totalCount, usageCustomReportsPage.totalCount); + return Objects.equals(this.totalCount, usageCustomReportsPage.totalCount) + && Objects.equals(this.additionalProperties, usageCustomReportsPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount); + return Objects.hash(totalCount, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageCustomReportsPage {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsResponse.java index 23bb51aceb8..3ebf4b86254 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCustomReportsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing available custom reports. */ @@ -84,6 +88,52 @@ public void setMeta(UsageCustomReportsMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageCustomReportsResponse + */ + @JsonAnySetter + public UsageCustomReportsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageCustomReportsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { } UsageCustomReportsResponse usageCustomReportsResponse = (UsageCustomReportsResponse) o; return Objects.equals(this.data, usageCustomReportsResponse.data) - && Objects.equals(this.meta, usageCustomReportsResponse.meta); + && Objects.equals(this.meta, usageCustomReportsResponse.meta) + && Objects.equals( + this.additionalProperties, usageCustomReportsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class UsageCustomReportsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 a677b4bf4b2..43a3667453c 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -168,6 +172,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageDBMHour + */ + @JsonAnySetter + public UsageDBMHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageDBMHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -182,12 +232,14 @@ public boolean equals(Object o) { && Objects.equals(this.dbmQueriesCount, usageDbmHour.dbmQueriesCount) && Objects.equals(this.hour, usageDbmHour.hour) && Objects.equals(this.orgName, usageDbmHour.orgName) - && Objects.equals(this.publicId, usageDbmHour.publicId); + && Objects.equals(this.publicId, usageDbmHour.publicId) + && Objects.equals(this.additionalProperties, usageDbmHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dbmHostCount, dbmQueriesCount, hour, orgName, publicId); + return Objects.hash( + dbmHostCount, dbmQueriesCount, hour, orgName, publicId, additionalProperties); } @Override @@ -199,6 +251,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageDBMResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageDBMResponse.java index 3d8f34c4c30..7f98caad802 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageDBMResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageDBMResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the Database Monitoring usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageDBMResponse + */ + @JsonAnySetter + public UsageDBMResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageDBMResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageDBMResponse usageDbmResponse = (UsageDBMResponse) o; - return Objects.equals(this.usage, usageDbmResponse.usage); + return Objects.equals(this.usage, usageDbmResponse.usage) + && Objects.equals(this.additionalProperties, usageDbmResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageDBMResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 5eaff00ca1d..1959c095428 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -237,6 +241,52 @@ public void setTasksCount(Long tasksCount) { this.tasksCount = JsonNullable.of(tasksCount); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageFargateHour + */ + @JsonAnySetter + public UsageFargateHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageFargateHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -253,7 +303,8 @@ public boolean equals(Object o) { && Objects.equals(this.hour, usageFargateHour.hour) && Objects.equals(this.orgName, usageFargateHour.orgName) && Objects.equals(this.publicId, usageFargateHour.publicId) - && Objects.equals(this.tasksCount, usageFargateHour.tasksCount); + && Objects.equals(this.tasksCount, usageFargateHour.tasksCount) + && Objects.equals(this.additionalProperties, usageFargateHour.additionalProperties); } @Override @@ -265,7 +316,8 @@ public int hashCode() { hour, orgName, publicId, - tasksCount); + tasksCount, + additionalProperties); } @Override @@ -281,6 +333,9 @@ public String toString() { sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" tasksCount: ").append(toIndentedString(tasksCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageFargateResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageFargateResponse.java index cc9e76099e0..45502552bc7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageFargateResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageFargateResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of Fargate tasks run and hourly usage. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageFargateResponse + */ + @JsonAnySetter + public UsageFargateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageFargateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageFargateResponse usageFargateResponse = (UsageFargateResponse) o; - return Objects.equals(this.usage, usageFargateResponse.usage); + return Objects.equals(this.usage, usageFargateResponse.usage) + && Objects.equals(this.additionalProperties, usageFargateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageFargateResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 84418b1eedb..7b7313dbebe 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -612,6 +616,52 @@ public void setVsphereHostCount(Long vsphereHostCount) { this.vsphereHostCount = JsonNullable.of(vsphereHostCount); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageHostHour + */ + @JsonAnySetter + public UsageHostHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageHostHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -639,7 +689,8 @@ public boolean equals(Object o) { && Objects.equals(this.opentelemetryHostCount, usageHostHour.opentelemetryHostCount) && Objects.equals(this.orgName, usageHostHour.orgName) && Objects.equals(this.publicId, usageHostHour.publicId) - && Objects.equals(this.vsphereHostCount, usageHostHour.vsphereHostCount); + && Objects.equals(this.vsphereHostCount, usageHostHour.vsphereHostCount) + && Objects.equals(this.additionalProperties, usageHostHour.additionalProperties); } @Override @@ -661,7 +712,8 @@ public int hashCode() { opentelemetryHostCount, orgName, publicId, - vsphereHostCount); + vsphereHostCount, + additionalProperties); } @Override @@ -693,6 +745,9 @@ public String toString() { sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" vsphereHostCount: ").append(toIndentedString(vsphereHostCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageHostsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageHostsResponse.java index 3a39a89eb0c..280a42d337b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageHostsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageHostsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Host usage response. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageHostsResponse + */ + @JsonAnySetter + public UsageHostsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageHostsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageHostsResponse usageHostsResponse = (UsageHostsResponse) o; - return Objects.equals(this.usage, usageHostsResponse.usage); + return Objects.equals(this.usage, usageHostsResponse.usage) + && Objects.equals(this.additionalProperties, usageHostsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageHostsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 67ab6839daf..75684bb58cf 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -132,6 +136,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIncidentManagementHour + */ + @JsonAnySetter + public UsageIncidentManagementHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIncidentManagementHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -145,12 +195,14 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageIncidentManagementHour.hour) && Objects.equals(this.monthlyActiveUsers, usageIncidentManagementHour.monthlyActiveUsers) && Objects.equals(this.orgName, usageIncidentManagementHour.orgName) - && Objects.equals(this.publicId, usageIncidentManagementHour.publicId); + && Objects.equals(this.publicId, usageIncidentManagementHour.publicId) + && Objects.equals( + this.additionalProperties, usageIncidentManagementHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, monthlyActiveUsers, orgName, publicId); + return Objects.hash(hour, monthlyActiveUsers, orgName, publicId, additionalProperties); } @Override @@ -161,6 +213,9 @@ public String toString() { sb.append(" monthlyActiveUsers: ").append(toIndentedString(monthlyActiveUsers)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementResponse.java index d4b9d3c3a12..04dc34fd478 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the incident management usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIncidentManagementResponse + */ + @JsonAnySetter + public UsageIncidentManagementResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIncidentManagementResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } UsageIncidentManagementResponse usageIncidentManagementResponse = (UsageIncidentManagementResponse) o; - return Objects.equals(this.usage, usageIncidentManagementResponse.usage); + return Objects.equals(this.usage, usageIncidentManagementResponse.usage) + && Objects.equals( + this.additionalProperties, usageIncidentManagementResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageIncidentManagementResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansHour.java index ff07b960429..7e3827b9d5f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIndexedSpansHour + */ + @JsonAnySetter + public UsageIndexedSpansHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIndexedSpansHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageIndexedSpansHour.hour) && Objects.equals(this.indexedEventsCount, usageIndexedSpansHour.indexedEventsCount) && Objects.equals(this.orgName, usageIndexedSpansHour.orgName) - && Objects.equals(this.publicId, usageIndexedSpansHour.publicId); + && Objects.equals(this.publicId, usageIndexedSpansHour.publicId) + && Objects.equals(this.additionalProperties, usageIndexedSpansHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, indexedEventsCount, orgName, publicId); + return Objects.hash(hour, indexedEventsCount, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" indexedEventsCount: ").append(toIndentedString(indexedEventsCount)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansResponse.java index 534dc20711e..692aba37fb1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIndexedSpansResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A response containing indexed spans usage. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIndexedSpansResponse + */ + @JsonAnySetter + public UsageIndexedSpansResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIndexedSpansResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageIndexedSpansResponse usageIndexedSpansResponse = (UsageIndexedSpansResponse) o; - return Objects.equals(this.usage, usageIndexedSpansResponse.usage); + return Objects.equals(this.usage, usageIndexedSpansResponse.usage) + && Objects.equals( + this.additionalProperties, usageIndexedSpansResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageIndexedSpansResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansHour.java index d2abae250c6..e6294a2b144 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIngestedSpansHour + */ + @JsonAnySetter + public UsageIngestedSpansHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIngestedSpansHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageIngestedSpansHour.hour) && Objects.equals(this.ingestedEventsBytes, usageIngestedSpansHour.ingestedEventsBytes) && Objects.equals(this.orgName, usageIngestedSpansHour.orgName) - && Objects.equals(this.publicId, usageIngestedSpansHour.publicId); + && Objects.equals(this.publicId, usageIngestedSpansHour.publicId) + && Objects.equals(this.additionalProperties, usageIngestedSpansHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, ingestedEventsBytes, orgName, publicId); + return Objects.hash(hour, ingestedEventsBytes, orgName, publicId, additionalProperties); } @Override @@ -162,6 +213,9 @@ public String toString() { .append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansResponse.java index 1b7e64f8da1..199a1ab7737 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIngestedSpansResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the ingested spans usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIngestedSpansResponse + */ + @JsonAnySetter + public UsageIngestedSpansResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIngestedSpansResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageIngestedSpansResponse usageIngestedSpansResponse = (UsageIngestedSpansResponse) o; - return Objects.equals(this.usage, usageIngestedSpansResponse.usage); + return Objects.equals(this.usage, usageIngestedSpansResponse.usage) + && Objects.equals( + this.additionalProperties, usageIngestedSpansResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageIngestedSpansResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIoTHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageIoTHour.java index e9fb2235f6b..fda956557df 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIoTHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIoTHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIoTHour + */ + @JsonAnySetter + public UsageIoTHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIoTHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageIoTHour.hour) && Objects.equals(this.iotDeviceCount, usageIoTHour.iotDeviceCount) && Objects.equals(this.orgName, usageIoTHour.orgName) - && Objects.equals(this.publicId, usageIoTHour.publicId); + && Objects.equals(this.publicId, usageIoTHour.publicId) + && Objects.equals(this.additionalProperties, usageIoTHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, iotDeviceCount, orgName, publicId); + return Objects.hash(hour, iotDeviceCount, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" iotDeviceCount: ").append(toIndentedString(iotDeviceCount)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIoTResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageIoTResponse.java index f1eed2e0c2f..8974937e0ae 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIoTResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIoTResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the IoT usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageIoTResponse + */ + @JsonAnySetter + public UsageIoTResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageIoTResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageIoTResponse usageIoTResponse = (UsageIoTResponse) o; - return Objects.equals(this.usage, usageIoTResponse.usage); + return Objects.equals(this.usage, usageIoTResponse.usage) + && Objects.equals(this.additionalProperties, usageIoTResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageIoTResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 4e02ef11576..1c2c1ea50d4 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -169,6 +173,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLambdaHour + */ + @JsonAnySetter + public UsageLambdaHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLambdaHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -183,12 +233,13 @@ public boolean equals(Object o) { && Objects.equals(this.hour, usageLambdaHour.hour) && Objects.equals(this.invocationsSum, usageLambdaHour.invocationsSum) && Objects.equals(this.orgName, usageLambdaHour.orgName) - && Objects.equals(this.publicId, usageLambdaHour.publicId); + && Objects.equals(this.publicId, usageLambdaHour.publicId) + && Objects.equals(this.additionalProperties, usageLambdaHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(funcCount, hour, invocationsSum, orgName, publicId); + return Objects.hash(funcCount, hour, invocationsSum, orgName, publicId, additionalProperties); } @Override @@ -200,6 +251,9 @@ public String toString() { sb.append(" invocationsSum: ").append(toIndentedString(invocationsSum)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLambdaResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageLambdaResponse.java index 56ff5127b17..c906311f57d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLambdaResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLambdaResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -59,6 +63,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLambdaResponse + */ + @JsonAnySetter + public UsageLambdaResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLambdaResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,13 @@ public boolean equals(Object o) { return false; } UsageLambdaResponse usageLambdaResponse = (UsageLambdaResponse) o; - return Objects.equals(this.usage, usageLambdaResponse.usage); + return Objects.equals(this.usage, usageLambdaResponse.usage) + && Objects.equals(this.additionalProperties, usageLambdaResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -82,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageLambdaResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexHour.java index cee82cf75b8..5a984c4b509 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Number of indexed logs for each hour and index for a given organization. */ @@ -195,6 +199,52 @@ public void setRetention(Long retention) { this.retention = retention; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLogsByIndexHour + */ + @JsonAnySetter + public UsageLogsByIndexHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLogsByIndexHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -211,12 +261,14 @@ public boolean equals(Object o) { && Objects.equals(this.indexName, usageLogsByIndexHour.indexName) && Objects.equals(this.orgName, usageLogsByIndexHour.orgName) && Objects.equals(this.publicId, usageLogsByIndexHour.publicId) - && Objects.equals(this.retention, usageLogsByIndexHour.retention); + && Objects.equals(this.retention, usageLogsByIndexHour.retention) + && Objects.equals(this.additionalProperties, usageLogsByIndexHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(eventCount, hour, indexId, indexName, orgName, publicId, retention); + return Objects.hash( + eventCount, hour, indexId, indexName, orgName, publicId, retention, additionalProperties); } @Override @@ -230,6 +282,9 @@ public String toString() { sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" retention: ").append(toIndentedString(retention)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexResponse.java index f8867a51d17..61c921c88e7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByIndexResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -58,6 +62,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLogsByIndexResponse + */ + @JsonAnySetter + public UsageLogsByIndexResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLogsByIndexResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,13 @@ public boolean equals(Object o) { return false; } UsageLogsByIndexResponse usageLogsByIndexResponse = (UsageLogsByIndexResponse) o; - return Objects.equals(this.usage, usageLogsByIndexResponse.usage); + return Objects.equals(this.usage, usageLogsByIndexResponse.usage) + && Objects.equals(this.additionalProperties, usageLogsByIndexResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -81,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageLogsByIndexResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionHour.java index 56b15c3b90b..43b1c3ff41e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionHour.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -215,6 +219,52 @@ public void setRetention(String retention) { this.retention = JsonNullable.of(retention); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLogsByRetentionHour + */ + @JsonAnySetter + public UsageLogsByRetentionHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLogsByRetentionHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -233,7 +283,8 @@ public boolean equals(Object o) { && Objects.equals( this.rehydratedIndexedEventsCount, usageLogsByRetentionHour.rehydratedIndexedEventsCount) - && Objects.equals(this.retention, usageLogsByRetentionHour.retention); + && Objects.equals(this.retention, usageLogsByRetentionHour.retention) + && Objects.equals(this.additionalProperties, usageLogsByRetentionHour.additionalProperties); } @Override @@ -244,7 +295,8 @@ public int hashCode() { orgName, publicId, rehydratedIndexedEventsCount, - retention); + retention, + additionalProperties); } @Override @@ -261,6 +313,9 @@ public String toString() { .append(toIndentedString(rehydratedIndexedEventsCount)) .append("\n"); sb.append(" retention: ").append(toIndentedString(retention)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionResponse.java index 84f3be73c90..4fc00a7d992 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLogsByRetentionResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -59,6 +63,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLogsByRetentionResponse + */ + @JsonAnySetter + public UsageLogsByRetentionResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLogsByRetentionResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,14 @@ public boolean equals(Object o) { return false; } UsageLogsByRetentionResponse usageLogsByRetentionResponse = (UsageLogsByRetentionResponse) o; - return Objects.equals(this.usage, usageLogsByRetentionResponse.usage); + return Objects.equals(this.usage, usageLogsByRetentionResponse.usage) + && Objects.equals( + this.additionalProperties, usageLogsByRetentionResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -82,6 +134,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageLogsByRetentionResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 6bc7206f705..45494baf5f5 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -382,6 +386,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLogsHour + */ + @JsonAnySetter + public UsageLogsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLogsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -403,7 +453,8 @@ public boolean equals(Object o) { && Objects.equals( this.logsRehydratedIngestedBytes, usageLogsHour.logsRehydratedIngestedBytes) && Objects.equals(this.orgName, usageLogsHour.orgName) - && Objects.equals(this.publicId, usageLogsHour.publicId); + && Objects.equals(this.publicId, usageLogsHour.publicId) + && Objects.equals(this.additionalProperties, usageLogsHour.additionalProperties); } @Override @@ -419,7 +470,8 @@ public int hashCode() { logsRehydratedIndexedCount, logsRehydratedIngestedBytes, orgName, - publicId); + publicId, + additionalProperties); } @Override @@ -451,6 +503,9 @@ public String toString() { .append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLogsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageLogsResponse.java index 0637e3fb7f0..3500bca8703 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLogsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLogsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of logs for each hour. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLogsResponse + */ + @JsonAnySetter + public UsageLogsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLogsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageLogsResponse usageLogsResponse = (UsageLogsResponse) o; - return Objects.equals(this.usage, usageLogsResponse.usage); + return Objects.equals(this.usage, usageLogsResponse.usage) + && Objects.equals(this.additionalProperties, usageLogsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageLogsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsHour.java index a2ed5d27765..1aa8a6da9c9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageNetworkFlowsHour + */ + @JsonAnySetter + public UsageNetworkFlowsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageNetworkFlowsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageNetworkFlowsHour.hour) && Objects.equals(this.indexedEventsCount, usageNetworkFlowsHour.indexedEventsCount) && Objects.equals(this.orgName, usageNetworkFlowsHour.orgName) - && Objects.equals(this.publicId, usageNetworkFlowsHour.publicId); + && Objects.equals(this.publicId, usageNetworkFlowsHour.publicId) + && Objects.equals(this.additionalProperties, usageNetworkFlowsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, indexedEventsCount, orgName, publicId); + return Objects.hash(hour, indexedEventsCount, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" indexedEventsCount: ").append(toIndentedString(indexedEventsCount)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsResponse.java index 0f54a7e8ebd..89103a9b03e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkFlowsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -58,6 +62,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageNetworkFlowsResponse + */ + @JsonAnySetter + public UsageNetworkFlowsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageNetworkFlowsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { return false; } UsageNetworkFlowsResponse usageNetworkFlowsResponse = (UsageNetworkFlowsResponse) o; - return Objects.equals(this.usage, usageNetworkFlowsResponse.usage); + return Objects.equals(this.usage, usageNetworkFlowsResponse.usage) + && Objects.equals( + this.additionalProperties, usageNetworkFlowsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageNetworkFlowsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsHour.java index 4d304eb2656..631a066478d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageNetworkHostsHour + */ + @JsonAnySetter + public UsageNetworkHostsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageNetworkHostsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hostCount, usageNetworkHostsHour.hostCount) && Objects.equals(this.hour, usageNetworkHostsHour.hour) && Objects.equals(this.orgName, usageNetworkHostsHour.orgName) - && Objects.equals(this.publicId, usageNetworkHostsHour.publicId); + && Objects.equals(this.publicId, usageNetworkHostsHour.publicId) + && Objects.equals(this.additionalProperties, usageNetworkHostsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hostCount, hour, orgName, publicId); + return Objects.hash(hostCount, hour, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsResponse.java index ae889c660a9..33f55d35603 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageNetworkHostsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of active NPM hosts for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageNetworkHostsResponse + */ + @JsonAnySetter + public UsageNetworkHostsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageNetworkHostsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageNetworkHostsResponse usageNetworkHostsResponse = (UsageNetworkHostsResponse) o; - return Objects.equals(this.usage, usageNetworkHostsResponse.usage); + return Objects.equals(this.usage, usageNetworkHostsResponse.usage) + && Objects.equals( + this.additionalProperties, usageNetworkHostsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageNetworkHostsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 d0ac967efaa..570d8b18e22 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -133,6 +137,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageOnlineArchiveHour + */ + @JsonAnySetter + public UsageOnlineArchiveHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageOnlineArchiveHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -147,12 +197,13 @@ public boolean equals(Object o) { && Objects.equals( this.onlineArchiveEventsCount, usageOnlineArchiveHour.onlineArchiveEventsCount) && Objects.equals(this.orgName, usageOnlineArchiveHour.orgName) - && Objects.equals(this.publicId, usageOnlineArchiveHour.publicId); + && Objects.equals(this.publicId, usageOnlineArchiveHour.publicId) + && Objects.equals(this.additionalProperties, usageOnlineArchiveHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, onlineArchiveEventsCount, orgName, publicId); + return Objects.hash(hour, onlineArchiveEventsCount, orgName, publicId, additionalProperties); } @Override @@ -165,6 +216,9 @@ public String toString() { .append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveResponse.java index 5d162fa19e0..aa9b5ae3971 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Online Archive usage response. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageOnlineArchiveResponse + */ + @JsonAnySetter + public UsageOnlineArchiveResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageOnlineArchiveResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } UsageOnlineArchiveResponse usageOnlineArchiveResponse = (UsageOnlineArchiveResponse) o; - return Objects.equals(this.usage, usageOnlineArchiveResponse.usage); + return Objects.equals(this.usage, usageOnlineArchiveResponse.usage) + && Objects.equals( + this.additionalProperties, usageOnlineArchiveResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageOnlineArchiveResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 e9f402ecba5..477087978e7 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -166,6 +170,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageProfilingHour + */ + @JsonAnySetter + public UsageProfilingHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageProfilingHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -180,12 +230,14 @@ public boolean equals(Object o) { && Objects.equals(this.hostCount, usageProfilingHour.hostCount) && Objects.equals(this.hour, usageProfilingHour.hour) && Objects.equals(this.orgName, usageProfilingHour.orgName) - && Objects.equals(this.publicId, usageProfilingHour.publicId); + && Objects.equals(this.publicId, usageProfilingHour.publicId) + && Objects.equals(this.additionalProperties, usageProfilingHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(avgContainerAgentCount, hostCount, hour, orgName, publicId); + return Objects.hash( + avgContainerAgentCount, hostCount, hour, orgName, publicId, additionalProperties); } @Override @@ -199,6 +251,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageProfilingResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageProfilingResponse.java index b3a4924b8f1..ed414326afd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageProfilingResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageProfilingResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of profiled hosts for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageProfilingResponse + */ + @JsonAnySetter + public UsageProfilingResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageProfilingResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageProfilingResponse usageProfilingResponse = (UsageProfilingResponse) o; - return Objects.equals(this.usage, usageProfilingResponse.usage); + return Objects.equals(this.usage, usageProfilingResponse.usage) + && Objects.equals(this.additionalProperties, usageProfilingResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageProfilingResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsHour.java index e361b869231..d7939204d37 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -298,6 +302,52 @@ public void setSessionCountReactnative(Long sessionCountReactnative) { this.sessionCountReactnative = JsonNullable.of(sessionCountReactnative); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageRumSessionsHour + */ + @JsonAnySetter + public UsageRumSessionsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageRumSessionsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -317,7 +367,8 @@ public boolean equals(Object o) { && Objects.equals(this.sessionCountFlutter, usageRumSessionsHour.sessionCountFlutter) && Objects.equals(this.sessionCountIos, usageRumSessionsHour.sessionCountIos) && Objects.equals( - this.sessionCountReactnative, usageRumSessionsHour.sessionCountReactnative); + this.sessionCountReactnative, usageRumSessionsHour.sessionCountReactnative) + && Objects.equals(this.additionalProperties, usageRumSessionsHour.additionalProperties); } @Override @@ -331,7 +382,8 @@ public int hashCode() { sessionCountAndroid, sessionCountFlutter, sessionCountIos, - sessionCountReactnative); + sessionCountReactnative, + additionalProperties); } @Override @@ -353,6 +405,9 @@ public String toString() { sb.append(" sessionCountReactnative: ") .append(toIndentedString(sessionCountReactnative)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsResponse.java index d62c66120bc..654d8921070 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageRumSessionsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of RUM Sessions for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageRumSessionsResponse + */ + @JsonAnySetter + public UsageRumSessionsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageRumSessionsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageRumSessionsResponse usageRumSessionsResponse = (UsageRumSessionsResponse) o; - return Objects.equals(this.usage, usageRumSessionsResponse.usage); + return Objects.equals(this.usage, usageRumSessionsResponse.usage) + && Objects.equals(this.additionalProperties, usageRumSessionsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageRumSessionsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 9c309e9b775..f86d87c373c 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -178,6 +182,52 @@ public void setRumUnits(Long rumUnits) { this.rumUnits = JsonNullable.of(rumUnits); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageRumUnitsHour + */ + @JsonAnySetter + public UsageRumUnitsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageRumUnitsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -192,12 +242,14 @@ public boolean equals(Object o) { && Objects.equals(this.mobileRumUnits, usageRumUnitsHour.mobileRumUnits) && Objects.equals(this.orgName, usageRumUnitsHour.orgName) && Objects.equals(this.publicId, usageRumUnitsHour.publicId) - && Objects.equals(this.rumUnits, usageRumUnitsHour.rumUnits); + && Objects.equals(this.rumUnits, usageRumUnitsHour.rumUnits) + && Objects.equals(this.additionalProperties, usageRumUnitsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(browserRumUnits, mobileRumUnits, orgName, publicId, rumUnits); + return Objects.hash( + browserRumUnits, mobileRumUnits, orgName, publicId, rumUnits, additionalProperties); } @Override @@ -209,6 +261,9 @@ public String toString() { sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" rumUnits: ").append(toIndentedString(rumUnits)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsResponse.java index 549cf36b4cd..bf43201cffd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of RUM Units for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageRumUnitsResponse + */ + @JsonAnySetter + public UsageRumUnitsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageRumUnitsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageRumUnitsResponse usageRumUnitsResponse = (UsageRumUnitsResponse) o; - return Objects.equals(this.usage, usageRumUnitsResponse.usage); + return Objects.equals(this.usage, usageRumUnitsResponse.usage) + && Objects.equals(this.additionalProperties, usageRumUnitsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageRumUnitsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSDSHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageSDSHour.java index 740a09fdc06..6884355bcbc 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSDSHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSDSHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -276,6 +280,52 @@ public void setTotalScannedBytes(Long totalScannedBytes) { this.totalScannedBytes = JsonNullable.of(totalScannedBytes); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSDSHour + */ + @JsonAnySetter + public UsageSDSHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSDSHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -293,7 +343,8 @@ public boolean equals(Object o) { && Objects.equals(this.orgName, usageSdsHour.orgName) && Objects.equals(this.publicId, usageSdsHour.publicId) && Objects.equals(this.rumScannedBytes, usageSdsHour.rumScannedBytes) - && Objects.equals(this.totalScannedBytes, usageSdsHour.totalScannedBytes); + && Objects.equals(this.totalScannedBytes, usageSdsHour.totalScannedBytes) + && Objects.equals(this.additionalProperties, usageSdsHour.additionalProperties); } @Override @@ -306,7 +357,8 @@ public int hashCode() { orgName, publicId, rumScannedBytes, - totalScannedBytes); + totalScannedBytes, + additionalProperties); } @Override @@ -321,6 +373,9 @@ public String toString() { sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" rumScannedBytes: ").append(toIndentedString(rumScannedBytes)).append("\n"); sb.append(" totalScannedBytes: ").append(toIndentedString(totalScannedBytes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSDSResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSDSResponse.java index 113b3324d07..60a80348914 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSDSResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSDSResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the Sensitive Data Scanner usage for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSDSResponse + */ + @JsonAnySetter + public UsageSDSResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSDSResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageSDSResponse usageSdsResponse = (UsageSDSResponse) o; - return Objects.equals(this.usage, usageSdsResponse.usage); + return Objects.equals(this.usage, usageSdsResponse.usage) + && Objects.equals(this.additionalProperties, usageSdsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSDSResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 04d04fa2a46..7faa3a36a41 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setSnmpDevices(Long snmpDevices) { this.snmpDevices = JsonNullable.of(snmpDevices); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSNMPHour + */ + @JsonAnySetter + public UsageSNMPHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSNMPHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.hour, usageSnmpHour.hour) && Objects.equals(this.orgName, usageSnmpHour.orgName) && Objects.equals(this.publicId, usageSnmpHour.publicId) - && Objects.equals(this.snmpDevices, usageSnmpHour.snmpDevices); + && Objects.equals(this.snmpDevices, usageSnmpHour.snmpDevices) + && Objects.equals(this.additionalProperties, usageSnmpHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hour, orgName, publicId, snmpDevices); + return Objects.hash(hour, orgName, publicId, snmpDevices, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" snmpDevices: ").append(toIndentedString(snmpDevices)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSNMPResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSNMPResponse.java index 39c18e920ca..75cd5b09d7c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSNMPResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSNMPResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of SNMP devices for each hour for a given organization. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSNMPResponse + */ + @JsonAnySetter + public UsageSNMPResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSNMPResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageSNMPResponse usageSnmpResponse = (UsageSNMPResponse) o; - return Objects.equals(this.usage, usageSnmpResponse.usage); + return Objects.equals(this.usage, usageSnmpResponse.usage) + && Objects.equals(this.additionalProperties, usageSnmpResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSNMPResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsAttributes.java b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsAttributes.java index e64bad18894..a5d9ef282d2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response containing attributes for specified custom reports. */ @@ -179,6 +183,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSpecifiedCustomReportsAttributes + */ + @JsonAnySetter + public UsageSpecifiedCustomReportsAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSpecifiedCustomReportsAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -195,12 +245,14 @@ public boolean equals(Object o) { && Objects.equals(this.location, usageSpecifiedCustomReportsAttributes.location) && Objects.equals(this.size, usageSpecifiedCustomReportsAttributes.size) && Objects.equals(this.startDate, usageSpecifiedCustomReportsAttributes.startDate) - && Objects.equals(this.tags, usageSpecifiedCustomReportsAttributes.tags); + && Objects.equals(this.tags, usageSpecifiedCustomReportsAttributes.tags) + && Objects.equals( + this.additionalProperties, usageSpecifiedCustomReportsAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(computedOn, endDate, location, size, startDate, tags); + return Objects.hash(computedOn, endDate, location, size, startDate, tags, additionalProperties); } @Override @@ -213,6 +265,9 @@ public String toString() { sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsData.java b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsData.java index a15dae0f27b..dba206622e8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsData.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing date and type for specified custom reports. */ @@ -100,6 +104,52 @@ public void setType(UsageReportsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSpecifiedCustomReportsData + */ + @JsonAnySetter + public UsageSpecifiedCustomReportsData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSpecifiedCustomReportsData object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,14 @@ public boolean equals(Object o) { (UsageSpecifiedCustomReportsData) o; return Objects.equals(this.attributes, usageSpecifiedCustomReportsData.attributes) && Objects.equals(this.id, usageSpecifiedCustomReportsData.id) - && Objects.equals(this.type, usageSpecifiedCustomReportsData.type); + && Objects.equals(this.type, usageSpecifiedCustomReportsData.type) + && Objects.equals( + this.additionalProperties, usageSpecifiedCustomReportsData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsMeta.java b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsMeta.java index 35ce4c63636..338f96a28c6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsMeta.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -43,6 +47,52 @@ public void setPage(UsageSpecifiedCustomReportsPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSpecifiedCustomReportsMeta + */ + @JsonAnySetter + public UsageSpecifiedCustomReportsMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSpecifiedCustomReportsMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } UsageSpecifiedCustomReportsMeta usageSpecifiedCustomReportsMeta = (UsageSpecifiedCustomReportsMeta) o; - return Objects.equals(this.page, usageSpecifiedCustomReportsMeta.page); + return Objects.equals(this.page, usageSpecifiedCustomReportsMeta.page) + && Objects.equals( + this.additionalProperties, usageSpecifiedCustomReportsMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSpecifiedCustomReportsMeta {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsPage.java b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsPage.java index b9ff7825b29..3bcc0e37ce8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsPage.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing page total count for specified ID. */ @@ -42,6 +46,52 @@ public void setTotalCount(Long totalCount) { this.totalCount = totalCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSpecifiedCustomReportsPage + */ + @JsonAnySetter + public UsageSpecifiedCustomReportsPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSpecifiedCustomReportsPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } UsageSpecifiedCustomReportsPage usageSpecifiedCustomReportsPage = (UsageSpecifiedCustomReportsPage) o; - return Objects.equals(this.totalCount, usageSpecifiedCustomReportsPage.totalCount); + return Objects.equals(this.totalCount, usageSpecifiedCustomReportsPage.totalCount) + && Objects.equals( + this.additionalProperties, usageSpecifiedCustomReportsPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount); + return Objects.hash(totalCount, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSpecifiedCustomReportsPage {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsResponse.java index e346d409f30..a4f058fd4b2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSpecifiedCustomReportsResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Returns available specified custom reports. */ @@ -71,6 +75,52 @@ public void setMeta(UsageSpecifiedCustomReportsMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSpecifiedCustomReportsResponse + */ + @JsonAnySetter + public UsageSpecifiedCustomReportsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSpecifiedCustomReportsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { UsageSpecifiedCustomReportsResponse usageSpecifiedCustomReportsResponse = (UsageSpecifiedCustomReportsResponse) o; return Objects.equals(this.data, usageSpecifiedCustomReportsResponse.data) - && Objects.equals(this.meta, usageSpecifiedCustomReportsResponse.meta); + && Objects.equals(this.meta, usageSpecifiedCustomReportsResponse.meta) + && Objects.equals( + this.additionalProperties, usageSpecifiedCustomReportsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class UsageSpecifiedCustomReportsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java index b4786eef815..dd3081fb8ae 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with hourly report of all data billed by Datadog all organizations. */ @@ -2236,6 +2240,52 @@ public void setVulnManagementHostCountTop99p(Long vulnManagementHostCountTop99p) this.vulnManagementHostCountTop99p = vulnManagementHostCountTop99p; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSummaryDate + */ + @JsonAnySetter + public UsageSummaryDate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSummaryDate object is equal to o. */ @Override public boolean equals(Object o) { @@ -2366,7 +2416,8 @@ public boolean equals(Object o) { usageSummaryDate.universalServiceMonitoringHostTop99p) && Objects.equals(this.vsphereHostTop99p, usageSummaryDate.vsphereHostTop99p) && Objects.equals( - this.vulnManagementHostCountTop99p, usageSummaryDate.vulnManagementHostCountTop99p); + this.vulnManagementHostCountTop99p, usageSummaryDate.vulnManagementHostCountTop99p) + && Objects.equals(this.additionalProperties, usageSummaryDate.additionalProperties); } @Override @@ -2454,7 +2505,8 @@ public int hashCode() { twolIngestedEventsBytesSum, universalServiceMonitoringHostTop99p, vsphereHostTop99p, - vulnManagementHostCountTop99p); + vulnManagementHostCountTop99p, + additionalProperties); } @Override @@ -2650,6 +2702,9 @@ public String toString() { sb.append(" vulnManagementHostCountTop99p: ") .append(toIndentedString(vulnManagementHostCountTop99p)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java index 9940ed7f485..460333cb828 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Global hourly report of all data billed by Datadog for a given organization. */ @@ -2262,6 +2266,52 @@ public void setVulnManagementHostCountTop99p(Long vulnManagementHostCountTop99p) this.vulnManagementHostCountTop99p = vulnManagementHostCountTop99p; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSummaryDateOrg + */ + @JsonAnySetter + public UsageSummaryDateOrg putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSummaryDateOrg object is equal to o. */ @Override public boolean equals(Object o) { @@ -2404,7 +2454,8 @@ public boolean equals(Object o) { usageSummaryDateOrg.universalServiceMonitoringHostTop99p) && Objects.equals(this.vsphereHostTop99p, usageSummaryDateOrg.vsphereHostTop99p) && Objects.equals( - this.vulnManagementHostCountTop99p, usageSummaryDateOrg.vulnManagementHostCountTop99p); + this.vulnManagementHostCountTop99p, usageSummaryDateOrg.vulnManagementHostCountTop99p) + && Objects.equals(this.additionalProperties, usageSummaryDateOrg.additionalProperties); } @Override @@ -2494,7 +2545,8 @@ public int hashCode() { twolIngestedEventsBytesSum, universalServiceMonitoringHostTop99p, vsphereHostTop99p, - vulnManagementHostCountTop99p); + vulnManagementHostCountTop99p, + additionalProperties); } @Override @@ -2692,6 +2744,9 @@ public String toString() { sb.append(" vulnManagementHostCountTop99p: ") .append(toIndentedString(vulnManagementHostCountTop99p)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java index 155b9f25305..1e2164cf2f6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -2510,6 +2514,52 @@ public void setVulnManagementHostCountTop99pSum(Long vulnManagementHostCountTop9 this.vulnManagementHostCountTop99pSum = vulnManagementHostCountTop99pSum; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSummaryResponse + */ + @JsonAnySetter + public UsageSummaryResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSummaryResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -2690,7 +2740,8 @@ public boolean equals(Object o) { && Objects.equals(this.vsphereHostTop99pSum, usageSummaryResponse.vsphereHostTop99pSum) && Objects.equals( this.vulnManagementHostCountTop99pSum, - usageSummaryResponse.vulnManagementHostCountTop99pSum); + usageSummaryResponse.vulnManagementHostCountTop99pSum) + && Objects.equals(this.additionalProperties, usageSummaryResponse.additionalProperties); } @Override @@ -2787,7 +2838,8 @@ public int hashCode() { universalServiceMonitoringHostTop99pSum, usage, vsphereHostTop99pSum, - vulnManagementHostCountTop99pSum); + vulnManagementHostCountTop99pSum, + additionalProperties); } @Override @@ -3024,6 +3076,9 @@ public String toString() { sb.append(" vulnManagementHostCountTop99pSum: ") .append(toIndentedString(vulnManagementHostCountTop99pSum)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 75214d78cf3..b86175c9f0a 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSyntheticsAPIHour + */ + @JsonAnySetter + public UsageSyntheticsAPIHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSyntheticsAPIHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.checkCallsCount, usageSyntheticsApiHour.checkCallsCount) && Objects.equals(this.hour, usageSyntheticsApiHour.hour) && Objects.equals(this.orgName, usageSyntheticsApiHour.orgName) - && Objects.equals(this.publicId, usageSyntheticsApiHour.publicId); + && Objects.equals(this.publicId, usageSyntheticsApiHour.publicId) + && Objects.equals(this.additionalProperties, usageSyntheticsApiHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(checkCallsCount, hour, orgName, publicId); + return Objects.hash(checkCallsCount, hour, orgName, publicId, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIResponse.java index ffe61257471..9070a711552 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -59,6 +63,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSyntheticsAPIResponse + */ + @JsonAnySetter + public UsageSyntheticsAPIResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSyntheticsAPIResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,14 @@ public boolean equals(Object o) { return false; } UsageSyntheticsAPIResponse usageSyntheticsApiResponse = (UsageSyntheticsAPIResponse) o; - return Objects.equals(this.usage, usageSyntheticsApiResponse.usage); + return Objects.equals(this.usage, usageSyntheticsApiResponse.usage) + && Objects.equals( + this.additionalProperties, usageSyntheticsApiResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -82,6 +134,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSyntheticsAPIResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 9454d6b0aa4..65f38db5741 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -131,6 +135,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSyntheticsBrowserHour + */ + @JsonAnySetter + public UsageSyntheticsBrowserHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSyntheticsBrowserHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -145,12 +195,14 @@ public boolean equals(Object o) { this.browserCheckCallsCount, usageSyntheticsBrowserHour.browserCheckCallsCount) && Objects.equals(this.hour, usageSyntheticsBrowserHour.hour) && Objects.equals(this.orgName, usageSyntheticsBrowserHour.orgName) - && Objects.equals(this.publicId, usageSyntheticsBrowserHour.publicId); + && Objects.equals(this.publicId, usageSyntheticsBrowserHour.publicId) + && Objects.equals( + this.additionalProperties, usageSyntheticsBrowserHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(browserCheckCallsCount, hour, orgName, publicId); + return Objects.hash(browserCheckCallsCount, hour, orgName, publicId, additionalProperties); } @Override @@ -163,6 +215,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserResponse.java index 718a2f6af7c..b22fc0eb915 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -59,6 +63,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSyntheticsBrowserResponse + */ + @JsonAnySetter + public UsageSyntheticsBrowserResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSyntheticsBrowserResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -70,12 +120,14 @@ public boolean equals(Object o) { } UsageSyntheticsBrowserResponse usageSyntheticsBrowserResponse = (UsageSyntheticsBrowserResponse) o; - return Objects.equals(this.usage, usageSyntheticsBrowserResponse.usage); + return Objects.equals(this.usage, usageSyntheticsBrowserResponse.usage) + && Objects.equals( + this.additionalProperties, usageSyntheticsBrowserResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -83,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSyntheticsBrowserResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsHour.java index 6d0414be21f..9da1258e057 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The number of synthetics tests run for each hour for a given organization. */ @@ -120,6 +124,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSyntheticsHour + */ + @JsonAnySetter + public UsageSyntheticsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSyntheticsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -133,12 +183,13 @@ public boolean equals(Object o) { return Objects.equals(this.checkCallsCount, usageSyntheticsHour.checkCallsCount) && Objects.equals(this.hour, usageSyntheticsHour.hour) && Objects.equals(this.orgName, usageSyntheticsHour.orgName) - && Objects.equals(this.publicId, usageSyntheticsHour.publicId); + && Objects.equals(this.publicId, usageSyntheticsHour.publicId) + && Objects.equals(this.additionalProperties, usageSyntheticsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(checkCallsCount, hour, orgName, publicId); + return Objects.hash(checkCallsCount, hour, orgName, publicId, additionalProperties); } @Override @@ -149,6 +200,9 @@ public String toString() { sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsResponse.java index 744070f8201..9e4668e2236 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -59,6 +63,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageSyntheticsResponse + */ + @JsonAnySetter + public UsageSyntheticsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageSyntheticsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,13 @@ public boolean equals(Object o) { return false; } UsageSyntheticsResponse usageSyntheticsResponse = (UsageSyntheticsResponse) o; - return Objects.equals(this.usage, usageSyntheticsResponse.usage); + return Objects.equals(this.usage, usageSyntheticsResponse.usage) + && Objects.equals(this.additionalProperties, usageSyntheticsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -82,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageSyntheticsResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesHour.java index 28b700b123f..1c705ade6e5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesHour.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The hourly usage of timeseries. */ @@ -175,6 +179,52 @@ public void setPublicId(String publicId) { this.publicId = publicId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTimeseriesHour + */ + @JsonAnySetter + public UsageTimeseriesHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTimeseriesHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -192,7 +242,8 @@ public boolean equals(Object o) { this.numCustomOutputTimeseries, usageTimeseriesHour.numCustomOutputTimeseries) && Objects.equals(this.numCustomTimeseries, usageTimeseriesHour.numCustomTimeseries) && Objects.equals(this.orgName, usageTimeseriesHour.orgName) - && Objects.equals(this.publicId, usageTimeseriesHour.publicId); + && Objects.equals(this.publicId, usageTimeseriesHour.publicId) + && Objects.equals(this.additionalProperties, usageTimeseriesHour.additionalProperties); } @Override @@ -203,7 +254,8 @@ public int hashCode() { numCustomOutputTimeseries, numCustomTimeseries, orgName, - publicId); + publicId, + additionalProperties); } @Override @@ -222,6 +274,9 @@ public String toString() { .append("\n"); sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n"); sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesResponse.java index 97568c2ef6b..97482fe6859 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageTimeseriesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing hourly usage of timeseries. */ @@ -56,6 +60,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTimeseriesResponse + */ + @JsonAnySetter + public UsageTimeseriesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTimeseriesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UsageTimeseriesResponse usageTimeseriesResponse = (UsageTimeseriesResponse) o; - return Objects.equals(this.usage, usageTimeseriesResponse.usage); + return Objects.equals(this.usage, usageTimeseriesResponse.usage) + && Objects.equals(this.additionalProperties, usageTimeseriesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usage); + return Objects.hash(usage, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageTimeseriesResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsHour.java index 20a13b77297..e99cdab380e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsHour.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Number of hourly recorded custom metrics for a given organization. */ @@ -123,6 +127,52 @@ public void setMetricName(String metricName) { this.metricName = metricName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTopAvgMetricsHour + */ + @JsonAnySetter + public UsageTopAvgMetricsHour putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTopAvgMetricsHour object is equal to o. */ @Override public boolean equals(Object o) { @@ -136,12 +186,14 @@ public boolean equals(Object o) { return Objects.equals(this.avgMetricHour, usageTopAvgMetricsHour.avgMetricHour) && Objects.equals(this.maxMetricHour, usageTopAvgMetricsHour.maxMetricHour) && Objects.equals(this.metricCategory, usageTopAvgMetricsHour.metricCategory) - && Objects.equals(this.metricName, usageTopAvgMetricsHour.metricName); + && Objects.equals(this.metricName, usageTopAvgMetricsHour.metricName) + && Objects.equals(this.additionalProperties, usageTopAvgMetricsHour.additionalProperties); } @Override public int hashCode() { - return Objects.hash(avgMetricHour, maxMetricHour, metricCategory, metricName); + return Objects.hash( + avgMetricHour, maxMetricHour, metricCategory, metricName, additionalProperties); } @Override @@ -152,6 +204,9 @@ public String toString() { sb.append(" maxMetricHour: ").append(toIndentedString(maxMetricHour)).append("\n"); sb.append(" metricCategory: ").append(toIndentedString(metricCategory)).append("\n"); sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsMetadata.java b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsMetadata.java index d346cd7007e..41588fb7b19 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsMetadata.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsMetadata.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -98,6 +102,52 @@ public void setPagination(UsageTopAvgMetricsPagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTopAvgMetricsMetadata + */ + @JsonAnySetter + public UsageTopAvgMetricsMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTopAvgMetricsMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,12 +160,14 @@ public boolean equals(Object o) { UsageTopAvgMetricsMetadata usageTopAvgMetricsMetadata = (UsageTopAvgMetricsMetadata) o; return Objects.equals(this.day, usageTopAvgMetricsMetadata.day) && Objects.equals(this.month, usageTopAvgMetricsMetadata.month) - && Objects.equals(this.pagination, usageTopAvgMetricsMetadata.pagination); + && Objects.equals(this.pagination, usageTopAvgMetricsMetadata.pagination) + && Objects.equals( + this.additionalProperties, usageTopAvgMetricsMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(day, month, pagination); + return Objects.hash(day, month, pagination, additionalProperties); } @Override @@ -125,6 +177,9 @@ public String toString() { sb.append(" day: ").append(toIndentedString(day)).append("\n"); sb.append(" month: ").append(toIndentedString(month)).append("\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 fb6da2ffba3..1911b8dc5e9 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -116,6 +120,52 @@ public void setTotalNumberOfRecords(Long totalNumberOfRecords) { this.totalNumberOfRecords = JsonNullable.of(totalNumberOfRecords); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTopAvgMetricsPagination + */ + @JsonAnySetter + public UsageTopAvgMetricsPagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTopAvgMetricsPagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -129,12 +179,14 @@ public boolean equals(Object o) { return Objects.equals(this.limit, usageTopAvgMetricsPagination.limit) && Objects.equals(this.nextRecordId, usageTopAvgMetricsPagination.nextRecordId) && Objects.equals( - this.totalNumberOfRecords, usageTopAvgMetricsPagination.totalNumberOfRecords); + this.totalNumberOfRecords, usageTopAvgMetricsPagination.totalNumberOfRecords) + && Objects.equals( + this.additionalProperties, usageTopAvgMetricsPagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(limit, nextRecordId, totalNumberOfRecords); + return Objects.hash(limit, nextRecordId, totalNumberOfRecords, additionalProperties); } @Override @@ -146,6 +198,9 @@ public String toString() { sb.append(" totalNumberOfRecords: ") .append(toIndentedString(totalNumberOfRecords)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsResponse.java index 308298fb3a8..755ee7711db 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing the number of hourly recorded custom metrics for a given organization. */ @@ -84,6 +88,52 @@ public void setUsage(List usage) { this.usage = usage; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTopAvgMetricsResponse + */ + @JsonAnySetter + public UsageTopAvgMetricsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTopAvgMetricsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { } UsageTopAvgMetricsResponse usageTopAvgMetricsResponse = (UsageTopAvgMetricsResponse) o; return Objects.equals(this.metadata, usageTopAvgMetricsResponse.metadata) - && Objects.equals(this.usage, usageTopAvgMetricsResponse.usage); + && Objects.equals(this.usage, usageTopAvgMetricsResponse.usage) + && Objects.equals( + this.additionalProperties, usageTopAvgMetricsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metadata, usage); + return Objects.hash(metadata, usage, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class UsageTopAvgMetricsResponse {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/User.java b/src/main/java/com/datadog/api/client/v1/model/User.java index 7ada866196d..01ee75b0602 100644 --- a/src/main/java/com/datadog/api/client/v1/model/User.java +++ b/src/main/java/com/datadog/api/client/v1/model/User.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create, edit, and disable users. */ @@ -181,6 +185,52 @@ public Boolean getVerified() { return verified; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return User + */ + @JsonAnySetter + public User putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this User object is equal to o. */ @Override public boolean equals(Object o) { @@ -197,12 +247,14 @@ public boolean equals(Object o) { && Objects.equals(this.handle, user.handle) && Objects.equals(this.icon, user.icon) && Objects.equals(this.name, user.name) - && Objects.equals(this.verified, user.verified); + && Objects.equals(this.verified, user.verified) + && Objects.equals(this.additionalProperties, user.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accessRole, disabled, email, handle, icon, name, verified); + return Objects.hash( + accessRole, disabled, email, handle, icon, name, verified, additionalProperties); } @Override @@ -216,6 +268,9 @@ public String toString() { sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UserDisableResponse.java b/src/main/java/com/datadog/api/client/v1/model/UserDisableResponse.java index 618cdeccffc..62607b1f791 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UserDisableResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UserDisableResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Array of user disabled for a given organization. */ @@ -42,6 +46,52 @@ public void setMessage(String message) { this.message = message; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserDisableResponse + */ + @JsonAnySetter + public UserDisableResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserDisableResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } UserDisableResponse userDisableResponse = (UserDisableResponse) o; - return Objects.equals(this.message, userDisableResponse.message); + return Objects.equals(this.message, userDisableResponse.message) + && Objects.equals(this.additionalProperties, userDisableResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(message); + return Objects.hash(message, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserDisableResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UserListResponse.java b/src/main/java/com/datadog/api/client/v1/model/UserListResponse.java index c5743f9f9ee..c12a2b67f8d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UserListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UserListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Array of Datadog users for a given organization. */ @@ -56,6 +60,52 @@ public void setUsers(List users) { this.users = users; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserListResponse + */ + @JsonAnySetter + public UserListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UserListResponse userListResponse = (UserListResponse) o; - return Objects.equals(this.users, userListResponse.users); + return Objects.equals(this.users, userListResponse.users) + && Objects.equals(this.additionalProperties, userListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(users); + return Objects.hash(users, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserListResponse {\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/UserResponse.java b/src/main/java/com/datadog/api/client/v1/model/UserResponse.java index ac47b206e2d..8f8e38da5c8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UserResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UserResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A Datadog User. */ @@ -43,6 +47,52 @@ public void setUser(User user) { this.user = user; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserResponse + */ + @JsonAnySetter + public UserResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } UserResponse userResponse = (UserResponse) o; - return Objects.equals(this.user, userResponse.user); + return Objects.equals(this.user, userResponse.user) + && Objects.equals(this.additionalProperties, userResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(user); + return Objects.hash(user, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserResponse {\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegration.java b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegration.java index e9e3ccd5d8f..82b3b856fc2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegration.java +++ b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegration.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -183,6 +187,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WebhooksIntegration + */ + @JsonAnySetter + public WebhooksIntegration putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WebhooksIntegration object is equal to o. */ @Override public boolean equals(Object o) { @@ -197,12 +247,13 @@ public boolean equals(Object o) { && Objects.equals(this.encodeAs, webhooksIntegration.encodeAs) && Objects.equals(this.name, webhooksIntegration.name) && Objects.equals(this.payload, webhooksIntegration.payload) - && Objects.equals(this.url, webhooksIntegration.url); + && Objects.equals(this.url, webhooksIntegration.url) + && Objects.equals(this.additionalProperties, webhooksIntegration.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customHeaders, encodeAs, name, payload, url); + return Objects.hash(customHeaders, encodeAs, name, payload, url, additionalProperties); } @Override @@ -214,6 +265,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariable.java b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariable.java index 1d9e71920df..ca87dacd3fb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariable.java +++ b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariable.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Custom variable for Webhook integration. */ @@ -105,6 +109,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WebhooksIntegrationCustomVariable + */ + @JsonAnySetter + public WebhooksIntegrationCustomVariable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WebhooksIntegrationCustomVariable object is equal to o. */ @Override public boolean equals(Object o) { @@ -118,12 +168,14 @@ public boolean equals(Object o) { (WebhooksIntegrationCustomVariable) o; return Objects.equals(this.isSecret, webhooksIntegrationCustomVariable.isSecret) && Objects.equals(this.name, webhooksIntegrationCustomVariable.name) - && Objects.equals(this.value, webhooksIntegrationCustomVariable.value); + && Objects.equals(this.value, webhooksIntegrationCustomVariable.value) + && Objects.equals( + this.additionalProperties, webhooksIntegrationCustomVariable.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isSecret, name, value); + return Objects.hash(isSecret, name, value, additionalProperties); } @Override @@ -133,6 +185,9 @@ public String toString() { sb.append(" isSecret: ").append(toIndentedString(isSecret)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableResponse.java b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableResponse.java index 54cfe06057c..1671697405f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Custom variable for Webhook integration. */ @@ -105,6 +109,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WebhooksIntegrationCustomVariableResponse + */ + @JsonAnySetter + public WebhooksIntegrationCustomVariableResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WebhooksIntegrationCustomVariableResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -118,12 +168,15 @@ public boolean equals(Object o) { (WebhooksIntegrationCustomVariableResponse) o; return Objects.equals(this.isSecret, webhooksIntegrationCustomVariableResponse.isSecret) && Objects.equals(this.name, webhooksIntegrationCustomVariableResponse.name) - && Objects.equals(this.value, webhooksIntegrationCustomVariableResponse.value); + && Objects.equals(this.value, webhooksIntegrationCustomVariableResponse.value) + && Objects.equals( + this.additionalProperties, + webhooksIntegrationCustomVariableResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isSecret, name, value); + return Objects.hash(isSecret, name, value, additionalProperties); } @Override @@ -133,6 +186,9 @@ public String toString() { sb.append(" isSecret: ").append(toIndentedString(isSecret)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableUpdateRequest.java index e6db4c0afc8..8a9edfd7870 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationCustomVariableUpdateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -100,6 +104,53 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WebhooksIntegrationCustomVariableUpdateRequest + */ + @JsonAnySetter + public WebhooksIntegrationCustomVariableUpdateRequest putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WebhooksIntegrationCustomVariableUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +164,15 @@ public boolean equals(Object o) { (WebhooksIntegrationCustomVariableUpdateRequest) o; return Objects.equals(this.isSecret, webhooksIntegrationCustomVariableUpdateRequest.isSecret) && Objects.equals(this.name, webhooksIntegrationCustomVariableUpdateRequest.name) - && Objects.equals(this.value, webhooksIntegrationCustomVariableUpdateRequest.value); + && Objects.equals(this.value, webhooksIntegrationCustomVariableUpdateRequest.value) + && Objects.equals( + this.additionalProperties, + webhooksIntegrationCustomVariableUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isSecret, name, value); + return Objects.hash(isSecret, name, value, additionalProperties); } @Override @@ -128,6 +182,9 @@ public String toString() { sb.append(" isSecret: ").append(toIndentedString(isSecret)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationUpdateRequest.java index 9678ff8fa5b..e64f0dfbf39 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/WebhooksIntegrationUpdateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -168,6 +172,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WebhooksIntegrationUpdateRequest + */ + @JsonAnySetter + public WebhooksIntegrationUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WebhooksIntegrationUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -183,12 +233,14 @@ public boolean equals(Object o) { && Objects.equals(this.encodeAs, webhooksIntegrationUpdateRequest.encodeAs) && Objects.equals(this.name, webhooksIntegrationUpdateRequest.name) && Objects.equals(this.payload, webhooksIntegrationUpdateRequest.payload) - && Objects.equals(this.url, webhooksIntegrationUpdateRequest.url); + && Objects.equals(this.url, webhooksIntegrationUpdateRequest.url) + && Objects.equals( + this.additionalProperties, webhooksIntegrationUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customHeaders, encodeAs, name, payload, url); + return Objects.hash(customHeaders, encodeAs, name, payload, url, additionalProperties); } @Override @@ -200,6 +252,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/Widget.java b/src/main/java/com/datadog/api/client/v1/model/Widget.java index 0c56527981d..e3273b321e7 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Widget.java +++ b/src/main/java/com/datadog/api/client/v1/model/Widget.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -115,6 +119,52 @@ public void setLayout(WidgetLayout layout) { this.layout = layout; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Widget + */ + @JsonAnySetter + public Widget putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Widget object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,13 @@ public boolean equals(Object o) { Widget widget = (Widget) o; return Objects.equals(this.definition, widget.definition) && Objects.equals(this.id, widget.id) - && Objects.equals(this.layout, widget.layout); + && Objects.equals(this.layout, widget.layout) + && Objects.equals(this.additionalProperties, widget.additionalProperties); } @Override public int hashCode() { - return Objects.hash(definition, id, layout); + return Objects.hash(definition, id, layout, additionalProperties); } @Override @@ -142,6 +193,9 @@ public String toString() { sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetAxis.java b/src/main/java/com/datadog/api/client/v1/model/WidgetAxis.java index eeeb02042c6..0a6660b7718 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetAxis.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetAxis.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Axis controls for the widget. */ @@ -145,6 +149,52 @@ public void setScale(String scale) { this.scale = scale; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetAxis + */ + @JsonAnySetter + public WidgetAxis putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetAxis object is equal to o. */ @Override public boolean equals(Object o) { @@ -159,12 +209,13 @@ public boolean equals(Object o) { && Objects.equals(this.label, widgetAxis.label) && Objects.equals(this.max, widgetAxis.max) && Objects.equals(this.min, widgetAxis.min) - && Objects.equals(this.scale, widgetAxis.scale); + && Objects.equals(this.scale, widgetAxis.scale) + && Objects.equals(this.additionalProperties, widgetAxis.additionalProperties); } @Override public int hashCode() { - return Objects.hash(includeZero, label, max, min, scale); + return Objects.hash(includeZero, label, max, min, scale, additionalProperties); } @Override @@ -176,6 +227,9 @@ public String toString() { sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append(" scale: ").append(toIndentedString(scale)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetConditionalFormat.java b/src/main/java/com/datadog/api/client/v1/model/WidgetConditionalFormat.java index 4fa615e6483..e0e5d268491 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetConditionalFormat.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetConditionalFormat.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Define a conditional format for the widget. */ @@ -264,6 +268,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetConditionalFormat + */ + @JsonAnySetter + public WidgetConditionalFormat putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetConditionalFormat object is equal to o. */ @Override public boolean equals(Object o) { @@ -282,7 +332,8 @@ public boolean equals(Object o) { && Objects.equals(this.metric, widgetConditionalFormat.metric) && Objects.equals(this.palette, widgetConditionalFormat.palette) && Objects.equals(this.timeframe, widgetConditionalFormat.timeframe) - && Objects.equals(this.value, widgetConditionalFormat.value); + && Objects.equals(this.value, widgetConditionalFormat.value) + && Objects.equals(this.additionalProperties, widgetConditionalFormat.additionalProperties); } @Override @@ -296,7 +347,8 @@ public int hashCode() { metric, palette, timeframe, - value); + value, + additionalProperties); } @Override @@ -312,6 +364,9 @@ public String toString() { sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetCustomLink.java b/src/main/java/com/datadog/api/client/v1/model/WidgetCustomLink.java index 5566cfc2674..3e0a205593e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetCustomLink.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetCustomLink.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Custom links help you connect a data value to a URL, like a Datadog page or your AWS console. */ @@ -123,6 +127,52 @@ public void setOverrideLabel(String overrideLabel) { this.overrideLabel = overrideLabel; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetCustomLink + */ + @JsonAnySetter + public WidgetCustomLink putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetCustomLink object is equal to o. */ @Override public boolean equals(Object o) { @@ -136,12 +186,13 @@ public boolean equals(Object o) { return Objects.equals(this.isHidden, widgetCustomLink.isHidden) && Objects.equals(this.label, widgetCustomLink.label) && Objects.equals(this.link, widgetCustomLink.link) - && Objects.equals(this.overrideLabel, widgetCustomLink.overrideLabel); + && Objects.equals(this.overrideLabel, widgetCustomLink.overrideLabel) + && Objects.equals(this.additionalProperties, widgetCustomLink.additionalProperties); } @Override public int hashCode() { - return Objects.hash(isHidden, label, link, overrideLabel); + return Objects.hash(isHidden, label, link, overrideLabel, additionalProperties); } @Override @@ -152,6 +203,9 @@ public String toString() { sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" link: ").append(toIndentedString(link)).append("\n"); sb.append(" overrideLabel: ").append(toIndentedString(overrideLabel)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetEvent.java b/src/main/java/com/datadog/api/client/v1/model/WidgetEvent.java index 7c8ca0b4acf..dc412eef2e8 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetEvent.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetEvent.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -79,6 +83,52 @@ public void setTagsExecution(String tagsExecution) { this.tagsExecution = tagsExecution; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetEvent + */ + @JsonAnySetter + public WidgetEvent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetEvent object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,13 @@ public boolean equals(Object o) { } WidgetEvent widgetEvent = (WidgetEvent) o; return Objects.equals(this.q, widgetEvent.q) - && Objects.equals(this.tagsExecution, widgetEvent.tagsExecution); + && Objects.equals(this.tagsExecution, widgetEvent.tagsExecution) + && Objects.equals(this.additionalProperties, widgetEvent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(q, tagsExecution); + return Objects.hash(q, tagsExecution, additionalProperties); } @Override @@ -104,6 +155,9 @@ public String toString() { sb.append("class WidgetEvent {\n"); sb.append(" q: ").append(toIndentedString(q)).append("\n"); sb.append(" tagsExecution: ").append(toIndentedString(tagsExecution)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetFieldSort.java b/src/main/java/com/datadog/api/client/v1/model/WidgetFieldSort.java index f13296990d7..552e8ac712a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetFieldSort.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetFieldSort.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Which column and order to sort by */ @@ -80,6 +84,52 @@ public void setOrder(WidgetSort order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetFieldSort + */ + @JsonAnySetter + public WidgetFieldSort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetFieldSort object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,13 @@ public boolean equals(Object o) { } WidgetFieldSort widgetFieldSort = (WidgetFieldSort) o; return Objects.equals(this.column, widgetFieldSort.column) - && Objects.equals(this.order, widgetFieldSort.order); + && Objects.equals(this.order, widgetFieldSort.order) + && Objects.equals(this.additionalProperties, widgetFieldSort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(column, order); + return Objects.hash(column, order, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append("class WidgetFieldSort {\n"); sb.append(" column: ").append(toIndentedString(column)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetFormula.java b/src/main/java/com/datadog/api/client/v1/model/WidgetFormula.java index 4b987e28c59..4b95bc51e69 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetFormula.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetFormula.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Formula to be used in a widget query. */ @@ -197,6 +201,52 @@ public void setStyle(WidgetFormulaStyle style) { this.style = style; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetFormula + */ + @JsonAnySetter + public WidgetFormula putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetFormula object is equal to o. */ @Override public boolean equals(Object o) { @@ -212,12 +262,14 @@ public boolean equals(Object o) { && Objects.equals(this.conditionalFormats, widgetFormula.conditionalFormats) && Objects.equals(this.formula, widgetFormula.formula) && Objects.equals(this.limit, widgetFormula.limit) - && Objects.equals(this.style, widgetFormula.style); + && Objects.equals(this.style, widgetFormula.style) + && Objects.equals(this.additionalProperties, widgetFormula.additionalProperties); } @Override public int hashCode() { - return Objects.hash(alias, cellDisplayMode, conditionalFormats, formula, limit, style); + return Objects.hash( + alias, cellDisplayMode, conditionalFormats, formula, limit, style, additionalProperties); } @Override @@ -230,6 +282,9 @@ public String toString() { sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaLimit.java b/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaLimit.java index 36028e00e29..14fb5aeb5a3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaLimit.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaLimit.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options for limiting results returned. */ @@ -70,6 +74,52 @@ public void setOrder(QuerySortOrder order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetFormulaLimit + */ + @JsonAnySetter + public WidgetFormulaLimit putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetFormulaLimit object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } WidgetFormulaLimit widgetFormulaLimit = (WidgetFormulaLimit) o; return Objects.equals(this.count, widgetFormulaLimit.count) - && Objects.equals(this.order, widgetFormulaLimit.order); + && Objects.equals(this.order, widgetFormulaLimit.order) + && Objects.equals(this.additionalProperties, widgetFormulaLimit.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, order); + return Objects.hash(count, order, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class WidgetFormulaLimit {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaStyle.java b/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaStyle.java index b32bd07ddf7..9053372c9da 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaStyle.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetFormulaStyle.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Styling options for widget formulas. */ @@ -70,6 +74,52 @@ public void setPaletteIndex(Long paletteIndex) { this.paletteIndex = paletteIndex; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetFormulaStyle + */ + @JsonAnySetter + public WidgetFormulaStyle putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetFormulaStyle object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } WidgetFormulaStyle widgetFormulaStyle = (WidgetFormulaStyle) o; return Objects.equals(this.palette, widgetFormulaStyle.palette) - && Objects.equals(this.paletteIndex, widgetFormulaStyle.paletteIndex); + && Objects.equals(this.paletteIndex, widgetFormulaStyle.paletteIndex) + && Objects.equals(this.additionalProperties, widgetFormulaStyle.additionalProperties); } @Override public int hashCode() { - return Objects.hash(palette, paletteIndex); + return Objects.hash(palette, paletteIndex, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class WidgetFormulaStyle {\n"); sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); sb.append(" paletteIndex: ").append(toIndentedString(paletteIndex)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java b/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java index 605f33650ee..f3e2d2d9a4a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -162,6 +166,52 @@ public void setY(Long y) { this.y = y; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetLayout + */ + @JsonAnySetter + public WidgetLayout putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetLayout object is equal to o. */ @Override public boolean equals(Object o) { @@ -176,12 +226,13 @@ public boolean equals(Object o) { && Objects.equals(this.isColumnBreak, widgetLayout.isColumnBreak) && Objects.equals(this.width, widgetLayout.width) && Objects.equals(this.x, widgetLayout.x) - && Objects.equals(this.y, widgetLayout.y); + && Objects.equals(this.y, widgetLayout.y) + && Objects.equals(this.additionalProperties, widgetLayout.additionalProperties); } @Override public int hashCode() { - return Objects.hash(height, isColumnBreak, width, x, y); + return Objects.hash(height, isColumnBreak, width, x, y, additionalProperties); } @Override @@ -193,6 +244,9 @@ public String toString() { sb.append(" width: ").append(toIndentedString(width)).append("\n"); sb.append(" x: ").append(toIndentedString(x)).append("\n"); sb.append(" y: ").append(toIndentedString(y)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetMarker.java b/src/main/java/com/datadog/api/client/v1/model/WidgetMarker.java index 5c02991677b..81c77987797 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetMarker.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetMarker.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Markers allow you to add visual conditional formatting for your graphs. */ @@ -127,6 +131,52 @@ public void setValue(String value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetMarker + */ + @JsonAnySetter + public WidgetMarker putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetMarker object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,13 @@ public boolean equals(Object o) { return Objects.equals(this.displayType, widgetMarker.displayType) && Objects.equals(this.label, widgetMarker.label) && Objects.equals(this.time, widgetMarker.time) - && Objects.equals(this.value, widgetMarker.value); + && Objects.equals(this.value, widgetMarker.value) + && Objects.equals(this.additionalProperties, widgetMarker.additionalProperties); } @Override public int hashCode() { - return Objects.hash(displayType, label, time, value); + return Objects.hash(displayType, label, time, value, additionalProperties); } @Override @@ -156,6 +207,9 @@ public String toString() { sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetRequestStyle.java b/src/main/java/com/datadog/api/client/v1/model/WidgetRequestStyle.java index 530bc96abc6..410fc6f4244 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetRequestStyle.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetRequestStyle.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Define request widget style. */ @@ -102,6 +106,52 @@ public void setPalette(String palette) { this.palette = palette; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetRequestStyle + */ + @JsonAnySetter + public WidgetRequestStyle putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetRequestStyle object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,13 @@ public boolean equals(Object o) { WidgetRequestStyle widgetRequestStyle = (WidgetRequestStyle) o; return Objects.equals(this.lineType, widgetRequestStyle.lineType) && Objects.equals(this.lineWidth, widgetRequestStyle.lineWidth) - && Objects.equals(this.palette, widgetRequestStyle.palette); + && Objects.equals(this.palette, widgetRequestStyle.palette) + && Objects.equals(this.additionalProperties, widgetRequestStyle.additionalProperties); } @Override public int hashCode() { - return Objects.hash(lineType, lineWidth, palette); + return Objects.hash(lineType, lineWidth, palette, additionalProperties); } @Override @@ -129,6 +180,9 @@ public String toString() { sb.append(" lineType: ").append(toIndentedString(lineType)).append("\n"); sb.append(" lineWidth: ").append(toIndentedString(lineWidth)).append("\n"); sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetStyle.java b/src/main/java/com/datadog/api/client/v1/model/WidgetStyle.java index b3f77a44f9a..aae0dfa0493 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetStyle.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetStyle.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Widget style definition. */ @@ -42,6 +46,52 @@ public void setPalette(String palette) { this.palette = palette; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetStyle + */ + @JsonAnySetter + public WidgetStyle putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetStyle object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } WidgetStyle widgetStyle = (WidgetStyle) o; - return Objects.equals(this.palette, widgetStyle.palette); + return Objects.equals(this.palette, widgetStyle.palette) + && Objects.equals(this.additionalProperties, widgetStyle.additionalProperties); } @Override public int hashCode() { - return Objects.hash(palette); + return Objects.hash(palette, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WidgetStyle {\n"); sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetTime.java b/src/main/java/com/datadog/api/client/v1/model/WidgetTime.java index 3c00c67b66a..934d874a2f5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetTime.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetTime.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v1.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Time setting for the widget. */ @@ -46,6 +50,52 @@ public void setLiveSpan(WidgetLiveSpan liveSpan) { this.liveSpan = liveSpan; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return WidgetTime + */ + @JsonAnySetter + public WidgetTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this WidgetTime object is equal to o. */ @Override public boolean equals(Object o) { @@ -56,12 +106,13 @@ public boolean equals(Object o) { return false; } WidgetTime widgetTime = (WidgetTime) o; - return Objects.equals(this.liveSpan, widgetTime.liveSpan); + return Objects.equals(this.liveSpan, widgetTime.liveSpan) + && Objects.equals(this.additionalProperties, widgetTime.additionalProperties); } @Override public int hashCode() { - return Objects.hash(liveSpan); + return Objects.hash(liveSpan, additionalProperties); } @Override @@ -69,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WidgetTime {\n"); sb.append(" liveSpan: ").append(toIndentedString(liveSpan)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIErrorResponse.java b/src/main/java/com/datadog/api/client/v2/model/APIErrorResponse.java index 52d5deb24ba..5765eb5958f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIErrorResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIErrorResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** API error response. */ @@ -57,6 +61,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIErrorResponse + */ + @JsonAnySetter + public APIErrorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIErrorResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,13 @@ public boolean equals(Object o) { return false; } APIErrorResponse apiErrorResponse = (APIErrorResponse) o; - return Objects.equals(this.errors, apiErrorResponse.errors); + return Objects.equals(this.errors, apiErrorResponse.errors) + && Objects.equals(this.additionalProperties, apiErrorResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors); + return Objects.hash(errors, additionalProperties); } @Override @@ -80,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIErrorResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateAttributes.java index f42b991c6bd..15a49690732 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes used to create an API Key. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyCreateAttributes + */ + @JsonAnySetter + public APIKeyCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } APIKeyCreateAttributes apiKeyCreateAttributes = (APIKeyCreateAttributes) o; - return Objects.equals(this.name, apiKeyCreateAttributes.name); + return Objects.equals(this.name, apiKeyCreateAttributes.name) + && Objects.equals(this.additionalProperties, apiKeyCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIKeyCreateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateData.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateData.java index ec457136f2b..9c4d3837f47 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object used to create an API key. */ @@ -83,6 +87,52 @@ public void setType(APIKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyCreateData + */ + @JsonAnySetter + public APIKeyCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } APIKeyCreateData apiKeyCreateData = (APIKeyCreateData) o; return Objects.equals(this.attributes, apiKeyCreateData.attributes) - && Objects.equals(this.type, apiKeyCreateData.type); + && Objects.equals(this.type, apiKeyCreateData.type) + && Objects.equals(this.additionalProperties, apiKeyCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class APIKeyCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateRequest.java index 9624890e1f1..3668ce8765e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request used to create an API key. */ @@ -52,6 +56,52 @@ public void setData(APIKeyCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyCreateRequest + */ + @JsonAnySetter + public APIKeyCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } APIKeyCreateRequest apiKeyCreateRequest = (APIKeyCreateRequest) o; - return Objects.equals(this.data, apiKeyCreateRequest.data); + return Objects.equals(this.data, apiKeyCreateRequest.data) + && Objects.equals(this.additionalProperties, apiKeyCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIKeyCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyRelationships.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyRelationships.java index 4649ef65c55..bee5e220077 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Resources related to the API key. */ @@ -71,6 +75,52 @@ public void setModifiedBy(RelationshipToUser modifiedBy) { this.modifiedBy = modifiedBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyRelationships + */ + @JsonAnySetter + public APIKeyRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } APIKeyRelationships apiKeyRelationships = (APIKeyRelationships) o; return Objects.equals(this.createdBy, apiKeyRelationships.createdBy) - && Objects.equals(this.modifiedBy, apiKeyRelationships.modifiedBy); + && Objects.equals(this.modifiedBy, apiKeyRelationships.modifiedBy) + && Objects.equals(this.additionalProperties, apiKeyRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdBy, modifiedBy); + return Objects.hash(createdBy, modifiedBy, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class APIKeyRelationships {\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyResponse.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyResponse.java index 8157265fb5c..02d2b04cc4d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response for retrieving an API key. */ @@ -81,6 +85,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyResponse + */ + @JsonAnySetter + public APIKeyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,13 @@ public boolean equals(Object o) { } APIKeyResponse apiKeyResponse = (APIKeyResponse) o; return Objects.equals(this.data, apiKeyResponse.data) - && Objects.equals(this.included, apiKeyResponse.included); + && Objects.equals(this.included, apiKeyResponse.included) + && Objects.equals(this.additionalProperties, apiKeyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -106,6 +157,9 @@ public String toString() { sb.append("class APIKeyResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateAttributes.java index d3306260814..ea4b1273997 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes used to update an API Key. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyUpdateAttributes + */ + @JsonAnySetter + public APIKeyUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } APIKeyUpdateAttributes apiKeyUpdateAttributes = (APIKeyUpdateAttributes) o; - return Objects.equals(this.name, apiKeyUpdateAttributes.name); + return Objects.equals(this.name, apiKeyUpdateAttributes.name) + && Objects.equals(this.additionalProperties, apiKeyUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIKeyUpdateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateData.java index f6d6f8d5c2e..ce73daf4f9c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object used to update an API key. */ @@ -112,6 +116,52 @@ public void setType(APIKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyUpdateData + */ + @JsonAnySetter + public APIKeyUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { APIKeyUpdateData apiKeyUpdateData = (APIKeyUpdateData) o; return Objects.equals(this.attributes, apiKeyUpdateData.attributes) && Objects.equals(this.id, apiKeyUpdateData.id) - && Objects.equals(this.type, apiKeyUpdateData.type); + && Objects.equals(this.type, apiKeyUpdateData.type) + && Objects.equals(this.additionalProperties, apiKeyUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateRequest.java index 4478e0a3e1d..d5fb6c840cf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeyUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request used to update an API key. */ @@ -52,6 +56,52 @@ public void setData(APIKeyUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeyUpdateRequest + */ + @JsonAnySetter + public APIKeyUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeyUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } APIKeyUpdateRequest apiKeyUpdateRequest = (APIKeyUpdateRequest) o; - return Objects.equals(this.data, apiKeyUpdateRequest.data); + return Objects.equals(this.data, apiKeyUpdateRequest.data) + && Objects.equals(this.additionalProperties, apiKeyUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class APIKeyUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/APIKeysResponse.java b/src/main/java/com/datadog/api/client/v2/model/APIKeysResponse.java index 1318e68293e..34d966c18d8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APIKeysResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/APIKeysResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response for a list of API keys. */ @@ -92,6 +96,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return APIKeysResponse + */ + @JsonAnySetter + public APIKeysResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this APIKeysResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -103,12 +153,13 @@ public boolean equals(Object o) { } APIKeysResponse apiKeysResponse = (APIKeysResponse) o; return Objects.equals(this.data, apiKeysResponse.data) - && Objects.equals(this.included, apiKeysResponse.included); + && Objects.equals(this.included, apiKeysResponse.included) + && Objects.equals(this.additionalProperties, apiKeysResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -117,6 +168,9 @@ public String toString() { sb.append("class APIKeysResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateAttributes.java index d63f7b8557f..b53f8afc50e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -103,6 +107,52 @@ public void setScopes(List scopes) { this.scopes = JsonNullable.>of(scopes); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyCreateAttributes + */ + @JsonAnySetter + public ApplicationKeyCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,14 @@ public boolean equals(Object o) { ApplicationKeyCreateAttributes applicationKeyCreateAttributes = (ApplicationKeyCreateAttributes) o; return Objects.equals(this.name, applicationKeyCreateAttributes.name) - && Objects.equals(this.scopes, applicationKeyCreateAttributes.scopes); + && Objects.equals(this.scopes, applicationKeyCreateAttributes.scopes) + && Objects.equals( + this.additionalProperties, applicationKeyCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, scopes); + return Objects.hash(name, scopes, additionalProperties); } @Override @@ -129,6 +181,9 @@ public String toString() { sb.append("class ApplicationKeyCreateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateData.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateData.java index 5b79fe216fe..2f97653f9a0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object used to create an application key. */ @@ -86,6 +90,52 @@ public void setType(ApplicationKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyCreateData + */ + @JsonAnySetter + public ApplicationKeyCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } ApplicationKeyCreateData applicationKeyCreateData = (ApplicationKeyCreateData) o; return Objects.equals(this.attributes, applicationKeyCreateData.attributes) - && Objects.equals(this.type, applicationKeyCreateData.type); + && Objects.equals(this.type, applicationKeyCreateData.type) + && Objects.equals(this.additionalProperties, applicationKeyCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class ApplicationKeyCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateRequest.java index aab955e335a..894b48d9cfd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request used to create an application key. */ @@ -52,6 +56,52 @@ public void setData(ApplicationKeyCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyCreateRequest + */ + @JsonAnySetter + public ApplicationKeyCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } ApplicationKeyCreateRequest applicationKeyCreateRequest = (ApplicationKeyCreateRequest) o; - return Objects.equals(this.data, applicationKeyCreateRequest.data); + return Objects.equals(this.data, applicationKeyCreateRequest.data) + && Objects.equals( + this.additionalProperties, applicationKeyCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApplicationKeyCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyRelationships.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyRelationships.java index f1082059439..8327bf6d2d1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Resources related to the application key. */ @@ -43,6 +47,52 @@ public void setOwnedBy(RelationshipToUser ownedBy) { this.ownedBy = ownedBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyRelationships + */ + @JsonAnySetter + public ApplicationKeyRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } ApplicationKeyRelationships applicationKeyRelationships = (ApplicationKeyRelationships) o; - return Objects.equals(this.ownedBy, applicationKeyRelationships.ownedBy); + return Objects.equals(this.ownedBy, applicationKeyRelationships.ownedBy) + && Objects.equals( + this.additionalProperties, applicationKeyRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(ownedBy); + return Objects.hash(ownedBy, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApplicationKeyRelationships {\n"); sb.append(" ownedBy: ").append(toIndentedString(ownedBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyResponse.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyResponse.java index 35e7ce0424c..bae9e470001 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response for retrieving an application key. */ @@ -84,6 +88,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyResponse + */ + @JsonAnySetter + public ApplicationKeyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,13 @@ public boolean equals(Object o) { } ApplicationKeyResponse applicationKeyResponse = (ApplicationKeyResponse) o; return Objects.equals(this.data, applicationKeyResponse.data) - && Objects.equals(this.included, applicationKeyResponse.included); + && Objects.equals(this.included, applicationKeyResponse.included) + && Objects.equals(this.additionalProperties, applicationKeyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -109,6 +160,9 @@ public String toString() { sb.append("class ApplicationKeyResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateAttributes.java index fc6ce5c0b72..7e24054cd75 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -95,6 +99,52 @@ public void setScopes(List scopes) { this.scopes = JsonNullable.>of(scopes); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyUpdateAttributes + */ + @JsonAnySetter + public ApplicationKeyUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,14 @@ public boolean equals(Object o) { ApplicationKeyUpdateAttributes applicationKeyUpdateAttributes = (ApplicationKeyUpdateAttributes) o; return Objects.equals(this.name, applicationKeyUpdateAttributes.name) - && Objects.equals(this.scopes, applicationKeyUpdateAttributes.scopes); + && Objects.equals(this.scopes, applicationKeyUpdateAttributes.scopes) + && Objects.equals( + this.additionalProperties, applicationKeyUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, scopes); + return Objects.hash(name, scopes, additionalProperties); } @Override @@ -121,6 +173,9 @@ public String toString() { sb.append("class ApplicationKeyUpdateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateData.java index 9f0eee8616c..a219661f303 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object used to update an application key. */ @@ -112,6 +116,52 @@ public void setType(ApplicationKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyUpdateData + */ + @JsonAnySetter + public ApplicationKeyUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { ApplicationKeyUpdateData applicationKeyUpdateData = (ApplicationKeyUpdateData) o; return Objects.equals(this.attributes, applicationKeyUpdateData.attributes) && Objects.equals(this.id, applicationKeyUpdateData.id) - && Objects.equals(this.type, applicationKeyUpdateData.type); + && Objects.equals(this.type, applicationKeyUpdateData.type) + && Objects.equals(this.additionalProperties, applicationKeyUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateRequest.java index 6acb592d1d9..0c3e48c4f50 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ApplicationKeyUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request used to update an application key. */ @@ -52,6 +56,52 @@ public void setData(ApplicationKeyUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ApplicationKeyUpdateRequest + */ + @JsonAnySetter + public ApplicationKeyUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ApplicationKeyUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } ApplicationKeyUpdateRequest applicationKeyUpdateRequest = (ApplicationKeyUpdateRequest) o; - return Objects.equals(this.data, applicationKeyUpdateRequest.data); + return Objects.equals(this.data, applicationKeyUpdateRequest.data) + && Objects.equals( + this.additionalProperties, applicationKeyUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApplicationKeyUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEvent.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEvent.java index 2570b441764..ef056a4748a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEvent.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEvent.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object description of an Audit Logs event after it is processed and stored by Datadog. */ @@ -99,6 +103,52 @@ public void setType(AuditLogsEventType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsEvent + */ + @JsonAnySetter + public AuditLogsEvent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsEvent object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { AuditLogsEvent auditLogsEvent = (AuditLogsEvent) o; return Objects.equals(this.attributes, auditLogsEvent.attributes) && Objects.equals(this.id, auditLogsEvent.id) - && Objects.equals(this.type, auditLogsEvent.type); + && Objects.equals(this.type, auditLogsEvent.type) + && Objects.equals(this.additionalProperties, auditLogsEvent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java index 9981f61024e..4eea42aa8ed 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -141,6 +143,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsEventAttributes + */ + @JsonAnySetter + public AuditLogsEventAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsEventAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +202,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, auditLogsEventAttributes.attributes) && Objects.equals(this.service, auditLogsEventAttributes.service) && Objects.equals(this.tags, auditLogsEventAttributes.tags) - && Objects.equals(this.timestamp, auditLogsEventAttributes.timestamp); + && Objects.equals(this.timestamp, auditLogsEventAttributes.timestamp) + && Objects.equals(this.additionalProperties, auditLogsEventAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, service, tags, timestamp); + return Objects.hash(attributes, service, tags, timestamp, additionalProperties); } @Override @@ -170,6 +219,9 @@ public String toString() { sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventsResponse.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventsResponse.java index f7b7942c1a2..b68f77eebdf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object with all events matching the request and pagination information. */ @@ -110,6 +114,52 @@ public void setMeta(AuditLogsResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsEventsResponse + */ + @JsonAnySetter + public AuditLogsEventsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsEventsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { AuditLogsEventsResponse auditLogsEventsResponse = (AuditLogsEventsResponse) o; return Objects.equals(this.data, auditLogsEventsResponse.data) && Objects.equals(this.links, auditLogsEventsResponse.links) - && Objects.equals(this.meta, auditLogsEventsResponse.meta); + && Objects.equals(this.meta, auditLogsEventsResponse.meta) + && Objects.equals(this.additionalProperties, auditLogsEventsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryFilter.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryFilter.java index 493237ca805..d2420cb76de 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Search and filter query settings. */ @@ -96,6 +100,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsQueryFilter + */ + @JsonAnySetter + public AuditLogsQueryFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsQueryFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,13 @@ public boolean equals(Object o) { AuditLogsQueryFilter auditLogsQueryFilter = (AuditLogsQueryFilter) o; return Objects.equals(this.from, auditLogsQueryFilter.from) && Objects.equals(this.query, auditLogsQueryFilter.query) - && Objects.equals(this.to, auditLogsQueryFilter.to); + && Objects.equals(this.to, auditLogsQueryFilter.to) + && Objects.equals(this.additionalProperties, auditLogsQueryFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, query, to); + return Objects.hash(from, query, to, additionalProperties); } @Override @@ -123,6 +174,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryOptions.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryOptions.java index b48ed4f5a99..ddc433e2893 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -73,6 +77,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsQueryOptions + */ + @JsonAnySetter + public AuditLogsQueryOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsQueryOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } AuditLogsQueryOptions auditLogsQueryOptions = (AuditLogsQueryOptions) o; return Objects.equals(this.timeOffset, auditLogsQueryOptions.timeOffset) - && Objects.equals(this.timezone, auditLogsQueryOptions.timezone); + && Objects.equals(this.timezone, auditLogsQueryOptions.timezone) + && Objects.equals(this.additionalProperties, auditLogsQueryOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timeOffset, timezone); + return Objects.hash(timeOffset, timezone, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class AuditLogsQueryOptions {\n"); sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryPageOptions.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryPageOptions.java index dcb73277043..a0243f0edec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryPageOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsQueryPageOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes for listing events. */ @@ -69,6 +73,52 @@ public void setLimit(Integer limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsQueryPageOptions + */ + @JsonAnySetter + public AuditLogsQueryPageOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsQueryPageOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } AuditLogsQueryPageOptions auditLogsQueryPageOptions = (AuditLogsQueryPageOptions) o; return Objects.equals(this.cursor, auditLogsQueryPageOptions.cursor) - && Objects.equals(this.limit, auditLogsQueryPageOptions.limit); + && Objects.equals(this.limit, auditLogsQueryPageOptions.limit) + && Objects.equals( + this.additionalProperties, auditLogsQueryPageOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor, limit); + return Objects.hash(cursor, limit, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class AuditLogsQueryPageOptions {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseLinks.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseLinks.java index aeecd971b76..d9352d00d25 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Links attributes. */ @@ -43,6 +47,52 @@ public void setNext(String next) { this.next = next; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsResponseLinks + */ + @JsonAnySetter + public AuditLogsResponseLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } AuditLogsResponseLinks auditLogsResponseLinks = (AuditLogsResponseLinks) o; - return Objects.equals(this.next, auditLogsResponseLinks.next); + return Objects.equals(this.next, auditLogsResponseLinks.next) + && Objects.equals(this.additionalProperties, auditLogsResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(next); + return Objects.hash(next, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuditLogsResponseLinks {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseMetadata.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseMetadata.java index f53b56bd55e..ca08bc92a04 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponseMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request. */ @@ -164,6 +168,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsResponseMetadata + */ + @JsonAnySetter + public AuditLogsResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -178,12 +228,14 @@ public boolean equals(Object o) { && Objects.equals(this.page, auditLogsResponseMetadata.page) && Objects.equals(this.requestId, auditLogsResponseMetadata.requestId) && Objects.equals(this.status, auditLogsResponseMetadata.status) - && Objects.equals(this.warnings, auditLogsResponseMetadata.warnings); + && Objects.equals(this.warnings, auditLogsResponseMetadata.warnings) + && Objects.equals( + this.additionalProperties, auditLogsResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(elapsed, page, requestId, status, warnings); + return Objects.hash(elapsed, page, requestId, status, warnings, additionalProperties); } @Override @@ -195,6 +247,9 @@ public String toString() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponsePage.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponsePage.java index ac605063e28..d5f94d94bd5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponsePage.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsResponsePage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes. */ @@ -43,6 +47,52 @@ public void setAfter(String after) { this.after = after; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsResponsePage + */ + @JsonAnySetter + public AuditLogsResponsePage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsResponsePage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } AuditLogsResponsePage auditLogsResponsePage = (AuditLogsResponsePage) o; - return Objects.equals(this.after, auditLogsResponsePage.after); + return Objects.equals(this.after, auditLogsResponsePage.after) + && Objects.equals(this.additionalProperties, auditLogsResponsePage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after); + return Objects.hash(after, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuditLogsResponsePage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsSearchEventsRequest.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsSearchEventsRequest.java index bddbf5d1a8c..d76826f44b1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsSearchEventsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsSearchEventsRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The request for a Audit Logs events list. */ @@ -127,6 +131,52 @@ public void setSort(AuditLogsSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsSearchEventsRequest + */ + @JsonAnySetter + public AuditLogsSearchEventsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsSearchEventsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,14 @@ public boolean equals(Object o) { return Objects.equals(this.filter, auditLogsSearchEventsRequest.filter) && Objects.equals(this.options, auditLogsSearchEventsRequest.options) && Objects.equals(this.page, auditLogsSearchEventsRequest.page) - && Objects.equals(this.sort, auditLogsSearchEventsRequest.sort); + && Objects.equals(this.sort, auditLogsSearchEventsRequest.sort) + && Objects.equals( + this.additionalProperties, auditLogsSearchEventsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, options, page, sort); + return Objects.hash(filter, options, page, sort, additionalProperties); } @Override @@ -156,6 +208,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsWarning.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsWarning.java index d28cde45cb3..18b0ab31df8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsWarning.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsWarning.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Warning message indicating something that went wrong with the query. */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuditLogsWarning + */ + @JsonAnySetter + public AuditLogsWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuditLogsWarning object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { AuditLogsWarning auditLogsWarning = (AuditLogsWarning) o; return Objects.equals(this.code, auditLogsWarning.code) && Objects.equals(this.detail, auditLogsWarning.detail) - && Objects.equals(this.title, auditLogsWarning.title); + && Objects.equals(this.title, auditLogsWarning.title) + && Objects.equals(this.additionalProperties, auditLogsWarning.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, detail, title); + return Objects.hash(code, detail, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMapping.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMapping.java index 08d7eecf1c7..0fe8960b7e0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMapping.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMapping.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The AuthN Mapping object returned by API. */ @@ -135,6 +139,52 @@ public void setType(AuthNMappingsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMapping + */ + @JsonAnySetter + public AuthNMapping putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMapping object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, authNMapping.attributes) && Objects.equals(this.id, authNMapping.id) && Objects.equals(this.relationships, authNMapping.relationships) - && Objects.equals(this.type, authNMapping.type); + && Objects.equals(this.type, authNMapping.type) + && Objects.equals(this.additionalProperties, authNMapping.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingAttributes.java index 817a4659dc1..b4c25aa61a0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of AuthN Mapping. */ @@ -128,6 +132,52 @@ public void setSamlAssertionAttributeId(String samlAssertionAttributeId) { this.samlAssertionAttributeId = samlAssertionAttributeId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingAttributes + */ + @JsonAnySetter + public AuthNMappingAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -143,13 +193,19 @@ public boolean equals(Object o) { && Objects.equals(this.createdAt, authNMappingAttributes.createdAt) && Objects.equals(this.modifiedAt, authNMappingAttributes.modifiedAt) && Objects.equals( - this.samlAssertionAttributeId, authNMappingAttributes.samlAssertionAttributeId); + this.samlAssertionAttributeId, authNMappingAttributes.samlAssertionAttributeId) + && Objects.equals(this.additionalProperties, authNMappingAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - attributeKey, attributeValue, createdAt, modifiedAt, samlAssertionAttributeId); + attributeKey, + attributeValue, + createdAt, + modifiedAt, + samlAssertionAttributeId, + additionalProperties); } @Override @@ -163,6 +219,9 @@ public String toString() { sb.append(" samlAssertionAttributeId: ") .append(toIndentedString(samlAssertionAttributeId)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateAttributes.java index 0feef297068..cd744f8fe58 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Key/Value pair of attributes used for create request. */ @@ -69,6 +73,52 @@ public void setAttributeValue(String attributeValue) { this.attributeValue = attributeValue; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingCreateAttributes + */ + @JsonAnySetter + public AuthNMappingCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } AuthNMappingCreateAttributes authNMappingCreateAttributes = (AuthNMappingCreateAttributes) o; return Objects.equals(this.attributeKey, authNMappingCreateAttributes.attributeKey) - && Objects.equals(this.attributeValue, authNMappingCreateAttributes.attributeValue); + && Objects.equals(this.attributeValue, authNMappingCreateAttributes.attributeValue) + && Objects.equals( + this.additionalProperties, authNMappingCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributeKey, attributeValue); + return Objects.hash(attributeKey, attributeValue, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class AuthNMappingCreateAttributes {\n"); sb.append(" attributeKey: ").append(toIndentedString(attributeKey)).append("\n"); sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateData.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateData.java index c06c616404a..3456911f945 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data for creating an AuthN Mapping. */ @@ -109,6 +113,52 @@ public void setType(AuthNMappingsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingCreateData + */ + @JsonAnySetter + public AuthNMappingCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { AuthNMappingCreateData authNMappingCreateData = (AuthNMappingCreateData) o; return Objects.equals(this.attributes, authNMappingCreateData.attributes) && Objects.equals(this.relationships, authNMappingCreateData.relationships) - && Objects.equals(this.type, authNMappingCreateData.type); + && Objects.equals(this.type, authNMappingCreateData.type) + && Objects.equals(this.additionalProperties, authNMappingCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRelationships.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRelationships.java index 0f311ce467f..5ccada348e3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship of AuthN Mapping create object to Role. */ @@ -43,6 +47,52 @@ public void setRole(RelationshipToRole role) { this.role = role; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingCreateRelationships + */ + @JsonAnySetter + public AuthNMappingCreateRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingCreateRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } AuthNMappingCreateRelationships authNMappingCreateRelationships = (AuthNMappingCreateRelationships) o; - return Objects.equals(this.role, authNMappingCreateRelationships.role); + return Objects.equals(this.role, authNMappingCreateRelationships.role) + && Objects.equals( + this.additionalProperties, authNMappingCreateRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(role); + return Objects.hash(role, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthNMappingCreateRelationships {\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRequest.java index a67c13eb1cc..603db4ac6b6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request for creating an AuthN Mapping. */ @@ -52,6 +56,52 @@ public void setData(AuthNMappingCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingCreateRequest + */ + @JsonAnySetter + public AuthNMappingCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } AuthNMappingCreateRequest authNMappingCreateRequest = (AuthNMappingCreateRequest) o; - return Objects.equals(this.data, authNMappingCreateRequest.data); + return Objects.equals(this.data, authNMappingCreateRequest.data) + && Objects.equals( + this.additionalProperties, authNMappingCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthNMappingCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingRelationships.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingRelationships.java index ef40a84ab70..97f5fbb39a4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** All relationships associated with AuthN Mapping. */ @@ -73,6 +77,52 @@ public void setSamlAssertionAttribute( this.samlAssertionAttribute = samlAssertionAttribute; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingRelationships + */ + @JsonAnySetter + public AuthNMappingRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { AuthNMappingRelationships authNMappingRelationships = (AuthNMappingRelationships) o; return Objects.equals(this.role, authNMappingRelationships.role) && Objects.equals( - this.samlAssertionAttribute, authNMappingRelationships.samlAssertionAttribute); + this.samlAssertionAttribute, authNMappingRelationships.samlAssertionAttribute) + && Objects.equals( + this.additionalProperties, authNMappingRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(role, samlAssertionAttribute); + return Objects.hash(role, samlAssertionAttribute, additionalProperties); } @Override @@ -101,6 +153,9 @@ public String toString() { sb.append(" samlAssertionAttribute: ") .append(toIndentedString(samlAssertionAttribute)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingResponse.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingResponse.java index 5fffd068535..4a26dad1a3e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** AuthN Mapping response from the API. */ @@ -84,6 +88,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingResponse + */ + @JsonAnySetter + public AuthNMappingResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,13 @@ public boolean equals(Object o) { } AuthNMappingResponse authNMappingResponse = (AuthNMappingResponse) o; return Objects.equals(this.data, authNMappingResponse.data) - && Objects.equals(this.included, authNMappingResponse.included); + && Objects.equals(this.included, authNMappingResponse.included) + && Objects.equals(this.additionalProperties, authNMappingResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -109,6 +160,9 @@ public String toString() { sb.append("class AuthNMappingResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateAttributes.java index 12e102e217b..d4387f7e171 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Key/Value pair of attributes used for update request. */ @@ -69,6 +73,52 @@ public void setAttributeValue(String attributeValue) { this.attributeValue = attributeValue; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingUpdateAttributes + */ + @JsonAnySetter + public AuthNMappingUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } AuthNMappingUpdateAttributes authNMappingUpdateAttributes = (AuthNMappingUpdateAttributes) o; return Objects.equals(this.attributeKey, authNMappingUpdateAttributes.attributeKey) - && Objects.equals(this.attributeValue, authNMappingUpdateAttributes.attributeValue); + && Objects.equals(this.attributeValue, authNMappingUpdateAttributes.attributeValue) + && Objects.equals( + this.additionalProperties, authNMappingUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributeKey, attributeValue); + return Objects.hash(attributeKey, attributeValue, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class AuthNMappingUpdateAttributes {\n"); sb.append(" attributeKey: ").append(toIndentedString(attributeKey)).append("\n"); sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateData.java index 7c5c9045108..4151582c593 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data for updating an AuthN Mapping. */ @@ -135,6 +139,52 @@ public void setType(AuthNMappingsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingUpdateData + */ + @JsonAnySetter + public AuthNMappingUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, authNMappingUpdateData.attributes) && Objects.equals(this.id, authNMappingUpdateData.id) && Objects.equals(this.relationships, authNMappingUpdateData.relationships) - && Objects.equals(this.type, authNMappingUpdateData.type); + && Objects.equals(this.type, authNMappingUpdateData.type) + && Objects.equals(this.additionalProperties, authNMappingUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRelationships.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRelationships.java index ece4cc4e5ed..041709b7724 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship of AuthN Mapping update object to Role. */ @@ -43,6 +47,52 @@ public void setRole(RelationshipToRole role) { this.role = role; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingUpdateRelationships + */ + @JsonAnySetter + public AuthNMappingUpdateRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingUpdateRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } AuthNMappingUpdateRelationships authNMappingUpdateRelationships = (AuthNMappingUpdateRelationships) o; - return Objects.equals(this.role, authNMappingUpdateRelationships.role); + return Objects.equals(this.role, authNMappingUpdateRelationships.role) + && Objects.equals( + this.additionalProperties, authNMappingUpdateRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(role); + return Objects.hash(role, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthNMappingUpdateRelationships {\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRequest.java index 160be390b58..161564ab994 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request to update an AuthN Mapping. */ @@ -52,6 +56,52 @@ public void setData(AuthNMappingUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingUpdateRequest + */ + @JsonAnySetter + public AuthNMappingUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } AuthNMappingUpdateRequest authNMappingUpdateRequest = (AuthNMappingUpdateRequest) o; - return Objects.equals(this.data, authNMappingUpdateRequest.data); + return Objects.equals(this.data, authNMappingUpdateRequest.data) + && Objects.equals( + this.additionalProperties, authNMappingUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthNMappingUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingsResponse.java b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingsResponse.java index d0ba0b06836..b904fbe7fca 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuthNMappingsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuthNMappingsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Array of AuthN Mappings response. */ @@ -121,6 +125,52 @@ public void setMeta(ResponseMetaAttributes meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return AuthNMappingsResponse + */ + @JsonAnySetter + public AuthNMappingsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this AuthNMappingsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -133,12 +183,13 @@ public boolean equals(Object o) { AuthNMappingsResponse authNMappingsResponse = (AuthNMappingsResponse) o; return Objects.equals(this.data, authNMappingsResponse.data) && Objects.equals(this.included, authNMappingsResponse.included) - && Objects.equals(this.meta, authNMappingsResponse.meta); + && Objects.equals(this.meta, authNMappingsResponse.meta) + && Objects.equals(this.additionalProperties, authNMappingsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -148,6 +199,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseries.java b/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseries.java index 295929b73d6..ccef40e95b6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseries.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseries.java @@ -6,9 +6,13 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A timeseries array. */ @@ -19,6 +23,52 @@ public class CIAppAggregateBucketValueTimeseries extends ArrayList { @JsonIgnore public boolean unparsed = false; + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppAggregateBucketValueTimeseries + */ + @JsonAnySetter + public CIAppAggregateBucketValueTimeseries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppAggregateBucketValueTimeseries object is equal to o. */ @Override public boolean equals(Object o) { @@ -33,7 +83,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(super.hashCode()); + return Objects.hash(additionalProperties, super.hashCode()); } @Override @@ -41,6 +91,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CIAppAggregateBucketValueTimeseries {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseriesPoint.java b/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseriesPoint.java index 9aee377f48b..f52a6bdef96 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseriesPoint.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateBucketValueTimeseriesPoint.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A timeseries point. */ @@ -70,6 +74,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppAggregateBucketValueTimeseriesPoint + */ + @JsonAnySetter + public CIAppAggregateBucketValueTimeseriesPoint putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppAggregateBucketValueTimeseriesPoint object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,15 @@ public boolean equals(Object o) { CIAppAggregateBucketValueTimeseriesPoint ciAppAggregateBucketValueTimeseriesPoint = (CIAppAggregateBucketValueTimeseriesPoint) o; return Objects.equals(this.time, ciAppAggregateBucketValueTimeseriesPoint.time) - && Objects.equals(this.value, ciAppAggregateBucketValueTimeseriesPoint.value); + && Objects.equals(this.value, ciAppAggregateBucketValueTimeseriesPoint.value) + && Objects.equals( + this.additionalProperties, + ciAppAggregateBucketValueTimeseriesPoint.additionalProperties); } @Override public int hashCode() { - return Objects.hash(time, value); + return Objects.hash(time, value, additionalProperties); } @Override @@ -96,6 +149,9 @@ public String toString() { sb.append("class CIAppAggregateBucketValueTimeseriesPoint {\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateSort.java b/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateSort.java index 4f4d2f32f39..8a35e01ac16 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateSort.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppAggregateSort.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A sort rule. */ @@ -131,6 +135,52 @@ public void setType(CIAppAggregateSortType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppAggregateSort + */ + @JsonAnySetter + public CIAppAggregateSort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppAggregateSort object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, ciAppAggregateSort.aggregation) && Objects.equals(this.metric, ciAppAggregateSort.metric) && Objects.equals(this.order, ciAppAggregateSort.order) - && Objects.equals(this.type, ciAppAggregateSort.type); + && Objects.equals(this.type, ciAppAggregateSort.type) + && Objects.equals(this.additionalProperties, ciAppAggregateSort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, metric, order, type); + return Objects.hash(aggregation, metric, order, type, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppCIError.java b/src/main/java/com/datadog/api/client/v2/model/CIAppCIError.java index 1fc12ed3389..76b541506e5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppCIError.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppCIError.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -155,6 +159,52 @@ public void setType(String type) { this.type = JsonNullable.of(type); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppCIError + */ + @JsonAnySetter + public CIAppCIError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppCIError object is equal to o. */ @Override public boolean equals(Object o) { @@ -168,12 +218,13 @@ public boolean equals(Object o) { return Objects.equals(this.domain, ciAppCiError.domain) && Objects.equals(this.message, ciAppCiError.message) && Objects.equals(this.stack, ciAppCiError.stack) - && Objects.equals(this.type, ciAppCiError.type); + && Objects.equals(this.type, ciAppCiError.type) + && Objects.equals(this.additionalProperties, ciAppCiError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(domain, message, stack, type); + return Objects.hash(domain, message, stack, type, additionalProperties); } @Override @@ -184,6 +235,9 @@ public String toString() { sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" stack: ").append(toIndentedString(stack)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppCompute.java b/src/main/java/com/datadog/api/client/v2/model/CIAppCompute.java index cfd45c99b2d..fb437100a8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A compute rule to compute metrics or timeseries. */ @@ -137,6 +141,52 @@ public void setType(CIAppComputeType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppCompute + */ + @JsonAnySetter + public CIAppCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -150,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, ciAppCompute.aggregation) && Objects.equals(this.interval, ciAppCompute.interval) && Objects.equals(this.metric, ciAppCompute.metric) - && Objects.equals(this.type, ciAppCompute.type); + && Objects.equals(this.type, ciAppCompute.type) + && Objects.equals(this.additionalProperties, ciAppCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, interval, metric, type); + return Objects.hash(aggregation, interval, metric, type, additionalProperties); } @Override @@ -166,6 +217,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequest.java b/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequest.java index 7552430bea0..6006baf9478 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object. */ @@ -43,6 +47,52 @@ public void setData(CIAppCreatePipelineEventRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppCreatePipelineEventRequest + */ + @JsonAnySetter + public CIAppCreatePipelineEventRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppCreatePipelineEventRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } CIAppCreatePipelineEventRequest ciAppCreatePipelineEventRequest = (CIAppCreatePipelineEventRequest) o; - return Objects.equals(this.data, ciAppCreatePipelineEventRequest.data); + return Objects.equals(this.data, ciAppCreatePipelineEventRequest.data) + && Objects.equals( + this.additionalProperties, ciAppCreatePipelineEventRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CIAppCreatePipelineEventRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestAttributes.java index 1cf358dfff5..6acb4faaf95 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the pipeline event to create. */ @@ -106,6 +110,52 @@ public void setService(String service) { this.service = service; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppCreatePipelineEventRequestAttributes + */ + @JsonAnySetter + public CIAppCreatePipelineEventRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppCreatePipelineEventRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -119,12 +169,15 @@ public boolean equals(Object o) { (CIAppCreatePipelineEventRequestAttributes) o; return Objects.equals(this.env, ciAppCreatePipelineEventRequestAttributes.env) && Objects.equals(this.resource, ciAppCreatePipelineEventRequestAttributes.resource) - && Objects.equals(this.service, ciAppCreatePipelineEventRequestAttributes.service); + && Objects.equals(this.service, ciAppCreatePipelineEventRequestAttributes.service) + && Objects.equals( + this.additionalProperties, + ciAppCreatePipelineEventRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(env, resource, service); + return Objects.hash(env, resource, service, additionalProperties); } @Override @@ -134,6 +187,9 @@ public String toString() { sb.append(" env: ").append(toIndentedString(env)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestData.java index c673677d5e2..639be2efe7d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppCreatePipelineEventRequestData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data of the pipeline event to create. */ @@ -76,6 +80,52 @@ public void setType(CIAppCreatePipelineEventRequestDataType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppCreatePipelineEventRequestData + */ + @JsonAnySetter + public CIAppCreatePipelineEventRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppCreatePipelineEventRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -88,12 +138,14 @@ public boolean equals(Object o) { CIAppCreatePipelineEventRequestData ciAppCreatePipelineEventRequestData = (CIAppCreatePipelineEventRequestData) o; return Objects.equals(this.attributes, ciAppCreatePipelineEventRequestData.attributes) - && Objects.equals(this.type, ciAppCreatePipelineEventRequestData.type); + && Objects.equals(this.type, ciAppCreatePipelineEventRequestData.type) + && Objects.equals( + this.additionalProperties, ciAppCreatePipelineEventRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -102,6 +154,9 @@ public String toString() { sb.append("class CIAppCreatePipelineEventRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppEventAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CIAppEventAttributes.java index 957d8dde105..ffb2057c11d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppEventAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppEventAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -141,6 +143,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppEventAttributes + */ + @JsonAnySetter + public CIAppEventAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppEventAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +202,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, ciAppEventAttributes.attributes) && Objects.equals(this.service, ciAppEventAttributes.service) && Objects.equals(this.tags, ciAppEventAttributes.tags) - && Objects.equals(this.timestamp, ciAppEventAttributes.timestamp); + && Objects.equals(this.timestamp, ciAppEventAttributes.timestamp) + && Objects.equals(this.additionalProperties, ciAppEventAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, service, tags, timestamp); + return Objects.hash(attributes, service, tags, timestamp, additionalProperties); } @Override @@ -170,6 +219,9 @@ public String toString() { sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppGitInfo.java b/src/main/java/com/datadog/api/client/v2/model/CIAppGitInfo.java index f421fdf515e..ebfebf1a98d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppGitInfo.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppGitInfo.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -423,6 +427,52 @@ public void setTag(String tag) { this.tag = JsonNullable.of(tag); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppGitInfo + */ + @JsonAnySetter + public CIAppGitInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppGitInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -444,7 +494,8 @@ public boolean equals(Object o) { && Objects.equals(this.message, ciAppGitInfo.message) && Objects.equals(this.repositoryUrl, ciAppGitInfo.repositoryUrl) && Objects.equals(this.sha, ciAppGitInfo.sha) - && Objects.equals(this.tag, ciAppGitInfo.tag); + && Objects.equals(this.tag, ciAppGitInfo.tag) + && Objects.equals(this.additionalProperties, ciAppGitInfo.additionalProperties); } @Override @@ -461,7 +512,8 @@ public int hashCode() { message, repositoryUrl, sha, - tag); + tag, + additionalProperties); } @Override @@ -480,6 +532,9 @@ public String toString() { sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); sb.append(" sha: ").append(toIndentedString(sha)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppGroupByHistogram.java b/src/main/java/com/datadog/api/client/v2/model/CIAppGroupByHistogram.java index 772ac3890c7..c1bd34b2c8f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppGroupByHistogram.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppGroupByHistogram.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -109,6 +113,52 @@ public void setMin(Double min) { this.min = min; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppGroupByHistogram + */ + @JsonAnySetter + public CIAppGroupByHistogram putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppGroupByHistogram object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { CIAppGroupByHistogram ciAppGroupByHistogram = (CIAppGroupByHistogram) o; return Objects.equals(this.interval, ciAppGroupByHistogram.interval) && Objects.equals(this.max, ciAppGroupByHistogram.max) - && Objects.equals(this.min, ciAppGroupByHistogram.min); + && Objects.equals(this.min, ciAppGroupByHistogram.min) + && Objects.equals(this.additionalProperties, ciAppGroupByHistogram.additionalProperties); } @Override public int hashCode() { - return Objects.hash(interval, max, min); + return Objects.hash(interval, max, min, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppHostInfo.java b/src/main/java/com/datadog/api/client/v2/model/CIAppHostInfo.java index d11de60350f..2f01b7089be 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppHostInfo.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppHostInfo.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Contains information of the host running the pipeline, stage, job, or step. */ @@ -129,6 +133,52 @@ public void setWorkspace(String workspace) { this.workspace = workspace; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppHostInfo + */ + @JsonAnySetter + public CIAppHostInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppHostInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -142,12 +192,13 @@ public boolean equals(Object o) { return Objects.equals(this.hostname, ciAppHostInfo.hostname) && Objects.equals(this.labels, ciAppHostInfo.labels) && Objects.equals(this.name, ciAppHostInfo.name) - && Objects.equals(this.workspace, ciAppHostInfo.workspace); + && Objects.equals(this.workspace, ciAppHostInfo.workspace) + && Objects.equals(this.additionalProperties, ciAppHostInfo.additionalProperties); } @Override public int hashCode() { - return Objects.hash(hostname, labels, name, workspace); + return Objects.hash(hostname, labels, name, workspace, additionalProperties); } @Override @@ -158,6 +209,9 @@ public String toString() { sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEvent.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEvent.java index de71eb12fa8..735e11474b4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEvent.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEvent.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object description of a pipeline event after being processed and stored by Datadog. */ @@ -99,6 +103,52 @@ public void setType(CIAppPipelineEventTypeName type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEvent + */ + @JsonAnySetter + public CIAppPipelineEvent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEvent object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { CIAppPipelineEvent ciAppPipelineEvent = (CIAppPipelineEvent) o; return Objects.equals(this.attributes, ciAppPipelineEvent.attributes) && Objects.equals(this.id, ciAppPipelineEvent.id) - && Objects.equals(this.type, ciAppPipelineEvent.type); + && Objects.equals(this.type, ciAppPipelineEvent.type) + && Objects.equals(this.additionalProperties, ciAppPipelineEvent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java index 3a4a2c829d2..a3ca87a64f2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -718,6 +720,52 @@ public void setUser(CIAppUserInfo user) { this.user = JsonNullable.of(user); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventJob + */ + @JsonAnySetter + public CIAppPipelineEventJob putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventJob object is equal to o. */ @Override public boolean equals(Object o) { @@ -747,7 +795,8 @@ public boolean equals(Object o) { && Objects.equals(this.status, ciAppPipelineEventJob.status) && Objects.equals(this.tags, ciAppPipelineEventJob.tags) && Objects.equals(this.url, ciAppPipelineEventJob.url) - && Objects.equals(this.user, ciAppPipelineEventJob.user); + && Objects.equals(this.user, ciAppPipelineEventJob.user) + && Objects.equals(this.additionalProperties, ciAppPipelineEventJob.additionalProperties); } @Override @@ -772,7 +821,8 @@ public int hashCode() { status, tags, url, - user); + user, + additionalProperties); } @Override @@ -799,6 +849,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventParentPipeline.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventParentPipeline.java index 9aeea43a653..2c38cce2a29 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventParentPipeline.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventParentPipeline.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -80,6 +84,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventParentPipeline + */ + @JsonAnySetter + public CIAppPipelineEventParentPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventParentPipeline object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,14 @@ public boolean equals(Object o) { CIAppPipelineEventParentPipeline ciAppPipelineEventParentPipeline = (CIAppPipelineEventParentPipeline) o; return Objects.equals(this.id, ciAppPipelineEventParentPipeline.id) - && Objects.equals(this.url, ciAppPipelineEventParentPipeline.url); + && Objects.equals(this.url, ciAppPipelineEventParentPipeline.url) + && Objects.equals( + this.additionalProperties, ciAppPipelineEventParentPipeline.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, url); + return Objects.hash(id, url, additionalProperties); } @Override @@ -106,6 +158,9 @@ public String toString() { sb.append("class CIAppPipelineEventParentPipeline {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java index 538b2014362..7ccbed19501 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -751,6 +753,52 @@ public void setUser(CIAppUserInfo user) { this.user = JsonNullable.of(user); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventPipeline + */ + @JsonAnySetter + public CIAppPipelineEventPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventPipeline object is equal to o. */ @Override public boolean equals(Object o) { @@ -781,7 +829,9 @@ public boolean equals(Object o) { && Objects.equals(this.tags, ciAppPipelineEventPipeline.tags) && Objects.equals(this.uniqueId, ciAppPipelineEventPipeline.uniqueId) && Objects.equals(this.url, ciAppPipelineEventPipeline.url) - && Objects.equals(this.user, ciAppPipelineEventPipeline.user); + && Objects.equals(this.user, ciAppPipelineEventPipeline.user) + && Objects.equals( + this.additionalProperties, ciAppPipelineEventPipeline.additionalProperties); } @Override @@ -807,7 +857,8 @@ public int hashCode() { tags, uniqueId, url, - user); + user, + additionalProperties); } @Override @@ -835,6 +886,9 @@ public String toString() { sb.append(" uniqueId: ").append(toIndentedString(uniqueId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPreviousPipeline.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPreviousPipeline.java index dbbfbf6beac..352a02315af 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPreviousPipeline.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPreviousPipeline.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** If the pipeline is a retry, this should contain the details of the previous attempt. */ @@ -77,6 +81,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventPreviousPipeline + */ + @JsonAnySetter + public CIAppPipelineEventPreviousPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventPreviousPipeline object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { CIAppPipelineEventPreviousPipeline ciAppPipelineEventPreviousPipeline = (CIAppPipelineEventPreviousPipeline) o; return Objects.equals(this.id, ciAppPipelineEventPreviousPipeline.id) - && Objects.equals(this.url, ciAppPipelineEventPreviousPipeline.url); + && Objects.equals(this.url, ciAppPipelineEventPreviousPipeline.url) + && Objects.equals( + this.additionalProperties, ciAppPipelineEventPreviousPipeline.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, url); + return Objects.hash(id, url, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class CIAppPipelineEventPreviousPipeline {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java index 763c04a0d57..ed65a5049cb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -623,6 +625,52 @@ public void setUser(CIAppUserInfo user) { this.user = JsonNullable.of(user); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventStage + */ + @JsonAnySetter + public CIAppPipelineEventStage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventStage object is equal to o. */ @Override public boolean equals(Object o) { @@ -649,7 +697,8 @@ public boolean equals(Object o) { && Objects.equals(this.start, ciAppPipelineEventStage.start) && Objects.equals(this.status, ciAppPipelineEventStage.status) && Objects.equals(this.tags, ciAppPipelineEventStage.tags) - && Objects.equals(this.user, ciAppPipelineEventStage.user); + && Objects.equals(this.user, ciAppPipelineEventStage.user) + && Objects.equals(this.additionalProperties, ciAppPipelineEventStage.additionalProperties); } @Override @@ -671,7 +720,8 @@ public int hashCode() { start, status, tags, - user); + user, + additionalProperties); } @Override @@ -695,6 +745,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java index d82714a57db..0e9bddb21f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -714,6 +716,52 @@ public void setUser(CIAppUserInfo user) { this.user = JsonNullable.of(user); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventStep + */ + @JsonAnySetter + public CIAppPipelineEventStep putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventStep object is equal to o. */ @Override public boolean equals(Object o) { @@ -743,7 +791,8 @@ public boolean equals(Object o) { && Objects.equals(this.status, ciAppPipelineEventStep.status) && Objects.equals(this.tags, ciAppPipelineEventStep.tags) && Objects.equals(this.url, ciAppPipelineEventStep.url) - && Objects.equals(this.user, ciAppPipelineEventStep.user); + && Objects.equals(this.user, ciAppPipelineEventStep.user) + && Objects.equals(this.additionalProperties, ciAppPipelineEventStep.additionalProperties); } @Override @@ -768,7 +817,8 @@ public int hashCode() { status, tags, url, - user); + user, + additionalProperties); } @Override @@ -795,6 +845,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsRequest.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsRequest.java index 90a3b5fe4cb..2ec1bfd9c00 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The request for a pipelines search. */ @@ -127,6 +131,52 @@ public void setSort(CIAppSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventsRequest + */ + @JsonAnySetter + public CIAppPipelineEventsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,14 @@ public boolean equals(Object o) { return Objects.equals(this.filter, ciAppPipelineEventsRequest.filter) && Objects.equals(this.options, ciAppPipelineEventsRequest.options) && Objects.equals(this.page, ciAppPipelineEventsRequest.page) - && Objects.equals(this.sort, ciAppPipelineEventsRequest.sort); + && Objects.equals(this.sort, ciAppPipelineEventsRequest.sort) + && Objects.equals( + this.additionalProperties, ciAppPipelineEventsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, options, page, sort); + return Objects.hash(filter, options, page, sort, additionalProperties); } @Override @@ -156,6 +208,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsResponse.java index a4a0721777d..37b7477ec9d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object with all pipeline events matching the request and pagination information. */ @@ -110,6 +114,52 @@ public void setMeta(CIAppResponseMetadataWithPagination meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventsResponse + */ + @JsonAnySetter + public CIAppPipelineEventsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { CIAppPipelineEventsResponse ciAppPipelineEventsResponse = (CIAppPipelineEventsResponse) o; return Objects.equals(this.data, ciAppPipelineEventsResponse.data) && Objects.equals(this.links, ciAppPipelineEventsResponse.links) - && Objects.equals(this.meta, ciAppPipelineEventsResponse.meta); + && Objects.equals(this.meta, ciAppPipelineEventsResponse.meta) + && Objects.equals( + this.additionalProperties, ciAppPipelineEventsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregateRequest.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregateRequest.java index d6529376b7f..9d4726380aa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregateRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -151,6 +155,52 @@ public void setOptions(CIAppQueryOptions options) { this.options = options; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelinesAggregateRequest + */ + @JsonAnySetter + public CIAppPipelinesAggregateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelinesAggregateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -165,12 +215,14 @@ public boolean equals(Object o) { return Objects.equals(this.compute, ciAppPipelinesAggregateRequest.compute) && Objects.equals(this.filter, ciAppPipelinesAggregateRequest.filter) && Objects.equals(this.groupBy, ciAppPipelinesAggregateRequest.groupBy) - && Objects.equals(this.options, ciAppPipelinesAggregateRequest.options); + && Objects.equals(this.options, ciAppPipelinesAggregateRequest.options) + && Objects.equals( + this.additionalProperties, ciAppPipelinesAggregateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy, options); + return Objects.hash(compute, filter, groupBy, options, additionalProperties); } @Override @@ -181,6 +233,9 @@ public String toString() { sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregationBucketsResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregationBucketsResponse.java index 4bb7a243b56..e884dd3a9a1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregationBucketsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAggregationBucketsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The query results. */ @@ -58,6 +62,52 @@ public void setBuckets(List buckets) { this.buckets = buckets; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelinesAggregationBucketsResponse + */ + @JsonAnySetter + public CIAppPipelinesAggregationBucketsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelinesAggregationBucketsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,15 @@ public boolean equals(Object o) { } CIAppPipelinesAggregationBucketsResponse ciAppPipelinesAggregationBucketsResponse = (CIAppPipelinesAggregationBucketsResponse) o; - return Objects.equals(this.buckets, ciAppPipelinesAggregationBucketsResponse.buckets); + return Objects.equals(this.buckets, ciAppPipelinesAggregationBucketsResponse.buckets) + && Objects.equals( + this.additionalProperties, + ciAppPipelinesAggregationBucketsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(buckets); + return Objects.hash(buckets, additionalProperties); } @Override @@ -82,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CIAppPipelinesAggregationBucketsResponse {\n"); sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAnalyticsAggregateResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAnalyticsAggregateResponse.java index 625b3175714..0e942508245 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAnalyticsAggregateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesAnalyticsAggregateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response object for the pipeline events aggregate API endpoint. */ @@ -98,6 +102,52 @@ public void setMeta(CIAppResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelinesAnalyticsAggregateResponse + */ + @JsonAnySetter + public CIAppPipelinesAnalyticsAggregateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelinesAnalyticsAggregateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,15 @@ public boolean equals(Object o) { (CIAppPipelinesAnalyticsAggregateResponse) o; return Objects.equals(this.data, ciAppPipelinesAnalyticsAggregateResponse.data) && Objects.equals(this.links, ciAppPipelinesAnalyticsAggregateResponse.links) - && Objects.equals(this.meta, ciAppPipelinesAnalyticsAggregateResponse.meta); + && Objects.equals(this.meta, ciAppPipelinesAnalyticsAggregateResponse.meta) + && Objects.equals( + this.additionalProperties, + ciAppPipelinesAnalyticsAggregateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -126,6 +179,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesBucketResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesBucketResponse.java index 363533be69d..b464e79b57e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesBucketResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesBucketResponse.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -88,6 +90,52 @@ public void setComputes(Map computes) { this.computes = computes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelinesBucketResponse + */ + @JsonAnySetter + public CIAppPipelinesBucketResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelinesBucketResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +147,14 @@ public boolean equals(Object o) { } CIAppPipelinesBucketResponse ciAppPipelinesBucketResponse = (CIAppPipelinesBucketResponse) o; return Objects.equals(this.by, ciAppPipelinesBucketResponse.by) - && Objects.equals(this.computes, ciAppPipelinesBucketResponse.computes); + && Objects.equals(this.computes, ciAppPipelinesBucketResponse.computes) + && Objects.equals( + this.additionalProperties, ciAppPipelinesBucketResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(by, computes); + return Objects.hash(by, computes, additionalProperties); } @Override @@ -113,6 +163,9 @@ public String toString() { sb.append("class CIAppPipelinesBucketResponse {\n"); sb.append(" by: ").append(toIndentedString(by)).append("\n"); sb.append(" computes: ").append(toIndentedString(computes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesGroupBy.java index ee553243233..abe176b9f46 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group-by rule. */ @@ -182,6 +186,52 @@ public void setTotal(CIAppGroupByTotal total) { this.total = total; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelinesGroupBy + */ + @JsonAnySetter + public CIAppPipelinesGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelinesGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -197,12 +247,13 @@ public boolean equals(Object o) { && Objects.equals(this.limit, ciAppPipelinesGroupBy.limit) && Objects.equals(this.missing, ciAppPipelinesGroupBy.missing) && Objects.equals(this.sort, ciAppPipelinesGroupBy.sort) - && Objects.equals(this.total, ciAppPipelinesGroupBy.total); + && Objects.equals(this.total, ciAppPipelinesGroupBy.total) + && Objects.equals(this.additionalProperties, ciAppPipelinesGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, histogram, limit, missing, sort, total); + return Objects.hash(facet, histogram, limit, missing, sort, total, additionalProperties); } @Override @@ -215,6 +266,9 @@ public String toString() { sb.append(" missing: ").append(toIndentedString(missing)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesQueryFilter.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesQueryFilter.java index 2d7ce6a37a6..969c6aac5c1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesQueryFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelinesQueryFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The search and filter query settings. */ @@ -96,6 +100,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelinesQueryFilter + */ + @JsonAnySetter + public CIAppPipelinesQueryFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelinesQueryFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,14 @@ public boolean equals(Object o) { CIAppPipelinesQueryFilter ciAppPipelinesQueryFilter = (CIAppPipelinesQueryFilter) o; return Objects.equals(this.from, ciAppPipelinesQueryFilter.from) && Objects.equals(this.query, ciAppPipelinesQueryFilter.query) - && Objects.equals(this.to, ciAppPipelinesQueryFilter.to); + && Objects.equals(this.to, ciAppPipelinesQueryFilter.to) + && Objects.equals( + this.additionalProperties, ciAppPipelinesQueryFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, query, to); + return Objects.hash(from, query, to, additionalProperties); } @Override @@ -123,6 +175,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppQueryOptions.java b/src/main/java/com/datadog/api/client/v2/model/CIAppQueryOptions.java index e826f3e3817..984d551112b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppQueryOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppQueryOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -73,6 +77,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppQueryOptions + */ + @JsonAnySetter + public CIAppQueryOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppQueryOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } CIAppQueryOptions ciAppQueryOptions = (CIAppQueryOptions) o; return Objects.equals(this.timeOffset, ciAppQueryOptions.timeOffset) - && Objects.equals(this.timezone, ciAppQueryOptions.timezone); + && Objects.equals(this.timezone, ciAppQueryOptions.timezone) + && Objects.equals(this.additionalProperties, ciAppQueryOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timeOffset, timezone); + return Objects.hash(timeOffset, timezone, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class CIAppQueryOptions {\n"); sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppQueryPageOptions.java b/src/main/java/com/datadog/api/client/v2/model/CIAppQueryPageOptions.java index 0599c19bf75..e38a98f3f65 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppQueryPageOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppQueryPageOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes for listing events. */ @@ -69,6 +73,52 @@ public void setLimit(Integer limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppQueryPageOptions + */ + @JsonAnySetter + public CIAppQueryPageOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppQueryPageOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,13 @@ public boolean equals(Object o) { } CIAppQueryPageOptions ciAppQueryPageOptions = (CIAppQueryPageOptions) o; return Objects.equals(this.cursor, ciAppQueryPageOptions.cursor) - && Objects.equals(this.limit, ciAppQueryPageOptions.limit); + && Objects.equals(this.limit, ciAppQueryPageOptions.limit) + && Objects.equals(this.additionalProperties, ciAppQueryPageOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor, limit); + return Objects.hash(cursor, limit, additionalProperties); } @Override @@ -94,6 +145,9 @@ public String toString() { sb.append("class CIAppQueryPageOptions {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppResponseLinks.java b/src/main/java/com/datadog/api/client/v2/model/CIAppResponseLinks.java index 25e7169c1e3..33f8b0f3858 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Links attributes. */ @@ -42,6 +46,52 @@ public void setNext(String next) { this.next = next; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppResponseLinks + */ + @JsonAnySetter + public CIAppResponseLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } CIAppResponseLinks ciAppResponseLinks = (CIAppResponseLinks) o; - return Objects.equals(this.next, ciAppResponseLinks.next); + return Objects.equals(this.next, ciAppResponseLinks.next) + && Objects.equals(this.additionalProperties, ciAppResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(next); + return Objects.hash(next, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CIAppResponseLinks {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadata.java b/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadata.java index c8885856cba..f6c2bb68b1e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request. */ @@ -138,6 +142,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppResponseMetadata + */ + @JsonAnySetter + public CIAppResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,13 @@ public boolean equals(Object o) { return Objects.equals(this.elapsed, ciAppResponseMetadata.elapsed) && Objects.equals(this.requestId, ciAppResponseMetadata.requestId) && Objects.equals(this.status, ciAppResponseMetadata.status) - && Objects.equals(this.warnings, ciAppResponseMetadata.warnings); + && Objects.equals(this.warnings, ciAppResponseMetadata.warnings) + && Objects.equals(this.additionalProperties, ciAppResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(elapsed, requestId, status, warnings); + return Objects.hash(elapsed, requestId, status, warnings, additionalProperties); } @Override @@ -167,6 +218,9 @@ public String toString() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadataWithPagination.java b/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadataWithPagination.java index 53ba264b71c..5863cde401b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadataWithPagination.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppResponseMetadataWithPagination.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request. */ @@ -164,6 +168,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppResponseMetadataWithPagination + */ + @JsonAnySetter + public CIAppResponseMetadataWithPagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppResponseMetadataWithPagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -179,12 +229,14 @@ public boolean equals(Object o) { && Objects.equals(this.page, ciAppResponseMetadataWithPagination.page) && Objects.equals(this.requestId, ciAppResponseMetadataWithPagination.requestId) && Objects.equals(this.status, ciAppResponseMetadataWithPagination.status) - && Objects.equals(this.warnings, ciAppResponseMetadataWithPagination.warnings); + && Objects.equals(this.warnings, ciAppResponseMetadataWithPagination.warnings) + && Objects.equals( + this.additionalProperties, ciAppResponseMetadataWithPagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(elapsed, page, requestId, status, warnings); + return Objects.hash(elapsed, page, requestId, status, warnings, additionalProperties); } @Override @@ -196,6 +248,9 @@ public String toString() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppResponsePage.java b/src/main/java/com/datadog/api/client/v2/model/CIAppResponsePage.java index 7e49ce16cbd..9152bbb6ab3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppResponsePage.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppResponsePage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes. */ @@ -43,6 +47,52 @@ public void setAfter(String after) { this.after = after; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppResponsePage + */ + @JsonAnySetter + public CIAppResponsePage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppResponsePage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } CIAppResponsePage ciAppResponsePage = (CIAppResponsePage) o; - return Objects.equals(this.after, ciAppResponsePage.after); + return Objects.equals(this.after, ciAppResponsePage.after) + && Objects.equals(this.additionalProperties, ciAppResponsePage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after); + return Objects.hash(after, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CIAppResponsePage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestEvent.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestEvent.java index 250bdc5aa52..7bb0691ebc2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestEvent.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestEvent.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object description of test event after being processed and stored by Datadog. */ @@ -99,6 +103,52 @@ public void setType(CIAppTestEventTypeName type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestEvent + */ + @JsonAnySetter + public CIAppTestEvent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestEvent object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { CIAppTestEvent ciAppTestEvent = (CIAppTestEvent) o; return Objects.equals(this.attributes, ciAppTestEvent.attributes) && Objects.equals(this.id, ciAppTestEvent.id) - && Objects.equals(this.type, ciAppTestEvent.type); + && Objects.equals(this.type, ciAppTestEvent.type) + && Objects.equals(this.additionalProperties, ciAppTestEvent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsRequest.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsRequest.java index a0d793d4b5f..1c100da2614 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The request for a tests search. */ @@ -127,6 +131,52 @@ public void setSort(CIAppSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestEventsRequest + */ + @JsonAnySetter + public CIAppTestEventsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestEventsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,13 @@ public boolean equals(Object o) { return Objects.equals(this.filter, ciAppTestEventsRequest.filter) && Objects.equals(this.options, ciAppTestEventsRequest.options) && Objects.equals(this.page, ciAppTestEventsRequest.page) - && Objects.equals(this.sort, ciAppTestEventsRequest.sort); + && Objects.equals(this.sort, ciAppTestEventsRequest.sort) + && Objects.equals(this.additionalProperties, ciAppTestEventsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, options, page, sort); + return Objects.hash(filter, options, page, sort, additionalProperties); } @Override @@ -156,6 +207,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsResponse.java index a1e0c2c11a1..8900fbc2900 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestEventsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object with all test events matching the request and pagination information. */ @@ -110,6 +114,52 @@ public void setMeta(CIAppResponseMetadataWithPagination meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestEventsResponse + */ + @JsonAnySetter + public CIAppTestEventsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestEventsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { CIAppTestEventsResponse ciAppTestEventsResponse = (CIAppTestEventsResponse) o; return Objects.equals(this.data, ciAppTestEventsResponse.data) && Objects.equals(this.links, ciAppTestEventsResponse.links) - && Objects.equals(this.meta, ciAppTestEventsResponse.meta); + && Objects.equals(this.meta, ciAppTestEventsResponse.meta) + && Objects.equals(this.additionalProperties, ciAppTestEventsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregateRequest.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregateRequest.java index c72df68f27c..f50b2eabb07 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregateRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -151,6 +155,52 @@ public void setOptions(CIAppQueryOptions options) { this.options = options; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestsAggregateRequest + */ + @JsonAnySetter + public CIAppTestsAggregateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestsAggregateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -164,12 +214,14 @@ public boolean equals(Object o) { return Objects.equals(this.compute, ciAppTestsAggregateRequest.compute) && Objects.equals(this.filter, ciAppTestsAggregateRequest.filter) && Objects.equals(this.groupBy, ciAppTestsAggregateRequest.groupBy) - && Objects.equals(this.options, ciAppTestsAggregateRequest.options); + && Objects.equals(this.options, ciAppTestsAggregateRequest.options) + && Objects.equals( + this.additionalProperties, ciAppTestsAggregateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy, options); + return Objects.hash(compute, filter, groupBy, options, additionalProperties); } @Override @@ -180,6 +232,9 @@ public String toString() { sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregationBucketsResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregationBucketsResponse.java index 85ae2e7f40c..daecf613ad8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregationBucketsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAggregationBucketsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The query results. */ @@ -56,6 +60,52 @@ public void setBuckets(List buckets) { this.buckets = buckets; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestsAggregationBucketsResponse + */ + @JsonAnySetter + public CIAppTestsAggregationBucketsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestsAggregationBucketsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } CIAppTestsAggregationBucketsResponse ciAppTestsAggregationBucketsResponse = (CIAppTestsAggregationBucketsResponse) o; - return Objects.equals(this.buckets, ciAppTestsAggregationBucketsResponse.buckets); + return Objects.equals(this.buckets, ciAppTestsAggregationBucketsResponse.buckets) + && Objects.equals( + this.additionalProperties, ciAppTestsAggregationBucketsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(buckets); + return Objects.hash(buckets, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CIAppTestsAggregationBucketsResponse {\n"); sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAnalyticsAggregateResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAnalyticsAggregateResponse.java index 0259d51ac41..0b50b0808da 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAnalyticsAggregateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsAnalyticsAggregateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response object for the test events aggregate API endpoint. */ @@ -97,6 +101,52 @@ public void setMeta(CIAppResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestsAnalyticsAggregateResponse + */ + @JsonAnySetter + public CIAppTestsAnalyticsAggregateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestsAnalyticsAggregateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,12 +160,14 @@ public boolean equals(Object o) { (CIAppTestsAnalyticsAggregateResponse) o; return Objects.equals(this.data, ciAppTestsAnalyticsAggregateResponse.data) && Objects.equals(this.links, ciAppTestsAnalyticsAggregateResponse.links) - && Objects.equals(this.meta, ciAppTestsAnalyticsAggregateResponse.meta); + && Objects.equals(this.meta, ciAppTestsAnalyticsAggregateResponse.meta) + && Objects.equals( + this.additionalProperties, ciAppTestsAnalyticsAggregateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -125,6 +177,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsBucketResponse.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsBucketResponse.java index f0a3b239d87..2bb5fe2325a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsBucketResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsBucketResponse.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -88,6 +90,52 @@ public void setComputes(Map computes) { this.computes = computes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestsBucketResponse + */ + @JsonAnySetter + public CIAppTestsBucketResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestsBucketResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +147,13 @@ public boolean equals(Object o) { } CIAppTestsBucketResponse ciAppTestsBucketResponse = (CIAppTestsBucketResponse) o; return Objects.equals(this.by, ciAppTestsBucketResponse.by) - && Objects.equals(this.computes, ciAppTestsBucketResponse.computes); + && Objects.equals(this.computes, ciAppTestsBucketResponse.computes) + && Objects.equals(this.additionalProperties, ciAppTestsBucketResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(by, computes); + return Objects.hash(by, computes, additionalProperties); } @Override @@ -113,6 +162,9 @@ public String toString() { sb.append("class CIAppTestsBucketResponse {\n"); sb.append(" by: ").append(toIndentedString(by)).append("\n"); sb.append(" computes: ").append(toIndentedString(computes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsGroupBy.java index 88757d41238..f23809dfe26 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group-by rule. */ @@ -182,6 +186,52 @@ public void setTotal(CIAppGroupByTotal total) { this.total = total; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestsGroupBy + */ + @JsonAnySetter + public CIAppTestsGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestsGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -197,12 +247,13 @@ public boolean equals(Object o) { && Objects.equals(this.limit, ciAppTestsGroupBy.limit) && Objects.equals(this.missing, ciAppTestsGroupBy.missing) && Objects.equals(this.sort, ciAppTestsGroupBy.sort) - && Objects.equals(this.total, ciAppTestsGroupBy.total); + && Objects.equals(this.total, ciAppTestsGroupBy.total) + && Objects.equals(this.additionalProperties, ciAppTestsGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, histogram, limit, missing, sort, total); + return Objects.hash(facet, histogram, limit, missing, sort, total, additionalProperties); } @Override @@ -215,6 +266,9 @@ public String toString() { sb.append(" missing: ").append(toIndentedString(missing)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsQueryFilter.java b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsQueryFilter.java index 168e537d7b0..9f929126bae 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppTestsQueryFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppTestsQueryFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The search and filter query settings. */ @@ -96,6 +100,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppTestsQueryFilter + */ + @JsonAnySetter + public CIAppTestsQueryFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppTestsQueryFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,13 @@ public boolean equals(Object o) { CIAppTestsQueryFilter ciAppTestsQueryFilter = (CIAppTestsQueryFilter) o; return Objects.equals(this.from, ciAppTestsQueryFilter.from) && Objects.equals(this.query, ciAppTestsQueryFilter.query) - && Objects.equals(this.to, ciAppTestsQueryFilter.to); + && Objects.equals(this.to, ciAppTestsQueryFilter.to) + && Objects.equals(this.additionalProperties, ciAppTestsQueryFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, query, to); + return Objects.hash(from, query, to, additionalProperties); } @Override @@ -123,6 +174,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java b/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java index bcff62c2da5..ada8d5535f2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -70,6 +74,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppUserInfo + */ + @JsonAnySetter + public CIAppUserInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppUserInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } CIAppUserInfo ciAppUserInfo = (CIAppUserInfo) o; return Objects.equals(this.email, ciAppUserInfo.email) - && Objects.equals(this.name, ciAppUserInfo.name); + && Objects.equals(this.name, ciAppUserInfo.name) + && Objects.equals(this.additionalProperties, ciAppUserInfo.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, name); + return Objects.hash(email, name, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class CIAppUserInfo {\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppWarning.java b/src/main/java/com/datadog/api/client/v2/model/CIAppWarning.java index c8280df8b73..822a91d1850 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppWarning.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppWarning.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A warning message indicating something that went wrong with the query. */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppWarning + */ + @JsonAnySetter + public CIAppWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppWarning object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { CIAppWarning ciAppWarning = (CIAppWarning) o; return Objects.equals(this.code, ciAppWarning.code) && Objects.equals(this.detail, ciAppWarning.detail) - && Objects.equals(this.title, ciAppWarning.title); + && Objects.equals(this.title, ciAppWarning.title) + && Objects.equals(this.additionalProperties, ciAppWarning.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, detail, title); + return Objects.hash(code, detail, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ChargebackBreakdown.java b/src/main/java/com/datadog/api/client/v2/model/ChargebackBreakdown.java index e10fe830ffe..e7b0dc849cd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ChargebackBreakdown.java +++ b/src/main/java/com/datadog/api/client/v2/model/ChargebackBreakdown.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Charges breakdown. */ @@ -94,6 +98,52 @@ public void setProductName(String productName) { this.productName = productName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ChargebackBreakdown + */ + @JsonAnySetter + public ChargebackBreakdown putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ChargebackBreakdown object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { ChargebackBreakdown chargebackBreakdown = (ChargebackBreakdown) o; return Objects.equals(this.chargeType, chargebackBreakdown.chargeType) && Objects.equals(this.cost, chargebackBreakdown.cost) - && Objects.equals(this.productName, chargebackBreakdown.productName); + && Objects.equals(this.productName, chargebackBreakdown.productName) + && Objects.equals(this.additionalProperties, chargebackBreakdown.additionalProperties); } @Override public int hashCode() { - return Objects.hash(chargeType, cost, productName); + return Objects.hash(chargeType, cost, productName, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" chargeType: ").append(toIndentedString(chargeType)).append("\n"); sb.append(" cost: ").append(toIndentedString(cost)).append("\n"); sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationComplianceRuleOptions.java b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationComplianceRuleOptions.java index cccb1990c06..1cd29b65160 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationComplianceRuleOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationComplianceRuleOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -100,6 +104,52 @@ public void setResourceType(String resourceType) { this.resourceType = resourceType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudConfigurationComplianceRuleOptions + */ + @JsonAnySetter + public CloudConfigurationComplianceRuleOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudConfigurationComplianceRuleOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,15 @@ public boolean equals(Object o) { (CloudConfigurationComplianceRuleOptions) o; return Objects.equals(this.complexRule, cloudConfigurationComplianceRuleOptions.complexRule) && Objects.equals(this.regoRule, cloudConfigurationComplianceRuleOptions.regoRule) - && Objects.equals(this.resourceType, cloudConfigurationComplianceRuleOptions.resourceType); + && Objects.equals(this.resourceType, cloudConfigurationComplianceRuleOptions.resourceType) + && Objects.equals( + this.additionalProperties, + cloudConfigurationComplianceRuleOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(complexRule, regoRule, resourceType); + return Objects.hash(complexRule, regoRule, resourceType, additionalProperties); } @Override @@ -128,6 +181,9 @@ public String toString() { sb.append(" complexRule: ").append(toIndentedString(complexRule)).append("\n"); sb.append(" regoRule: ").append(toIndentedString(regoRule)).append("\n"); sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRegoRule.java b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRegoRule.java index 879a4398d3b..10291d8fa55 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRegoRule.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRegoRule.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Rule details. */ @@ -87,6 +91,52 @@ public void setResourceTypes(List resourceTypes) { this.resourceTypes = resourceTypes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudConfigurationRegoRule + */ + @JsonAnySetter + public CloudConfigurationRegoRule putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudConfigurationRegoRule object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,14 @@ public boolean equals(Object o) { } CloudConfigurationRegoRule cloudConfigurationRegoRule = (CloudConfigurationRegoRule) o; return Objects.equals(this.policy, cloudConfigurationRegoRule.policy) - && Objects.equals(this.resourceTypes, cloudConfigurationRegoRule.resourceTypes); + && Objects.equals(this.resourceTypes, cloudConfigurationRegoRule.resourceTypes) + && Objects.equals( + this.additionalProperties, cloudConfigurationRegoRule.additionalProperties); } @Override public int hashCode() { - return Objects.hash(policy, resourceTypes); + return Objects.hash(policy, resourceTypes, additionalProperties); } @Override @@ -112,6 +164,9 @@ public String toString() { sb.append("class CloudConfigurationRegoRule {\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" resourceTypes: ").append(toIndentedString(resourceTypes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCaseCreate.java b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCaseCreate.java index ee5efaea7a6..c45cfa62975 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCaseCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCaseCreate.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Description of signals. */ @@ -93,6 +97,52 @@ public void setStatus(SecurityMonitoringRuleSeverity status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudConfigurationRuleCaseCreate + */ + @JsonAnySetter + public CloudConfigurationRuleCaseCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudConfigurationRuleCaseCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -105,12 +155,14 @@ public boolean equals(Object o) { CloudConfigurationRuleCaseCreate cloudConfigurationRuleCaseCreate = (CloudConfigurationRuleCaseCreate) o; return Objects.equals(this.notifications, cloudConfigurationRuleCaseCreate.notifications) - && Objects.equals(this.status, cloudConfigurationRuleCaseCreate.status); + && Objects.equals(this.status, cloudConfigurationRuleCaseCreate.status) + && Objects.equals( + this.additionalProperties, cloudConfigurationRuleCaseCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(notifications, status); + return Objects.hash(notifications, status, additionalProperties); } @Override @@ -119,6 +171,9 @@ public String toString() { sb.append("class CloudConfigurationRuleCaseCreate {\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 4a64790310d..6b828220cee 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -107,6 +111,53 @@ public void setUserGroupByFields(List userGroupByFields) { this.userGroupByFields = JsonNullable.>of(userGroupByFields); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudConfigurationRuleComplianceSignalOptions + */ + @JsonAnySetter + public CloudConfigurationRuleComplianceSignalOptions putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudConfigurationRuleComplianceSignalOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,13 +173,15 @@ public boolean equals(Object o) { this.userActivationStatus, cloudConfigurationRuleComplianceSignalOptions.userActivationStatus) && Objects.equals( - this.userGroupByFields, - cloudConfigurationRuleComplianceSignalOptions.userGroupByFields); + this.userGroupByFields, cloudConfigurationRuleComplianceSignalOptions.userGroupByFields) + && Objects.equals( + this.additionalProperties, + cloudConfigurationRuleComplianceSignalOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(userActivationStatus, userGroupByFields); + return Objects.hash(userActivationStatus, userGroupByFields, additionalProperties); } @Override @@ -139,6 +192,9 @@ public String toString() { .append(toIndentedString(userActivationStatus)) .append("\n"); sb.append(" userGroupByFields: ").append(toIndentedString(userGroupByFields)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCreatePayload.java b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCreatePayload.java index b5a6a821e1f..05a7ec520d4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCreatePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleCreatePayload.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Create a new cloud configuration rule. */ @@ -266,6 +270,52 @@ public void setType(CloudConfigurationRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudConfigurationRuleCreatePayload + */ + @JsonAnySetter + public CloudConfigurationRuleCreatePayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudConfigurationRuleCreatePayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -286,13 +336,23 @@ public boolean equals(Object o) { && Objects.equals(this.name, cloudConfigurationRuleCreatePayload.name) && Objects.equals(this.options, cloudConfigurationRuleCreatePayload.options) && Objects.equals(this.tags, cloudConfigurationRuleCreatePayload.tags) - && Objects.equals(this.type, cloudConfigurationRuleCreatePayload.type); + && Objects.equals(this.type, cloudConfigurationRuleCreatePayload.type) + && Objects.equals( + this.additionalProperties, cloudConfigurationRuleCreatePayload.additionalProperties); } @Override public int hashCode() { return Objects.hash( - cases, complianceSignalOptions, isEnabled, message, name, options, tags, type); + cases, + complianceSignalOptions, + isEnabled, + message, + name, + options, + tags, + type, + additionalProperties); } @Override @@ -309,6 +369,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleOptions.java b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleOptions.java index caa66f88fee..0ca6ba93cec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleOptions.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options on cloud configuration rules. */ @@ -56,6 +60,52 @@ public void setComplianceRuleOptions( this.complianceRuleOptions = complianceRuleOptions; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudConfigurationRuleOptions + */ + @JsonAnySetter + public CloudConfigurationRuleOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudConfigurationRuleOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } CloudConfigurationRuleOptions cloudConfigurationRuleOptions = (CloudConfigurationRuleOptions) o; return Objects.equals( - this.complianceRuleOptions, cloudConfigurationRuleOptions.complianceRuleOptions); + this.complianceRuleOptions, cloudConfigurationRuleOptions.complianceRuleOptions) + && Objects.equals( + this.additionalProperties, cloudConfigurationRuleOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(complianceRuleOptions); + return Objects.hash(complianceRuleOptions, additionalProperties); } @Override @@ -82,6 +134,9 @@ public String toString() { sb.append(" complianceRuleOptions: ") .append(toIndentedString(complianceRuleOptions)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleAttributes.java index 476b925207a..c78ac884542 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A Cloud Workload Security Agent rule returned by the API. */ @@ -298,6 +302,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleAttributes + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -319,7 +369,10 @@ public boolean equals(Object o) { && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleAttributes.name) && Objects.equals(this.updatedAt, cloudWorkloadSecurityAgentRuleAttributes.updatedAt) && Objects.equals(this.updater, cloudWorkloadSecurityAgentRuleAttributes.updater) - && Objects.equals(this.version, cloudWorkloadSecurityAgentRuleAttributes.version); + && Objects.equals(this.version, cloudWorkloadSecurityAgentRuleAttributes.version) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleAttributes.additionalProperties); } @Override @@ -335,7 +388,8 @@ public int hashCode() { name, updatedAt, updater, - version); + version, + additionalProperties); } @Override @@ -353,6 +407,9 @@ public String toString() { sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" updater: ").append(toIndentedString(updater)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateAttributes.java index bb716565d0c..28bba283ed3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create a new Cloud Workload Security Agent rule. */ @@ -128,6 +132,53 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleCreateAttributes + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleCreateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +195,15 @@ public boolean equals(Object o) { && Objects.equals(this.enabled, cloudWorkloadSecurityAgentRuleCreateAttributes.enabled) && Objects.equals( this.expression, cloudWorkloadSecurityAgentRuleCreateAttributes.expression) - && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleCreateAttributes.name); + && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleCreateAttributes.name) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, enabled, expression, name); + return Objects.hash(description, enabled, expression, name, additionalProperties); } @Override @@ -160,6 +214,9 @@ public String toString() { sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateData.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateData.java index 528e4331bbc..f96df349293 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single Agent rule. */ @@ -88,6 +92,52 @@ public void setType(CloudWorkloadSecurityAgentRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleCreateData + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,15 @@ public boolean equals(Object o) { CloudWorkloadSecurityAgentRuleCreateData cloudWorkloadSecurityAgentRuleCreateData = (CloudWorkloadSecurityAgentRuleCreateData) o; return Objects.equals(this.attributes, cloudWorkloadSecurityAgentRuleCreateData.attributes) - && Objects.equals(this.type, cloudWorkloadSecurityAgentRuleCreateData.type); + && Objects.equals(this.type, cloudWorkloadSecurityAgentRuleCreateData.type) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -114,6 +167,9 @@ public String toString() { sb.append("class CloudWorkloadSecurityAgentRuleCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateRequest.java index e9498a73ef2..56c9034517b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object that includes the Agent rule to create. */ @@ -54,6 +58,53 @@ public void setData(CloudWorkloadSecurityAgentRuleCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleCreateRequest + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleCreateRequest putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } CloudWorkloadSecurityAgentRuleCreateRequest cloudWorkloadSecurityAgentRuleCreateRequest = (CloudWorkloadSecurityAgentRuleCreateRequest) o; - return Objects.equals(this.data, cloudWorkloadSecurityAgentRuleCreateRequest.data); + return Objects.equals(this.data, cloudWorkloadSecurityAgentRuleCreateRequest.data) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudWorkloadSecurityAgentRuleCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 0c599d5d40d..6333a65ccb4 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -80,6 +84,53 @@ public void setName(String name) { this.name = JsonNullable.of(name); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleCreatorAttributes + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleCreatorAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleCreatorAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -93,12 +144,15 @@ public boolean equals(Object o) { cloudWorkloadSecurityAgentRuleCreatorAttributes = (CloudWorkloadSecurityAgentRuleCreatorAttributes) o; return Objects.equals(this.handle, cloudWorkloadSecurityAgentRuleCreatorAttributes.handle) - && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleCreatorAttributes.name); + && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleCreatorAttributes.name) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleCreatorAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(handle, name); + return Objects.hash(handle, name, additionalProperties); } @Override @@ -107,6 +161,9 @@ public String toString() { sb.append("class CloudWorkloadSecurityAgentRuleCreatorAttributes {\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleData.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleData.java index 4e0df848913..7793fd4b690 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single Agent rule. */ @@ -100,6 +104,52 @@ public void setType(CloudWorkloadSecurityAgentRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleData + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleData object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,14 @@ public boolean equals(Object o) { (CloudWorkloadSecurityAgentRuleData) o; return Objects.equals(this.attributes, cloudWorkloadSecurityAgentRuleData.attributes) && Objects.equals(this.id, cloudWorkloadSecurityAgentRuleData.id) - && Objects.equals(this.type, cloudWorkloadSecurityAgentRuleData.type); + && Objects.equals(this.type, cloudWorkloadSecurityAgentRuleData.type) + && Objects.equals( + this.additionalProperties, cloudWorkloadSecurityAgentRuleData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleResponse.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleResponse.java index 0950538f775..8bbc478a2d2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object that includes an Agent rule. */ @@ -43,6 +47,52 @@ public void setData(CloudWorkloadSecurityAgentRuleData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleResponse + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } CloudWorkloadSecurityAgentRuleResponse cloudWorkloadSecurityAgentRuleResponse = (CloudWorkloadSecurityAgentRuleResponse) o; - return Objects.equals(this.data, cloudWorkloadSecurityAgentRuleResponse.data); + return Objects.equals(this.data, cloudWorkloadSecurityAgentRuleResponse.data) + && Objects.equals( + this.additionalProperties, cloudWorkloadSecurityAgentRuleResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudWorkloadSecurityAgentRuleResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateAttributes.java index 141c2247339..f1155ce7f8f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update an existing Cloud Workload Security Agent rule. */ @@ -94,6 +98,53 @@ public void setExpression(String expression) { this.expression = expression; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleUpdateAttributes + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleUpdateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -109,12 +160,15 @@ public boolean equals(Object o) { this.description, cloudWorkloadSecurityAgentRuleUpdateAttributes.description) && Objects.equals(this.enabled, cloudWorkloadSecurityAgentRuleUpdateAttributes.enabled) && Objects.equals( - this.expression, cloudWorkloadSecurityAgentRuleUpdateAttributes.expression); + this.expression, cloudWorkloadSecurityAgentRuleUpdateAttributes.expression) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, enabled, expression); + return Objects.hash(description, enabled, expression, additionalProperties); } @Override @@ -124,6 +178,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateData.java index 6e89b27b6bd..695b48bc163 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single Agent rule. */ @@ -88,6 +92,52 @@ public void setType(CloudWorkloadSecurityAgentRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleUpdateData + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,15 @@ public boolean equals(Object o) { CloudWorkloadSecurityAgentRuleUpdateData cloudWorkloadSecurityAgentRuleUpdateData = (CloudWorkloadSecurityAgentRuleUpdateData) o; return Objects.equals(this.attributes, cloudWorkloadSecurityAgentRuleUpdateData.attributes) - && Objects.equals(this.type, cloudWorkloadSecurityAgentRuleUpdateData.type); + && Objects.equals(this.type, cloudWorkloadSecurityAgentRuleUpdateData.type) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -114,6 +167,9 @@ public String toString() { sb.append("class CloudWorkloadSecurityAgentRuleUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateRequest.java index ced9ef96df4..1ca2c54ae14 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object that includes the Agent rule with the attributes to update. */ @@ -54,6 +58,53 @@ public void setData(CloudWorkloadSecurityAgentRuleUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleUpdateRequest + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleUpdateRequest putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } CloudWorkloadSecurityAgentRuleUpdateRequest cloudWorkloadSecurityAgentRuleUpdateRequest = (CloudWorkloadSecurityAgentRuleUpdateRequest) o; - return Objects.equals(this.data, cloudWorkloadSecurityAgentRuleUpdateRequest.data); + return Objects.equals(this.data, cloudWorkloadSecurityAgentRuleUpdateRequest.data) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudWorkloadSecurityAgentRuleUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 f833879102a..a38694e04a0 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -80,6 +84,53 @@ public void setName(String name) { this.name = JsonNullable.of(name); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRuleUpdaterAttributes + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRuleUpdaterAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRuleUpdaterAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -93,12 +144,15 @@ public boolean equals(Object o) { cloudWorkloadSecurityAgentRuleUpdaterAttributes = (CloudWorkloadSecurityAgentRuleUpdaterAttributes) o; return Objects.equals(this.handle, cloudWorkloadSecurityAgentRuleUpdaterAttributes.handle) - && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleUpdaterAttributes.name); + && Objects.equals(this.name, cloudWorkloadSecurityAgentRuleUpdaterAttributes.name) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRuleUpdaterAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(handle, name); + return Objects.hash(handle, name, additionalProperties); } @Override @@ -107,6 +161,9 @@ public String toString() { sb.append("class CloudWorkloadSecurityAgentRuleUpdaterAttributes {\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRulesListResponse.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRulesListResponse.java index 782ff2d69e3..364a241ee66 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRulesListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRulesListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object that includes a list of Agent rule. */ @@ -58,6 +62,53 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudWorkloadSecurityAgentRulesListResponse + */ + @JsonAnySetter + public CloudWorkloadSecurityAgentRulesListResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudWorkloadSecurityAgentRulesListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +120,15 @@ public boolean equals(Object o) { } CloudWorkloadSecurityAgentRulesListResponse cloudWorkloadSecurityAgentRulesListResponse = (CloudWorkloadSecurityAgentRulesListResponse) o; - return Objects.equals(this.data, cloudWorkloadSecurityAgentRulesListResponse.data); + return Objects.equals(this.data, cloudWorkloadSecurityAgentRulesListResponse.data) + && Objects.equals( + this.additionalProperties, + cloudWorkloadSecurityAgentRulesListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -82,6 +136,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudWorkloadSecurityAgentRulesListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequest.java index 4e19e9c34bc..a5c7daa2021 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Payload schema when adding a Cloudflare account. */ @@ -53,6 +57,52 @@ public void setData(CloudflareAccountCreateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountCreateRequest + */ + @JsonAnySetter + public CloudflareAccountCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } CloudflareAccountCreateRequest cloudflareAccountCreateRequest = (CloudflareAccountCreateRequest) o; - return Objects.equals(this.data, cloudflareAccountCreateRequest.data); + return Objects.equals(this.data, cloudflareAccountCreateRequest.data) + && Objects.equals( + this.additionalProperties, cloudflareAccountCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudflareAccountCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestAttributes.java index 4139579da00..b531232f1be 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes object for creating a Cloudflare account. */ @@ -104,6 +108,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountCreateRequestAttributes + */ + @JsonAnySetter + public CloudflareAccountCreateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountCreateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +167,15 @@ public boolean equals(Object o) { (CloudflareAccountCreateRequestAttributes) o; return Objects.equals(this.apiKey, cloudflareAccountCreateRequestAttributes.apiKey) && Objects.equals(this.email, cloudflareAccountCreateRequestAttributes.email) - && Objects.equals(this.name, cloudflareAccountCreateRequestAttributes.name); + && Objects.equals(this.name, cloudflareAccountCreateRequestAttributes.name) + && Objects.equals( + this.additionalProperties, + cloudflareAccountCreateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, email, name); + return Objects.hash(apiKey, email, name, additionalProperties); } @Override @@ -132,6 +185,9 @@ public String toString() { sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestData.java index 6c0cfd45c77..b1062735d60 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountCreateRequestData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object for creating a Cloudflare account. */ @@ -87,6 +91,52 @@ public void setType(CloudflareAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountCreateRequestData + */ + @JsonAnySetter + public CloudflareAccountCreateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountCreateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { CloudflareAccountCreateRequestData cloudflareAccountCreateRequestData = (CloudflareAccountCreateRequestData) o; return Objects.equals(this.attributes, cloudflareAccountCreateRequestData.attributes) - && Objects.equals(this.type, cloudflareAccountCreateRequestData.type); + && Objects.equals(this.type, cloudflareAccountCreateRequestData.type) + && Objects.equals( + this.additionalProperties, cloudflareAccountCreateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class CloudflareAccountCreateRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponse.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponse.java index 5d8ed7f2ab3..3f6dd0b6d6c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting a Cloudflare account. */ @@ -43,6 +47,52 @@ public void setData(CloudflareAccountResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountResponse + */ + @JsonAnySetter + public CloudflareAccountResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } CloudflareAccountResponse cloudflareAccountResponse = (CloudflareAccountResponse) o; - return Objects.equals(this.data, cloudflareAccountResponse.data); + return Objects.equals(this.data, cloudflareAccountResponse.data) + && Objects.equals( + this.additionalProperties, cloudflareAccountResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudflareAccountResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseAttributes.java index 021114e3b60..0facee73a34 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes object of a Cloudflare account. */ @@ -77,6 +81,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountResponseAttributes + */ + @JsonAnySetter + public CloudflareAccountResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { CloudflareAccountResponseAttributes cloudflareAccountResponseAttributes = (CloudflareAccountResponseAttributes) o; return Objects.equals(this.email, cloudflareAccountResponseAttributes.email) - && Objects.equals(this.name, cloudflareAccountResponseAttributes.name); + && Objects.equals(this.name, cloudflareAccountResponseAttributes.name) + && Objects.equals( + this.additionalProperties, cloudflareAccountResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, name); + return Objects.hash(email, name, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class CloudflareAccountResponseAttributes {\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseData.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseData.java index 8f4d36334bf..e50f694d9a2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object of a Cloudflare account. */ @@ -112,6 +116,52 @@ public void setType(CloudflareAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountResponseData + */ + @JsonAnySetter + public CloudflareAccountResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { CloudflareAccountResponseData cloudflareAccountResponseData = (CloudflareAccountResponseData) o; return Objects.equals(this.attributes, cloudflareAccountResponseData.attributes) && Objects.equals(this.id, cloudflareAccountResponseData.id) - && Objects.equals(this.type, cloudflareAccountResponseData.type); + && Objects.equals(this.type, cloudflareAccountResponseData.type) + && Objects.equals( + this.additionalProperties, cloudflareAccountResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequest.java index a9f856ff9ef..be05669b118 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Payload schema when updating a Cloudflare account. */ @@ -53,6 +57,52 @@ public void setData(CloudflareAccountUpdateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountUpdateRequest + */ + @JsonAnySetter + public CloudflareAccountUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } CloudflareAccountUpdateRequest cloudflareAccountUpdateRequest = (CloudflareAccountUpdateRequest) o; - return Objects.equals(this.data, cloudflareAccountUpdateRequest.data); + return Objects.equals(this.data, cloudflareAccountUpdateRequest.data) + && Objects.equals( + this.additionalProperties, cloudflareAccountUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudflareAccountUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestAttributes.java index 1f4ee91e7d2..65c6666db5f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes object for updating a Cloudflare account. */ @@ -78,6 +82,52 @@ public void setEmail(String email) { this.email = email; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountUpdateRequestAttributes + */ + @JsonAnySetter + public CloudflareAccountUpdateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountUpdateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,15 @@ public boolean equals(Object o) { CloudflareAccountUpdateRequestAttributes cloudflareAccountUpdateRequestAttributes = (CloudflareAccountUpdateRequestAttributes) o; return Objects.equals(this.apiKey, cloudflareAccountUpdateRequestAttributes.apiKey) - && Objects.equals(this.email, cloudflareAccountUpdateRequestAttributes.email); + && Objects.equals(this.email, cloudflareAccountUpdateRequestAttributes.email) + && Objects.equals( + this.additionalProperties, + cloudflareAccountUpdateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, email); + return Objects.hash(apiKey, email, additionalProperties); } @Override @@ -104,6 +157,9 @@ public String toString() { sb.append("class CloudflareAccountUpdateRequestAttributes {\n"); sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestData.java index 6a9716c6d04..d719e7cd528 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountUpdateRequestData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object for updating a Cloudflare account. */ @@ -75,6 +79,52 @@ public void setType(CloudflareAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountUpdateRequestData + */ + @JsonAnySetter + public CloudflareAccountUpdateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountUpdateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -87,12 +137,14 @@ public boolean equals(Object o) { CloudflareAccountUpdateRequestData cloudflareAccountUpdateRequestData = (CloudflareAccountUpdateRequestData) o; return Objects.equals(this.attributes, cloudflareAccountUpdateRequestData.attributes) - && Objects.equals(this.type, cloudflareAccountUpdateRequestData.type); + && Objects.equals(this.type, cloudflareAccountUpdateRequestData.type) + && Objects.equals( + this.additionalProperties, cloudflareAccountUpdateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -101,6 +153,9 @@ public String toString() { sb.append("class CloudflareAccountUpdateRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountsResponse.java b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountsResponse.java index 806bf92c7c8..943b69c5f20 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudflareAccountsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting Cloudflare accounts. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CloudflareAccountsResponse + */ + @JsonAnySetter + public CloudflareAccountsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CloudflareAccountsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } CloudflareAccountsResponse cloudflareAccountsResponse = (CloudflareAccountsResponse) o; - return Objects.equals(this.data, cloudflareAccountsResponse.data); + return Objects.equals(this.data, cloudflareAccountsResponse.data) + && Objects.equals( + this.additionalProperties, cloudflareAccountsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CloudflareAccountsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequest.java index 57aa809c016..c298e526ecf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Payload schema when adding a Confluent account. */ @@ -53,6 +57,52 @@ public void setData(ConfluentAccountCreateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountCreateRequest + */ + @JsonAnySetter + public ConfluentAccountCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } ConfluentAccountCreateRequest confluentAccountCreateRequest = (ConfluentAccountCreateRequest) o; - return Objects.equals(this.data, confluentAccountCreateRequest.data); + return Objects.equals(this.data, confluentAccountCreateRequest.data) + && Objects.equals( + this.additionalProperties, confluentAccountCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentAccountCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestAttributes.java index f37241c33df..44698e77a4d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes associated with the account creation request. */ @@ -153,6 +157,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountCreateRequestAttributes + */ + @JsonAnySetter + public ConfluentAccountCreateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountCreateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -167,12 +217,15 @@ public boolean equals(Object o) { return Objects.equals(this.apiKey, confluentAccountCreateRequestAttributes.apiKey) && Objects.equals(this.apiSecret, confluentAccountCreateRequestAttributes.apiSecret) && Objects.equals(this.resources, confluentAccountCreateRequestAttributes.resources) - && Objects.equals(this.tags, confluentAccountCreateRequestAttributes.tags); + && Objects.equals(this.tags, confluentAccountCreateRequestAttributes.tags) + && Objects.equals( + this.additionalProperties, + confluentAccountCreateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, apiSecret, resources, tags); + return Objects.hash(apiKey, apiSecret, resources, tags, additionalProperties); } @Override @@ -183,6 +236,9 @@ public String toString() { sb.append(" apiSecret: ").append(toIndentedString(apiSecret)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestData.java index 36000da1623..ff1c94ceaf1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountCreateRequestData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The data body for adding a Confluent account. */ @@ -87,6 +91,52 @@ public void setType(ConfluentAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountCreateRequestData + */ + @JsonAnySetter + public ConfluentAccountCreateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountCreateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { ConfluentAccountCreateRequestData confluentAccountCreateRequestData = (ConfluentAccountCreateRequestData) o; return Objects.equals(this.attributes, confluentAccountCreateRequestData.attributes) - && Objects.equals(this.type, confluentAccountCreateRequestData.type); + && Objects.equals(this.type, confluentAccountCreateRequestData.type) + && Objects.equals( + this.additionalProperties, confluentAccountCreateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class ConfluentAccountCreateRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java index 6aaca8c3eeb..1ec8bd714d4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes object for updating a Confluent resource. */ @@ -114,6 +118,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountResourceAttributes + */ + @JsonAnySetter + public ConfluentAccountResourceAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountResourceAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,14 @@ public boolean equals(Object o) { (ConfluentAccountResourceAttributes) o; return Objects.equals(this.id, confluentAccountResourceAttributes.id) && Objects.equals(this.resourceType, confluentAccountResourceAttributes.resourceType) - && Objects.equals(this.tags, confluentAccountResourceAttributes.tags); + && Objects.equals(this.tags, confluentAccountResourceAttributes.tags) + && Objects.equals( + this.additionalProperties, confluentAccountResourceAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, resourceType, tags); + return Objects.hash(id, resourceType, tags, additionalProperties); } @Override @@ -142,6 +194,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponse.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponse.java index adb37e62a46..bc54a53e500 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting a Confluent account. */ @@ -43,6 +47,52 @@ public void setData(ConfluentAccountResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountResponse + */ + @JsonAnySetter + public ConfluentAccountResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } ConfluentAccountResponse confluentAccountResponse = (ConfluentAccountResponse) o; - return Objects.equals(this.data, confluentAccountResponse.data); + return Objects.equals(this.data, confluentAccountResponse.data) + && Objects.equals(this.additionalProperties, confluentAccountResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentAccountResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseAttributes.java index 1f9998b0959..8608188ec72 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The attributes of a Confluent account. */ @@ -127,6 +131,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountResponseAttributes + */ + @JsonAnySetter + public ConfluentAccountResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,14 @@ public boolean equals(Object o) { (ConfluentAccountResponseAttributes) o; return Objects.equals(this.apiKey, confluentAccountResponseAttributes.apiKey) && Objects.equals(this.resources, confluentAccountResponseAttributes.resources) - && Objects.equals(this.tags, confluentAccountResponseAttributes.tags); + && Objects.equals(this.tags, confluentAccountResponseAttributes.tags) + && Objects.equals( + this.additionalProperties, confluentAccountResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, resources, tags); + return Objects.hash(apiKey, resources, tags, additionalProperties); } @Override @@ -155,6 +207,9 @@ public String toString() { sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseData.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseData.java index 33ce43a5eaf..9f75f35e1c9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An API key and API secret pair that represents a Confluent account. */ @@ -112,6 +116,52 @@ public void setType(ConfluentAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountResponseData + */ + @JsonAnySetter + public ConfluentAccountResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { ConfluentAccountResponseData confluentAccountResponseData = (ConfluentAccountResponseData) o; return Objects.equals(this.attributes, confluentAccountResponseData.attributes) && Objects.equals(this.id, confluentAccountResponseData.id) - && Objects.equals(this.type, confluentAccountResponseData.type); + && Objects.equals(this.type, confluentAccountResponseData.type) + && Objects.equals( + this.additionalProperties, confluentAccountResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequest.java index 240af25ff86..a9fe7f23c53 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The JSON:API request for updating a Confluent account. */ @@ -53,6 +57,52 @@ public void setData(ConfluentAccountUpdateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountUpdateRequest + */ + @JsonAnySetter + public ConfluentAccountUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } ConfluentAccountUpdateRequest confluentAccountUpdateRequest = (ConfluentAccountUpdateRequest) o; - return Objects.equals(this.data, confluentAccountUpdateRequest.data); + return Objects.equals(this.data, confluentAccountUpdateRequest.data) + && Objects.equals( + this.additionalProperties, confluentAccountUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentAccountUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestAttributes.java index f75c6a1c4b9..3f869cfbed9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes object for updating a Confluent account. */ @@ -114,6 +118,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountUpdateRequestAttributes + */ + @JsonAnySetter + public ConfluentAccountUpdateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountUpdateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,15 @@ public boolean equals(Object o) { (ConfluentAccountUpdateRequestAttributes) o; return Objects.equals(this.apiKey, confluentAccountUpdateRequestAttributes.apiKey) && Objects.equals(this.apiSecret, confluentAccountUpdateRequestAttributes.apiSecret) - && Objects.equals(this.tags, confluentAccountUpdateRequestAttributes.tags); + && Objects.equals(this.tags, confluentAccountUpdateRequestAttributes.tags) + && Objects.equals( + this.additionalProperties, + confluentAccountUpdateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, apiSecret, tags); + return Objects.hash(apiKey, apiSecret, tags, additionalProperties); } @Override @@ -142,6 +195,9 @@ public String toString() { sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); sb.append(" apiSecret: ").append(toIndentedString(apiSecret)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestData.java index 4748a7b22d3..caaaee30a91 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountUpdateRequestData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object for updating a Confluent account. */ @@ -87,6 +91,52 @@ public void setType(ConfluentAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountUpdateRequestData + */ + @JsonAnySetter + public ConfluentAccountUpdateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountUpdateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { ConfluentAccountUpdateRequestData confluentAccountUpdateRequestData = (ConfluentAccountUpdateRequestData) o; return Objects.equals(this.attributes, confluentAccountUpdateRequestData.attributes) - && Objects.equals(this.type, confluentAccountUpdateRequestData.type); + && Objects.equals(this.type, confluentAccountUpdateRequestData.type) + && Objects.equals( + this.additionalProperties, confluentAccountUpdateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class ConfluentAccountUpdateRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountsResponse.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountsResponse.java index ee765d93778..8267128690c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Confluent account returned by the API. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentAccountsResponse + */ + @JsonAnySetter + public ConfluentAccountsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentAccountsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } ConfluentAccountsResponse confluentAccountsResponse = (ConfluentAccountsResponse) o; - return Objects.equals(this.data, confluentAccountsResponse.data); + return Objects.equals(this.data, confluentAccountsResponse.data) + && Objects.equals( + this.additionalProperties, confluentAccountsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentAccountsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequest.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequest.java index 7401485a6c6..d4cd670285a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The JSON:API request for updating a Confluent resource. */ @@ -53,6 +57,52 @@ public void setData(ConfluentResourceRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourceRequest + */ + @JsonAnySetter + public ConfluentResourceRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourceRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,13 @@ public boolean equals(Object o) { return false; } ConfluentResourceRequest confluentResourceRequest = (ConfluentResourceRequest) o; - return Objects.equals(this.data, confluentResourceRequest.data); + return Objects.equals(this.data, confluentResourceRequest.data) + && Objects.equals(this.additionalProperties, confluentResourceRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentResourceRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java index 49ea17b31d1..984e9d9dc99 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes object for updating a Confluent resource. */ @@ -89,6 +93,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourceRequestAttributes + */ + @JsonAnySetter + public ConfluentResourceRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourceRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -101,12 +151,14 @@ public boolean equals(Object o) { ConfluentResourceRequestAttributes confluentResourceRequestAttributes = (ConfluentResourceRequestAttributes) o; return Objects.equals(this.resourceType, confluentResourceRequestAttributes.resourceType) - && Objects.equals(this.tags, confluentResourceRequestAttributes.tags); + && Objects.equals(this.tags, confluentResourceRequestAttributes.tags) + && Objects.equals( + this.additionalProperties, confluentResourceRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(resourceType, tags); + return Objects.hash(resourceType, tags, additionalProperties); } @Override @@ -115,6 +167,9 @@ public String toString() { sb.append("class ConfluentResourceRequestAttributes {\n"); sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestData.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestData.java index 72f601d99d2..a0eae9f5223 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** JSON:API request for updating a Confluent resource. */ @@ -112,6 +116,52 @@ public void setType(ConfluentResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourceRequestData + */ + @JsonAnySetter + public ConfluentResourceRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourceRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { ConfluentResourceRequestData confluentResourceRequestData = (ConfluentResourceRequestData) o; return Objects.equals(this.attributes, confluentResourceRequestData.attributes) && Objects.equals(this.id, confluentResourceRequestData.id) - && Objects.equals(this.type, confluentResourceRequestData.type); + && Objects.equals(this.type, confluentResourceRequestData.type) + && Objects.equals( + this.additionalProperties, confluentResourceRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponse.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponse.java index c68ba3c571b..29d294edb39 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response schema when interacting with a Confluent resource. */ @@ -43,6 +47,52 @@ public void setData(ConfluentResourceResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourceResponse + */ + @JsonAnySetter + public ConfluentResourceResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourceResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } ConfluentResourceResponse confluentResourceResponse = (ConfluentResourceResponse) o; - return Objects.equals(this.data, confluentResourceResponse.data); + return Objects.equals(this.data, confluentResourceResponse.data) + && Objects.equals( + this.additionalProperties, confluentResourceResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentResourceResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseAttributes.java index 51c2b1ce0a5..938f7394fd0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Model representation of a Confluent Cloud resource. */ @@ -89,6 +93,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourceResponseAttributes + */ + @JsonAnySetter + public ConfluentResourceResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourceResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -101,12 +151,14 @@ public boolean equals(Object o) { ConfluentResourceResponseAttributes confluentResourceResponseAttributes = (ConfluentResourceResponseAttributes) o; return Objects.equals(this.resourceType, confluentResourceResponseAttributes.resourceType) - && Objects.equals(this.tags, confluentResourceResponseAttributes.tags); + && Objects.equals(this.tags, confluentResourceResponseAttributes.tags) + && Objects.equals( + this.additionalProperties, confluentResourceResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(resourceType, tags); + return Objects.hash(resourceType, tags, additionalProperties); } @Override @@ -115,6 +167,9 @@ public String toString() { sb.append("class ConfluentResourceResponseAttributes {\n"); sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseData.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseData.java index 3c75157a32b..4c9545c7a19 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Confluent Cloud resource data. */ @@ -112,6 +116,52 @@ public void setType(ConfluentResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourceResponseData + */ + @JsonAnySetter + public ConfluentResourceResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourceResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { ConfluentResourceResponseData confluentResourceResponseData = (ConfluentResourceResponseData) o; return Objects.equals(this.attributes, confluentResourceResponseData.attributes) && Objects.equals(this.id, confluentResourceResponseData.id) - && Objects.equals(this.type, confluentResourceResponseData.type); + && Objects.equals(this.type, confluentResourceResponseData.type) + && Objects.equals( + this.additionalProperties, confluentResourceResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourcesResponse.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourcesResponse.java index 75968398bfd..91147952820 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourcesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourcesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response schema when interacting with a list of Confluent resources. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ConfluentResourcesResponse + */ + @JsonAnySetter + public ConfluentResourcesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ConfluentResourcesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } ConfluentResourcesResponse confluentResourcesResponse = (ConfluentResourcesResponse) o; - return Objects.equals(this.data, confluentResourcesResponse.data); + return Objects.equals(this.data, confluentResourcesResponse.data) + && Objects.equals( + this.additionalProperties, confluentResourcesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfluentResourcesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CostByOrg.java b/src/main/java/com/datadog/api/client/v2/model/CostByOrg.java index b97c521a1c1..3491693e64d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CostByOrg.java +++ b/src/main/java/com/datadog/api/client/v2/model/CostByOrg.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Cost data. */ @@ -99,6 +103,52 @@ public void setType(CostByOrgType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CostByOrg + */ + @JsonAnySetter + public CostByOrg putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CostByOrg object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { CostByOrg costByOrg = (CostByOrg) o; return Objects.equals(this.attributes, costByOrg.attributes) && Objects.equals(this.id, costByOrg.id) - && Objects.equals(this.type, costByOrg.type); + && Objects.equals(this.type, costByOrg.type) + && Objects.equals(this.additionalProperties, costByOrg.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CostByOrgAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CostByOrgAttributes.java index 4bd5fd6a72a..79d3b396dca 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CostByOrgAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CostByOrgAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Cost attributes data. */ @@ -184,6 +188,52 @@ public void setTotalCost(Double totalCost) { this.totalCost = totalCost; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CostByOrgAttributes + */ + @JsonAnySetter + public CostByOrgAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CostByOrgAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -199,12 +249,13 @@ public boolean equals(Object o) { && Objects.equals(this.orgName, costByOrgAttributes.orgName) && Objects.equals(this.publicId, costByOrgAttributes.publicId) && Objects.equals(this.region, costByOrgAttributes.region) - && Objects.equals(this.totalCost, costByOrgAttributes.totalCost); + && Objects.equals(this.totalCost, costByOrgAttributes.totalCost) + && Objects.equals(this.additionalProperties, costByOrgAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(charges, date, orgName, publicId, region, totalCost); + return Objects.hash(charges, date, orgName, publicId, region, totalCost, additionalProperties); } @Override @@ -217,6 +268,9 @@ public String toString() { sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" totalCost: ").append(toIndentedString(totalCost)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CostByOrgResponse.java b/src/main/java/com/datadog/api/client/v2/model/CostByOrgResponse.java index 592f3a0a42c..88911038748 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CostByOrgResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/CostByOrgResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Chargeback Summary response. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CostByOrgResponse + */ + @JsonAnySetter + public CostByOrgResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CostByOrgResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } CostByOrgResponse costByOrgResponse = (CostByOrgResponse) o; - return Objects.equals(this.data, costByOrgResponse.data); + return Objects.equals(this.data, costByOrgResponse.data) + && Objects.equals(this.additionalProperties, costByOrgResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CostByOrgResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 58f43e01e1c..1be15b30732 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 @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -105,6 +109,52 @@ public void setName(String name) { this.name = JsonNullable.of(name); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Creator + */ + @JsonAnySetter + public Creator putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Creator object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +167,13 @@ public boolean equals(Object o) { Creator creator = (Creator) o; return Objects.equals(this.email, creator.email) && Objects.equals(this.handle, creator.handle) - && Objects.equals(this.name, creator.name); + && Objects.equals(this.name, creator.name) + && Objects.equals(this.additionalProperties, creator.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, handle, name); + return Objects.hash(email, handle, name, additionalProperties); } @Override @@ -132,6 +183,9 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsRequest.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsRequest.java index 75b7315ff12..2940108b2a3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request containing a list of dashboards to add. */ @@ -56,6 +60,52 @@ public void setDashboards(List dashboards) { this.dashboards = dashboards; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListAddItemsRequest + */ + @JsonAnySetter + public DashboardListAddItemsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListAddItemsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } DashboardListAddItemsRequest dashboardListAddItemsRequest = (DashboardListAddItemsRequest) o; - return Objects.equals(this.dashboards, dashboardListAddItemsRequest.dashboards); + return Objects.equals(this.dashboards, dashboardListAddItemsRequest.dashboards) + && Objects.equals( + this.additionalProperties, dashboardListAddItemsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboards); + return Objects.hash(dashboards, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardListAddItemsRequest {\n"); sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsResponse.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsResponse.java index 4a30ce6eac3..0b2f3ef075b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListAddItemsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing a list of added dashboards. */ @@ -58,6 +62,52 @@ public void setAddedDashboardsToList(List addedDashbo this.addedDashboardsToList = addedDashboardsToList; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListAddItemsResponse + */ + @JsonAnySetter + public DashboardListAddItemsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListAddItemsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,14 @@ public boolean equals(Object o) { } DashboardListAddItemsResponse dashboardListAddItemsResponse = (DashboardListAddItemsResponse) o; return Objects.equals( - this.addedDashboardsToList, dashboardListAddItemsResponse.addedDashboardsToList); + this.addedDashboardsToList, dashboardListAddItemsResponse.addedDashboardsToList) + && Objects.equals( + this.additionalProperties, dashboardListAddItemsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(addedDashboardsToList); + return Objects.hash(addedDashboardsToList, additionalProperties); } @Override @@ -84,6 +136,9 @@ public String toString() { sb.append(" addedDashboardsToList: ") .append(toIndentedString(addedDashboardsToList)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsRequest.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsRequest.java index 5c4468d34e7..80f2fd50f95 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request containing a list of dashboards to delete. */ @@ -57,6 +61,52 @@ public void setDashboards(List dashboards) { this.dashboards = dashboards; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListDeleteItemsRequest + */ + @JsonAnySetter + public DashboardListDeleteItemsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListDeleteItemsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { } DashboardListDeleteItemsRequest dashboardListDeleteItemsRequest = (DashboardListDeleteItemsRequest) o; - return Objects.equals(this.dashboards, dashboardListDeleteItemsRequest.dashboards); + return Objects.equals(this.dashboards, dashboardListDeleteItemsRequest.dashboards) + && Objects.equals( + this.additionalProperties, dashboardListDeleteItemsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboards); + return Objects.hash(dashboards, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardListDeleteItemsRequest {\n"); sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsResponse.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsResponse.java index faa9ba7ba39..d1f2906d4d9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListDeleteItemsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing a list of deleted dashboards. */ @@ -60,6 +64,52 @@ public void setDeletedDashboardsFromList( this.deletedDashboardsFromList = deletedDashboardsFromList; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListDeleteItemsResponse + */ + @JsonAnySetter + public DashboardListDeleteItemsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListDeleteItemsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,15 @@ public boolean equals(Object o) { DashboardListDeleteItemsResponse dashboardListDeleteItemsResponse = (DashboardListDeleteItemsResponse) o; return Objects.equals( - this.deletedDashboardsFromList, dashboardListDeleteItemsResponse.deletedDashboardsFromList); + this.deletedDashboardsFromList, + dashboardListDeleteItemsResponse.deletedDashboardsFromList) + && Objects.equals( + this.additionalProperties, dashboardListDeleteItemsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(deletedDashboardsFromList); + return Objects.hash(deletedDashboardsFromList, additionalProperties); } @Override @@ -87,6 +140,9 @@ public String toString() { sb.append(" deletedDashboardsFromList: ") .append(toIndentedString(deletedDashboardsFromList)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 bd5d6152606..2e06aa0e370 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -269,6 +273,52 @@ public String getUrl() { return url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListItem + */ + @JsonAnySetter + public DashboardListItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -290,7 +340,8 @@ public boolean equals(Object o) { && Objects.equals(this.popularity, dashboardListItem.popularity) && Objects.equals(this.title, dashboardListItem.title) && Objects.equals(this.type, dashboardListItem.type) - && Objects.equals(this.url, dashboardListItem.url); + && Objects.equals(this.url, dashboardListItem.url) + && Objects.equals(this.additionalProperties, dashboardListItem.additionalProperties); } @Override @@ -307,7 +358,8 @@ public int hashCode() { popularity, title, type, - url); + url, + additionalProperties); } @Override @@ -326,6 +378,9 @@ public String toString() { sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListItemRequest.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListItemRequest.java index a728a5cb353..25ffe265596 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListItemRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListItemRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A dashboard within a list. */ @@ -83,6 +87,52 @@ public void setType(DashboardType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListItemRequest + */ + @JsonAnySetter + public DashboardListItemRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListItemRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } DashboardListItemRequest dashboardListItemRequest = (DashboardListItemRequest) o; return Objects.equals(this.id, dashboardListItemRequest.id) - && Objects.equals(this.type, dashboardListItemRequest.type); + && Objects.equals(this.type, dashboardListItemRequest.type) + && Objects.equals(this.additionalProperties, dashboardListItemRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class DashboardListItemRequest {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListItemResponse.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListItemResponse.java index aba12434501..cff677742fc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListItemResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListItemResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A dashboard within a list. */ @@ -74,6 +78,52 @@ public void setType(DashboardType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListItemResponse + */ + @JsonAnySetter + public DashboardListItemResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListItemResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { } DashboardListItemResponse dashboardListItemResponse = (DashboardListItemResponse) o; return Objects.equals(this.id, dashboardListItemResponse.id) - && Objects.equals(this.type, dashboardListItemResponse.type); + && Objects.equals(this.type, dashboardListItemResponse.type) + && Objects.equals( + this.additionalProperties, dashboardListItemResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class DashboardListItemResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListItems.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListItems.java index 5d0879cfde3..cd0654a38fa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListItems.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Dashboards within a list. */ @@ -80,6 +84,52 @@ public Long getTotal() { return total; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListItems + */ + @JsonAnySetter + public DashboardListItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListItems object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,13 @@ public boolean equals(Object o) { } DashboardListItems dashboardListItems = (DashboardListItems) o; return Objects.equals(this.dashboards, dashboardListItems.dashboards) - && Objects.equals(this.total, dashboardListItems.total); + && Objects.equals(this.total, dashboardListItems.total) + && Objects.equals(this.additionalProperties, dashboardListItems.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboards, total); + return Objects.hash(dashboards, total, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append("class DashboardListItems {\n"); sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsRequest.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsRequest.java index c7c7fc071de..e83143caa2a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request containing the list of dashboards to update to. */ @@ -57,6 +61,52 @@ public void setDashboards(List dashboards) { this.dashboards = dashboards; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListUpdateItemsRequest + */ + @JsonAnySetter + public DashboardListUpdateItemsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListUpdateItemsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { } DashboardListUpdateItemsRequest dashboardListUpdateItemsRequest = (DashboardListUpdateItemsRequest) o; - return Objects.equals(this.dashboards, dashboardListUpdateItemsRequest.dashboards); + return Objects.equals(this.dashboards, dashboardListUpdateItemsRequest.dashboards) + && Objects.equals( + this.additionalProperties, dashboardListUpdateItemsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboards); + return Objects.hash(dashboards, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardListUpdateItemsRequest {\n"); sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsResponse.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsResponse.java index 4a59e454d86..1267b9508cb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListUpdateItemsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing a list of updated dashboards. */ @@ -57,6 +61,52 @@ public void setDashboards(List dashboards) { this.dashboards = dashboards; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DashboardListUpdateItemsResponse + */ + @JsonAnySetter + public DashboardListUpdateItemsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DashboardListUpdateItemsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { } DashboardListUpdateItemsResponse dashboardListUpdateItemsResponse = (DashboardListUpdateItemsResponse) o; - return Objects.equals(this.dashboards, dashboardListUpdateItemsResponse.dashboards); + return Objects.equals(this.dashboards, dashboardListUpdateItemsResponse.dashboards) + && Objects.equals( + this.additionalProperties, dashboardListUpdateItemsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboards); + return Objects.hash(dashboards, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardListUpdateItemsResponse {\n"); sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DataScalarColumn.java b/src/main/java/com/datadog/api/client/v2/model/DataScalarColumn.java index 8ac914285d6..476a499c792 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DataScalarColumn.java +++ b/src/main/java/com/datadog/api/client/v2/model/DataScalarColumn.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A column containing the numerical results for a formula or query. */ @@ -130,6 +134,52 @@ public void setValues(List values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DataScalarColumn + */ + @JsonAnySetter + public DataScalarColumn putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DataScalarColumn object is equal to o. */ @Override public boolean equals(Object o) { @@ -143,12 +193,13 @@ public boolean equals(Object o) { return Objects.equals(this.meta, dataScalarColumn.meta) && Objects.equals(this.name, dataScalarColumn.name) && Objects.equals(this.type, dataScalarColumn.type) - && Objects.equals(this.values, dataScalarColumn.values); + && Objects.equals(this.values, dataScalarColumn.values) + && Objects.equals(this.additionalProperties, dataScalarColumn.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta, name, type, values); + return Objects.hash(meta, name, type, values, additionalProperties); } @Override @@ -159,6 +210,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DetailedFinding.java b/src/main/java/com/datadog/api/client/v2/model/DetailedFinding.java index c7a2a30186a..e576c7c7f11 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DetailedFinding.java +++ b/src/main/java/com/datadog/api/client/v2/model/DetailedFinding.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single finding with with message and resource configuration. */ @@ -99,6 +103,52 @@ public void setType(DetailedFindingType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DetailedFinding + */ + @JsonAnySetter + public DetailedFinding putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DetailedFinding object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { DetailedFinding detailedFinding = (DetailedFinding) o; return Objects.equals(this.attributes, detailedFinding.attributes) && Objects.equals(this.id, detailedFinding.id) - && Objects.equals(this.type, detailedFinding.type); + && Objects.equals(this.type, detailedFinding.type) + && Objects.equals(this.additionalProperties, detailedFinding.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DetailedFindingAttributes.java b/src/main/java/com/datadog/api/client/v2/model/DetailedFindingAttributes.java index a8f27ffe59d..b62e9cde605 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DetailedFindingAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/DetailedFindingAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The JSON:API attributes of the detailed finding. */ @@ -314,6 +318,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DetailedFindingAttributes + */ + @JsonAnySetter + public DetailedFindingAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this DetailedFindingAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -336,7 +386,9 @@ public boolean equals(Object o) { && Objects.equals(this.resourceType, detailedFindingAttributes.resourceType) && Objects.equals(this.rule, detailedFindingAttributes.rule) && Objects.equals(this.status, detailedFindingAttributes.status) - && Objects.equals(this.tags, detailedFindingAttributes.tags); + && Objects.equals(this.tags, detailedFindingAttributes.tags) + && Objects.equals( + this.additionalProperties, detailedFindingAttributes.additionalProperties); } @Override @@ -352,7 +404,8 @@ public int hashCode() { resourceType, rule, status, - tags); + tags, + additionalProperties); } @Override @@ -376,6 +429,9 @@ public String toString() { sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Event.java b/src/main/java/com/datadog/api/client/v2/model/Event.java index 43c0912e69a..51d4b44d62c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Event.java +++ b/src/main/java/com/datadog/api/client/v2/model/Event.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request. */ @@ -119,6 +123,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Event + */ + @JsonAnySetter + public Event putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Event object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,13 @@ public boolean equals(Object o) { return Objects.equals(this.id, event.id) && Objects.equals(this.name, event.name) && Objects.equals(this.sourceId, event.sourceId) - && Objects.equals(this.type, event.type); + && Objects.equals(this.type, event.type) + && Objects.equals(this.additionalProperties, event.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name, sourceId, type); + return Objects.hash(id, name, sourceId, type, additionalProperties); } @Override @@ -148,6 +199,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java b/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java index 9f320d7d498..141e58606d0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -575,6 +579,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventAttributes + */ + @JsonAnySetter + public EventAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -603,7 +653,8 @@ public boolean equals(Object o) { && Objects.equals(this.status, eventAttributes.status) && Objects.equals(this.tags, eventAttributes.tags) && Objects.equals(this.timestamp, eventAttributes.timestamp) - && Objects.equals(this.title, eventAttributes.title); + && Objects.equals(this.title, eventAttributes.title) + && Objects.equals(this.additionalProperties, eventAttributes.additionalProperties); } @Override @@ -627,7 +678,8 @@ public int hashCode() { status, tags, timestamp, - title); + title, + additionalProperties); } @Override @@ -653,6 +705,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventResponse.java b/src/main/java/com/datadog/api/client/v2/model/EventResponse.java index 004281d613e..d03d5818c34 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object description of an event after being processed and stored by Datadog. */ @@ -99,6 +103,52 @@ public void setType(EventType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventResponse + */ + @JsonAnySetter + public EventResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { EventResponse eventResponse = (EventResponse) o; return Objects.equals(this.attributes, eventResponse.attributes) && Objects.equals(this.id, eventResponse.id) - && Objects.equals(this.type, eventResponse.type); + && Objects.equals(this.type, eventResponse.type) + && Objects.equals(this.additionalProperties, eventResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/EventResponseAttributes.java index ca22a5e53a7..3a325b79c1e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventResponseAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object description of an event response attribute. */ @@ -106,6 +110,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventResponseAttributes + */ + @JsonAnySetter + public EventResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -118,12 +168,13 @@ public boolean equals(Object o) { EventResponseAttributes eventResponseAttributes = (EventResponseAttributes) o; return Objects.equals(this.attributes, eventResponseAttributes.attributes) && Objects.equals(this.tags, eventResponseAttributes.tags) - && Objects.equals(this.timestamp, eventResponseAttributes.timestamp); + && Objects.equals(this.timestamp, eventResponseAttributes.timestamp) + && Objects.equals(this.additionalProperties, eventResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, tags, timestamp); + return Objects.hash(attributes, tags, timestamp, additionalProperties); } @Override @@ -133,6 +184,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsCompute.java b/src/main/java/com/datadog/api/client/v2/model/EventsCompute.java index 7fa55da952e..9676ab9efe4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The instructions for what to compute for this query. */ @@ -108,6 +112,52 @@ public void setMetric(String metric) { this.metric = metric; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsCompute + */ + @JsonAnySetter + public EventsCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { EventsCompute eventsCompute = (EventsCompute) o; return Objects.equals(this.aggregation, eventsCompute.aggregation) && Objects.equals(this.interval, eventsCompute.interval) - && Objects.equals(this.metric, eventsCompute.metric); + && Objects.equals(this.metric, eventsCompute.metric) + && Objects.equals(this.additionalProperties, eventsCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, interval, metric); + return Objects.hash(aggregation, interval, metric, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/EventsGroupBy.java index b15bdaa1d76..a8e8bb14f19 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A dimension on which to split a query's results. */ @@ -102,6 +106,52 @@ public void setSort(EventsGroupBySort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsGroupBy + */ + @JsonAnySetter + public EventsGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,13 @@ public boolean equals(Object o) { EventsGroupBy eventsGroupBy = (EventsGroupBy) o; return Objects.equals(this.facet, eventsGroupBy.facet) && Objects.equals(this.limit, eventsGroupBy.limit) - && Objects.equals(this.sort, eventsGroupBy.sort); + && Objects.equals(this.sort, eventsGroupBy.sort) + && Objects.equals(this.additionalProperties, eventsGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, limit, sort); + return Objects.hash(facet, limit, sort, additionalProperties); } @Override @@ -129,6 +180,9 @@ public String toString() { sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsGroupBySort.java b/src/main/java/com/datadog/api/client/v2/model/EventsGroupBySort.java index 2e07b82354d..acffecf262c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsGroupBySort.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsGroupBySort.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The dimension by which to sort a query's results. */ @@ -141,6 +145,52 @@ public void setType(EventsSortType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsGroupBySort + */ + @JsonAnySetter + public EventsGroupBySort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsGroupBySort object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +204,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, eventsGroupBySort.aggregation) && Objects.equals(this.metric, eventsGroupBySort.metric) && Objects.equals(this.order, eventsGroupBySort.order) - && Objects.equals(this.type, eventsGroupBySort.type); + && Objects.equals(this.type, eventsGroupBySort.type) + && Objects.equals(this.additionalProperties, eventsGroupBySort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, metric, order, type); + return Objects.hash(aggregation, metric, order, type, additionalProperties); } @Override @@ -170,6 +221,9 @@ public String toString() { sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsListRequest.java b/src/main/java/com/datadog/api/client/v2/model/EventsListRequest.java index 1b035878b47..1d628e934f8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsListRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsListRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object sent with the request to retrieve a list of events from your organization. */ @@ -127,6 +131,52 @@ public void setSort(EventsSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsListRequest + */ + @JsonAnySetter + public EventsListRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsListRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,13 @@ public boolean equals(Object o) { return Objects.equals(this.filter, eventsListRequest.filter) && Objects.equals(this.options, eventsListRequest.options) && Objects.equals(this.page, eventsListRequest.page) - && Objects.equals(this.sort, eventsListRequest.sort); + && Objects.equals(this.sort, eventsListRequest.sort) + && Objects.equals(this.additionalProperties, eventsListRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, options, page, sort); + return Objects.hash(filter, options, page, sort, additionalProperties); } @Override @@ -156,6 +207,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsListResponse.java b/src/main/java/com/datadog/api/client/v2/model/EventsListResponse.java index a48140f0e05..98154a31c63 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response object with all events matching the request and pagination information. */ @@ -110,6 +114,52 @@ public void setMeta(EventsResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsListResponse + */ + @JsonAnySetter + public EventsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { EventsListResponse eventsListResponse = (EventsListResponse) o; return Objects.equals(this.data, eventsListResponse.data) && Objects.equals(this.links, eventsListResponse.links) - && Objects.equals(this.meta, eventsListResponse.meta); + && Objects.equals(this.meta, eventsListResponse.meta) + && Objects.equals(this.additionalProperties, eventsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsListResponseLinks.java b/src/main/java/com/datadog/api/client/v2/model/EventsListResponseLinks.java index 94ff611fa0a..408da67e63e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsListResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsListResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Links attributes. */ @@ -43,6 +47,52 @@ public void setNext(String next) { this.next = next; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsListResponseLinks + */ + @JsonAnySetter + public EventsListResponseLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsListResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } EventsListResponseLinks eventsListResponseLinks = (EventsListResponseLinks) o; - return Objects.equals(this.next, eventsListResponseLinks.next); + return Objects.equals(this.next, eventsListResponseLinks.next) + && Objects.equals(this.additionalProperties, eventsListResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(next); + return Objects.hash(next, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventsListResponseLinks {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsQueryFilter.java b/src/main/java/com/datadog/api/client/v2/model/EventsQueryFilter.java index fc4a93efdef..7b487339e05 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsQueryFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsQueryFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The search and filter query settings. */ @@ -96,6 +100,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsQueryFilter + */ + @JsonAnySetter + public EventsQueryFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsQueryFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,13 @@ public boolean equals(Object o) { EventsQueryFilter eventsQueryFilter = (EventsQueryFilter) o; return Objects.equals(this.from, eventsQueryFilter.from) && Objects.equals(this.query, eventsQueryFilter.query) - && Objects.equals(this.to, eventsQueryFilter.to); + && Objects.equals(this.to, eventsQueryFilter.to) + && Objects.equals(this.additionalProperties, eventsQueryFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, query, to); + return Objects.hash(from, query, to, additionalProperties); } @Override @@ -123,6 +174,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsQueryOptions.java b/src/main/java/com/datadog/api/client/v2/model/EventsQueryOptions.java index e610b214ee5..18ef93cdd96 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsQueryOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsQueryOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -73,6 +77,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsQueryOptions + */ + @JsonAnySetter + public EventsQueryOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsQueryOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } EventsQueryOptions eventsQueryOptions = (EventsQueryOptions) o; return Objects.equals(this.timeOffset, eventsQueryOptions.timeOffset) - && Objects.equals(this.timezone, eventsQueryOptions.timezone); + && Objects.equals(this.timezone, eventsQueryOptions.timezone) + && Objects.equals(this.additionalProperties, eventsQueryOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timeOffset, timezone); + return Objects.hash(timeOffset, timezone, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class EventsQueryOptions {\n"); sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java b/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java index ce4bb8d84c9..13d7030a600 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination settings. */ @@ -66,6 +70,52 @@ public void setLimit(Integer limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsRequestPage + */ + @JsonAnySetter + public EventsRequestPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsRequestPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,13 @@ public boolean equals(Object o) { } EventsRequestPage eventsRequestPage = (EventsRequestPage) o; return Objects.equals(this.cursor, eventsRequestPage.cursor) - && Objects.equals(this.limit, eventsRequestPage.limit); + && Objects.equals(this.limit, eventsRequestPage.limit) + && Objects.equals(this.additionalProperties, eventsRequestPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor, limit); + return Objects.hash(cursor, limit, additionalProperties); } @Override @@ -91,6 +142,9 @@ public String toString() { sb.append("class EventsRequestPage {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadata.java b/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadata.java index 260e3996022..d0539ee60d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request. */ @@ -135,6 +139,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsResponseMetadata + */ + @JsonAnySetter + public EventsResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.elapsed, eventsResponseMetadata.elapsed) && Objects.equals(this.page, eventsResponseMetadata.page) && Objects.equals(this.requestId, eventsResponseMetadata.requestId) - && Objects.equals(this.warnings, eventsResponseMetadata.warnings); + && Objects.equals(this.warnings, eventsResponseMetadata.warnings) + && Objects.equals(this.additionalProperties, eventsResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(elapsed, page, requestId, warnings); + return Objects.hash(elapsed, page, requestId, warnings, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadataPage.java b/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadataPage.java index cc63a744ee7..f95fcab0e86 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadataPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsResponseMetadataPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination attributes. */ @@ -43,6 +47,52 @@ public void setAfter(String after) { this.after = after; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsResponseMetadataPage + */ + @JsonAnySetter + public EventsResponseMetadataPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsResponseMetadataPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } EventsResponseMetadataPage eventsResponseMetadataPage = (EventsResponseMetadataPage) o; - return Objects.equals(this.after, eventsResponseMetadataPage.after); + return Objects.equals(this.after, eventsResponseMetadataPage.after) + && Objects.equals( + this.additionalProperties, eventsResponseMetadataPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after); + return Objects.hash(after, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventsResponseMetadataPage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsScalarQuery.java b/src/main/java/com/datadog/api/client/v2/model/EventsScalarQuery.java index 5dc75c7b327..e7beae219d8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsScalarQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsScalarQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An individual scalar events query. */ @@ -209,6 +213,52 @@ public void setSearch(EventsSearch search) { this.search = search; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsScalarQuery + */ + @JsonAnySetter + public EventsScalarQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsScalarQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -224,12 +274,13 @@ public boolean equals(Object o) { && Objects.equals(this.groupBy, eventsScalarQuery.groupBy) && Objects.equals(this.indexes, eventsScalarQuery.indexes) && Objects.equals(this.name, eventsScalarQuery.name) - && Objects.equals(this.search, eventsScalarQuery.search); + && Objects.equals(this.search, eventsScalarQuery.search) + && Objects.equals(this.additionalProperties, eventsScalarQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, dataSource, groupBy, indexes, name, search); + return Objects.hash(compute, dataSource, groupBy, indexes, name, search, additionalProperties); } @Override @@ -242,6 +293,9 @@ public String toString() { sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsSearch.java b/src/main/java/com/datadog/api/client/v2/model/EventsSearch.java index 87c1d2a20f2..7a9a4eabd3d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsSearch.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsSearch.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Configuration of the search/filter for an events query. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsSearch + */ + @JsonAnySetter + public EventsSearch putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsSearch object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } EventsSearch eventsSearch = (EventsSearch) o; - return Objects.equals(this.query, eventsSearch.query); + return Objects.equals(this.query, eventsSearch.query) + && Objects.equals(this.additionalProperties, eventsSearch.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventsSearch {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsTimeseriesQuery.java b/src/main/java/com/datadog/api/client/v2/model/EventsTimeseriesQuery.java index 490ed45a563..2a36e4e87f0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsTimeseriesQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsTimeseriesQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** An individual timeseries events query. */ @@ -209,6 +213,52 @@ public void setSearch(EventsSearch search) { this.search = search; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsTimeseriesQuery + */ + @JsonAnySetter + public EventsTimeseriesQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsTimeseriesQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -224,12 +274,13 @@ public boolean equals(Object o) { && Objects.equals(this.groupBy, eventsTimeseriesQuery.groupBy) && Objects.equals(this.indexes, eventsTimeseriesQuery.indexes) && Objects.equals(this.name, eventsTimeseriesQuery.name) - && Objects.equals(this.search, eventsTimeseriesQuery.search); + && Objects.equals(this.search, eventsTimeseriesQuery.search) + && Objects.equals(this.additionalProperties, eventsTimeseriesQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, dataSource, groupBy, indexes, name, search); + return Objects.hash(compute, dataSource, groupBy, indexes, name, search, additionalProperties); } @Override @@ -242,6 +293,9 @@ public String toString() { sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsWarning.java b/src/main/java/com/datadog/api/client/v2/model/EventsWarning.java index d0992db8ad4..b3bd1faaa8d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsWarning.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsWarning.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A warning message indicating something is wrong with the query. */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return EventsWarning + */ + @JsonAnySetter + public EventsWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this EventsWarning object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { EventsWarning eventsWarning = (EventsWarning) o; return Objects.equals(this.code, eventsWarning.code) && Objects.equals(this.detail, eventsWarning.detail) - && Objects.equals(this.title, eventsWarning.title); + && Objects.equals(this.title, eventsWarning.title) + && Objects.equals(this.additionalProperties, eventsWarning.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, detail, title); + return Objects.hash(code, detail, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccounResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccounResponseAttributes.java index 59a3e3e5096..bce4390e4c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccounResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccounResponseAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes object of a Fastly account. */ @@ -91,6 +95,52 @@ public void setServices(List services) { this.services = services; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccounResponseAttributes + */ + @JsonAnySetter + public FastlyAccounResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccounResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -103,12 +153,14 @@ public boolean equals(Object o) { FastlyAccounResponseAttributes fastlyAccounResponseAttributes = (FastlyAccounResponseAttributes) o; return Objects.equals(this.name, fastlyAccounResponseAttributes.name) - && Objects.equals(this.services, fastlyAccounResponseAttributes.services); + && Objects.equals(this.services, fastlyAccounResponseAttributes.services) + && Objects.equals( + this.additionalProperties, fastlyAccounResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, services); + return Objects.hash(name, services, additionalProperties); } @Override @@ -117,6 +169,9 @@ public String toString() { sb.append("class FastlyAccounResponseAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" services: ").append(toIndentedString(services)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequest.java index d383cbe134a..c0ad1f4c7ca 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Payload schema when adding a Fastly account. */ @@ -53,6 +57,52 @@ public void setData(FastlyAccountCreateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountCreateRequest + */ + @JsonAnySetter + public FastlyAccountCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } FastlyAccountCreateRequest fastlyAccountCreateRequest = (FastlyAccountCreateRequest) o; - return Objects.equals(this.data, fastlyAccountCreateRequest.data); + return Objects.equals(this.data, fastlyAccountCreateRequest.data) + && Objects.equals( + this.additionalProperties, fastlyAccountCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyAccountCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestAttributes.java index 1bae8e5847b..9fb2a680466 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes object for creating a Fastly account. */ @@ -117,6 +121,52 @@ public void setServices(List services) { this.services = services; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountCreateRequestAttributes + */ + @JsonAnySetter + public FastlyAccountCreateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountCreateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -130,12 +180,14 @@ public boolean equals(Object o) { (FastlyAccountCreateRequestAttributes) o; return Objects.equals(this.apiKey, fastlyAccountCreateRequestAttributes.apiKey) && Objects.equals(this.name, fastlyAccountCreateRequestAttributes.name) - && Objects.equals(this.services, fastlyAccountCreateRequestAttributes.services); + && Objects.equals(this.services, fastlyAccountCreateRequestAttributes.services) + && Objects.equals( + this.additionalProperties, fastlyAccountCreateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey, name, services); + return Objects.hash(apiKey, name, services, additionalProperties); } @Override @@ -145,6 +197,9 @@ public String toString() { sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" services: ").append(toIndentedString(services)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestData.java index 9661e509d47..6816edbc8fc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountCreateRequestData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object for creating a Fastly account. */ @@ -87,6 +91,52 @@ public void setType(FastlyAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountCreateRequestData + */ + @JsonAnySetter + public FastlyAccountCreateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountCreateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { FastlyAccountCreateRequestData fastlyAccountCreateRequestData = (FastlyAccountCreateRequestData) o; return Objects.equals(this.attributes, fastlyAccountCreateRequestData.attributes) - && Objects.equals(this.type, fastlyAccountCreateRequestData.type); + && Objects.equals(this.type, fastlyAccountCreateRequestData.type) + && Objects.equals( + this.additionalProperties, fastlyAccountCreateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class FastlyAccountCreateRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponse.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponse.java index 7eff52fde61..11e2e876952 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting a Fastly account. */ @@ -43,6 +47,52 @@ public void setData(FastlyAccountResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountResponse + */ + @JsonAnySetter + public FastlyAccountResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } FastlyAccountResponse fastlyAccountResponse = (FastlyAccountResponse) o; - return Objects.equals(this.data, fastlyAccountResponse.data); + return Objects.equals(this.data, fastlyAccountResponse.data) + && Objects.equals(this.additionalProperties, fastlyAccountResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyAccountResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponseData.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponseData.java index 9db808bf37b..dbfd564ceb3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object of a Fastly account. */ @@ -112,6 +116,52 @@ public void setType(FastlyAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountResponseData + */ + @JsonAnySetter + public FastlyAccountResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { FastlyAccountResponseData fastlyAccountResponseData = (FastlyAccountResponseData) o; return Objects.equals(this.attributes, fastlyAccountResponseData.attributes) && Objects.equals(this.id, fastlyAccountResponseData.id) - && Objects.equals(this.type, fastlyAccountResponseData.type); + && Objects.equals(this.type, fastlyAccountResponseData.type) + && Objects.equals( + this.additionalProperties, fastlyAccountResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequest.java index 4aa4e0af11b..238a2d4d4fb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Payload schema when updating a Fastly account. */ @@ -53,6 +57,52 @@ public void setData(FastlyAccountUpdateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountUpdateRequest + */ + @JsonAnySetter + public FastlyAccountUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } FastlyAccountUpdateRequest fastlyAccountUpdateRequest = (FastlyAccountUpdateRequest) o; - return Objects.equals(this.data, fastlyAccountUpdateRequest.data); + return Objects.equals(this.data, fastlyAccountUpdateRequest.data) + && Objects.equals( + this.additionalProperties, fastlyAccountUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyAccountUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestAttributes.java index a20588ccc0b..4fecd7e1bbc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes object for updating a Fastly account. */ @@ -42,6 +46,52 @@ public void setApiKey(String apiKey) { this.apiKey = apiKey; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountUpdateRequestAttributes + */ + @JsonAnySetter + public FastlyAccountUpdateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountUpdateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } FastlyAccountUpdateRequestAttributes fastlyAccountUpdateRequestAttributes = (FastlyAccountUpdateRequestAttributes) o; - return Objects.equals(this.apiKey, fastlyAccountUpdateRequestAttributes.apiKey); + return Objects.equals(this.apiKey, fastlyAccountUpdateRequestAttributes.apiKey) + && Objects.equals( + this.additionalProperties, fastlyAccountUpdateRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(apiKey); + return Objects.hash(apiKey, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyAccountUpdateRequestAttributes {\n"); sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestData.java index aa889150e38..2e24d214017 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountUpdateRequestData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object for updating a Fastly account. */ @@ -75,6 +79,52 @@ public void setType(FastlyAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountUpdateRequestData + */ + @JsonAnySetter + public FastlyAccountUpdateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountUpdateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -87,12 +137,14 @@ public boolean equals(Object o) { FastlyAccountUpdateRequestData fastlyAccountUpdateRequestData = (FastlyAccountUpdateRequestData) o; return Objects.equals(this.attributes, fastlyAccountUpdateRequestData.attributes) - && Objects.equals(this.type, fastlyAccountUpdateRequestData.type); + && Objects.equals(this.type, fastlyAccountUpdateRequestData.type) + && Objects.equals( + this.additionalProperties, fastlyAccountUpdateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -101,6 +153,9 @@ public String toString() { sb.append("class FastlyAccountUpdateRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountsResponse.java b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountsResponse.java index c0b10fd810b..8007154db63 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyAccountsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyAccountsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting Fastly accounts. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyAccountsResponse + */ + @JsonAnySetter + public FastlyAccountsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyAccountsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } FastlyAccountsResponse fastlyAccountsResponse = (FastlyAccountsResponse) o; - return Objects.equals(this.data, fastlyAccountsResponse.data); + return Objects.equals(this.data, fastlyAccountsResponse.data) + && Objects.equals(this.additionalProperties, fastlyAccountsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyAccountsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyService.java b/src/main/java/com/datadog/api/client/v2/model/FastlyService.java index 882c8120034..4435351e22f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyService.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyService.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The schema representation of a Fastly service. */ @@ -83,6 +87,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyService + */ + @JsonAnySetter + public FastlyService putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyService object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } FastlyService fastlyService = (FastlyService) o; return Objects.equals(this.id, fastlyService.id) - && Objects.equals(this.tags, fastlyService.tags); + && Objects.equals(this.tags, fastlyService.tags) + && Objects.equals(this.additionalProperties, fastlyService.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, tags); + return Objects.hash(id, tags, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class FastlyService {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceAttributes.java index 2a6060eeac6..d9a8611ef32 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes object for Fastly service requests. */ @@ -52,6 +56,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyServiceAttributes + */ + @JsonAnySetter + public FastlyServiceAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyServiceAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } FastlyServiceAttributes fastlyServiceAttributes = (FastlyServiceAttributes) o; - return Objects.equals(this.tags, fastlyServiceAttributes.tags); + return Objects.equals(this.tags, fastlyServiceAttributes.tags) + && Objects.equals(this.additionalProperties, fastlyServiceAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tags); + return Objects.hash(tags, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyServiceAttributes {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceData.java b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceData.java index d827cf7e44f..31d31399b9c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceData.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object for Fastly service requests. */ @@ -109,6 +113,52 @@ public void setType(FastlyServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyServiceData + */ + @JsonAnySetter + public FastlyServiceData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyServiceData object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { FastlyServiceData fastlyServiceData = (FastlyServiceData) o; return Objects.equals(this.attributes, fastlyServiceData.attributes) && Objects.equals(this.id, fastlyServiceData.id) - && Objects.equals(this.type, fastlyServiceData.type); + && Objects.equals(this.type, fastlyServiceData.type) + && Objects.equals(this.additionalProperties, fastlyServiceData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceRequest.java b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceRequest.java index e0a26c1fec5..dccb6006745 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Payload schema for Fastly service requests. */ @@ -52,6 +56,52 @@ public void setData(FastlyServiceData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyServiceRequest + */ + @JsonAnySetter + public FastlyServiceRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyServiceRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } FastlyServiceRequest fastlyServiceRequest = (FastlyServiceRequest) o; - return Objects.equals(this.data, fastlyServiceRequest.data); + return Objects.equals(this.data, fastlyServiceRequest.data) + && Objects.equals(this.additionalProperties, fastlyServiceRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyServiceRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceResponse.java b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceResponse.java index 513a197eb5d..831e586ca03 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyServiceResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyServiceResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting a Fastly service. */ @@ -43,6 +47,52 @@ public void setData(FastlyServiceData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyServiceResponse + */ + @JsonAnySetter + public FastlyServiceResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyServiceResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } FastlyServiceResponse fastlyServiceResponse = (FastlyServiceResponse) o; - return Objects.equals(this.data, fastlyServiceResponse.data); + return Objects.equals(this.data, fastlyServiceResponse.data) + && Objects.equals(this.additionalProperties, fastlyServiceResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyServiceResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FastlyServicesResponse.java b/src/main/java/com/datadog/api/client/v2/model/FastlyServicesResponse.java index 7ed62f16e4a..25e894075df 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FastlyServicesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/FastlyServicesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting Fastly services. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FastlyServicesResponse + */ + @JsonAnySetter + public FastlyServicesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FastlyServicesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } FastlyServicesResponse fastlyServicesResponse = (FastlyServicesResponse) o; - return Objects.equals(this.data, fastlyServicesResponse.data); + return Objects.equals(this.data, fastlyServicesResponse.data) + && Objects.equals(this.additionalProperties, fastlyServicesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FastlyServicesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Finding.java b/src/main/java/com/datadog/api/client/v2/model/Finding.java index 8bd28fd76d6..ef154b1247f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Finding.java +++ b/src/main/java/com/datadog/api/client/v2/model/Finding.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single finding without the message and resource configuration. */ @@ -99,6 +103,52 @@ public void setType(FindingType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Finding + */ + @JsonAnySetter + public Finding putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Finding object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { Finding finding = (Finding) o; return Objects.equals(this.attributes, finding.attributes) && Objects.equals(this.id, finding.id) - && Objects.equals(this.type, finding.type); + && Objects.equals(this.type, finding.type) + && Objects.equals(this.additionalProperties, finding.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FindingAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FindingAttributes.java index 7057ea933bd..ca52375c611 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FindingAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FindingAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The JSON:API attributes of the finding. */ @@ -264,6 +268,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FindingAttributes + */ + @JsonAnySetter + public FindingAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FindingAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -282,7 +332,8 @@ public boolean equals(Object o) { && Objects.equals(this.resourceType, findingAttributes.resourceType) && Objects.equals(this.rule, findingAttributes.rule) && Objects.equals(this.status, findingAttributes.status) - && Objects.equals(this.tags, findingAttributes.tags); + && Objects.equals(this.tags, findingAttributes.tags) + && Objects.equals(this.additionalProperties, findingAttributes.additionalProperties); } @Override @@ -296,7 +347,8 @@ public int hashCode() { resourceType, rule, status, - tags); + tags, + additionalProperties); } @Override @@ -316,6 +368,9 @@ public String toString() { sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FormulaLimit.java b/src/main/java/com/datadog/api/client/v2/model/FormulaLimit.java index 05e25f12563..c75e12f40e6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FormulaLimit.java +++ b/src/main/java/com/datadog/api/client/v2/model/FormulaLimit.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Message for specifying limits to the number of values returned by a query. */ @@ -70,6 +74,52 @@ public void setOrder(QuerySortOrder order) { this.order = order; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FormulaLimit + */ + @JsonAnySetter + public FormulaLimit putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FormulaLimit object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } FormulaLimit formulaLimit = (FormulaLimit) o; return Objects.equals(this.count, formulaLimit.count) - && Objects.equals(this.order, formulaLimit.order); + && Objects.equals(this.order, formulaLimit.order) + && Objects.equals(this.additionalProperties, formulaLimit.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, order); + return Objects.hash(count, order, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class FormulaLimit {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FullAPIKey.java b/src/main/java/com/datadog/api/client/v2/model/FullAPIKey.java index 26e40ef6dba..a4f84208032 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FullAPIKey.java +++ b/src/main/java/com/datadog/api/client/v2/model/FullAPIKey.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Datadog API key. */ @@ -125,6 +129,52 @@ public void setType(APIKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FullAPIKey + */ + @JsonAnySetter + public FullAPIKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FullAPIKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, fullApiKey.attributes) && Objects.equals(this.id, fullApiKey.id) && Objects.equals(this.relationships, fullApiKey.relationships) - && Objects.equals(this.type, fullApiKey.type); + && Objects.equals(this.type, fullApiKey.type) + && Objects.equals(this.additionalProperties, fullApiKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -154,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FullAPIKeyAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FullAPIKeyAttributes.java index 334a843730c..d8118207c94 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FullAPIKeyAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FullAPIKeyAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of a full API key. */ @@ -108,6 +112,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FullAPIKeyAttributes + */ + @JsonAnySetter + public FullAPIKeyAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FullAPIKeyAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { && Objects.equals(this.key, fullApiKeyAttributes.key) && Objects.equals(this.last4, fullApiKeyAttributes.last4) && Objects.equals(this.modifiedAt, fullApiKeyAttributes.modifiedAt) - && Objects.equals(this.name, fullApiKeyAttributes.name); + && Objects.equals(this.name, fullApiKeyAttributes.name) + && Objects.equals(this.additionalProperties, fullApiKeyAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, key, last4, modifiedAt, name); + return Objects.hash(createdAt, key, last4, modifiedAt, name, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" last4: ").append(toIndentedString(last4)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FullApplicationKey.java b/src/main/java/com/datadog/api/client/v2/model/FullApplicationKey.java index 661785c7557..98c71b9f774 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FullApplicationKey.java +++ b/src/main/java/com/datadog/api/client/v2/model/FullApplicationKey.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Datadog application key. */ @@ -125,6 +129,52 @@ public void setType(ApplicationKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FullApplicationKey + */ + @JsonAnySetter + public FullApplicationKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FullApplicationKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, fullApplicationKey.attributes) && Objects.equals(this.id, fullApplicationKey.id) && Objects.equals(this.relationships, fullApplicationKey.relationships) - && Objects.equals(this.type, fullApplicationKey.type); + && Objects.equals(this.type, fullApplicationKey.type) + && Objects.equals(this.additionalProperties, fullApplicationKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -154,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FullApplicationKeyAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FullApplicationKeyAttributes.java index cbf8e4b7c68..9c58ee9d606 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FullApplicationKeyAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/FullApplicationKeyAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -143,6 +147,52 @@ public void setScopes(List scopes) { this.scopes = JsonNullable.>of(scopes); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FullApplicationKeyAttributes + */ + @JsonAnySetter + public FullApplicationKeyAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this FullApplicationKeyAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -157,12 +207,14 @@ public boolean equals(Object o) { && Objects.equals(this.key, fullApplicationKeyAttributes.key) && Objects.equals(this.last4, fullApplicationKeyAttributes.last4) && Objects.equals(this.name, fullApplicationKeyAttributes.name) - && Objects.equals(this.scopes, fullApplicationKeyAttributes.scopes); + && Objects.equals(this.scopes, fullApplicationKeyAttributes.scopes) + && Objects.equals( + this.additionalProperties, fullApplicationKeyAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, key, last4, name, scopes); + return Objects.hash(createdAt, key, last4, name, scopes, additionalProperties); } @Override @@ -174,6 +226,9 @@ public String toString() { sb.append(" last4: ").append(toIndentedString(last4)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccount.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccount.java index 36dbff2d403..0556fe6faea 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccount.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccount.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Datadog principal service account info. */ @@ -99,6 +103,52 @@ public void setType(GCPSTSDelegateAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSDelegateAccount + */ + @JsonAnySetter + public GCPSTSDelegateAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSDelegateAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { GCPSTSDelegateAccount gcpstsDelegateAccount = (GCPSTSDelegateAccount) o; return Objects.equals(this.attributes, gcpstsDelegateAccount.attributes) && Objects.equals(this.id, gcpstsDelegateAccount.id) - && Objects.equals(this.type, gcpstsDelegateAccount.type); + && Objects.equals(this.type, gcpstsDelegateAccount.type) + && Objects.equals(this.additionalProperties, gcpstsDelegateAccount.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountAttributes.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountAttributes.java index 17c3b4e69d9..603add1b03a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Your delegate account attributes. */ @@ -42,6 +46,52 @@ public void setDelegateAccountEmail(String delegateAccountEmail) { this.delegateAccountEmail = delegateAccountEmail; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSDelegateAccountAttributes + */ + @JsonAnySetter + public GCPSTSDelegateAccountAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSDelegateAccountAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { GCPSTSDelegateAccountAttributes gcpstsDelegateAccountAttributes = (GCPSTSDelegateAccountAttributes) o; return Objects.equals( - this.delegateAccountEmail, gcpstsDelegateAccountAttributes.delegateAccountEmail); + this.delegateAccountEmail, gcpstsDelegateAccountAttributes.delegateAccountEmail) + && Objects.equals( + this.additionalProperties, gcpstsDelegateAccountAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(delegateAccountEmail); + return Objects.hash(delegateAccountEmail, additionalProperties); } @Override @@ -69,6 +121,9 @@ public String toString() { sb.append(" delegateAccountEmail: ") .append(toIndentedString(delegateAccountEmail)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountResponse.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountResponse.java index d6f078a49c6..56ecbbcb067 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSDelegateAccountResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Your delegate service account response data. */ @@ -43,6 +47,52 @@ public void setData(GCPSTSDelegateAccount data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSDelegateAccountResponse + */ + @JsonAnySetter + public GCPSTSDelegateAccountResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSDelegateAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } GCPSTSDelegateAccountResponse gcpstsDelegateAccountResponse = (GCPSTSDelegateAccountResponse) o; - return Objects.equals(this.data, gcpstsDelegateAccountResponse.data); + return Objects.equals(this.data, gcpstsDelegateAccountResponse.data) + && Objects.equals( + this.additionalProperties, gcpstsDelegateAccountResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GCPSTSDelegateAccountResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccount.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccount.java index 70bc63b177b..27e8e6fe395 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccount.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccount.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Info on your service account. */ @@ -125,6 +129,52 @@ public void setType(GCPServiceAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccount + */ + @JsonAnySetter + public GCPSTSServiceAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, gcpstsServiceAccount.attributes) && Objects.equals(this.id, gcpstsServiceAccount.id) && Objects.equals(this.meta, gcpstsServiceAccount.meta) - && Objects.equals(this.type, gcpstsServiceAccount.type); + && Objects.equals(this.type, gcpstsServiceAccount.type) + && Objects.equals(this.additionalProperties, gcpstsServiceAccount.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, meta, type); + return Objects.hash(attributes, id, meta, type, additionalProperties); } @Override @@ -154,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountAttributes.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountAttributes.java index 9859e9f1604..4995eab863d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes associated with your service account. */ @@ -130,6 +134,52 @@ public void setIsCspmEnabled(Boolean isCspmEnabled) { this.isCspmEnabled = isCspmEnabled; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountAttributes + */ + @JsonAnySetter + public GCPSTSServiceAccountAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,14 @@ public boolean equals(Object o) { return Objects.equals(this.automute, gcpstsServiceAccountAttributes.automute) && Objects.equals(this.clientEmail, gcpstsServiceAccountAttributes.clientEmail) && Objects.equals(this.hostFilters, gcpstsServiceAccountAttributes.hostFilters) - && Objects.equals(this.isCspmEnabled, gcpstsServiceAccountAttributes.isCspmEnabled); + && Objects.equals(this.isCspmEnabled, gcpstsServiceAccountAttributes.isCspmEnabled) + && Objects.equals( + this.additionalProperties, gcpstsServiceAccountAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(automute, clientEmail, hostFilters, isCspmEnabled); + return Objects.hash(automute, clientEmail, hostFilters, isCspmEnabled, additionalProperties); } @Override @@ -160,6 +212,9 @@ public String toString() { sb.append(" clientEmail: ").append(toIndentedString(clientEmail)).append("\n"); sb.append(" hostFilters: ").append(toIndentedString(hostFilters)).append("\n"); sb.append(" isCspmEnabled: ").append(toIndentedString(isCspmEnabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountCreateRequest.java index 40d6239e40e..91114ff109e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountCreateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data on your newly generated service account. */ @@ -43,6 +47,52 @@ public void setData(GCPSTSServiceAccountData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountCreateRequest + */ + @JsonAnySetter + public GCPSTSServiceAccountCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } GCPSTSServiceAccountCreateRequest gcpstsServiceAccountCreateRequest = (GCPSTSServiceAccountCreateRequest) o; - return Objects.equals(this.data, gcpstsServiceAccountCreateRequest.data); + return Objects.equals(this.data, gcpstsServiceAccountCreateRequest.data) + && Objects.equals( + this.additionalProperties, gcpstsServiceAccountCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GCPSTSServiceAccountCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountData.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountData.java index 77f0eb8fb44..feea6ec1b33 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountData.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Additional metadata on your generated service account. */ @@ -74,6 +78,52 @@ public void setType(GCPServiceAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountData + */ + @JsonAnySetter + public GCPSTSServiceAccountData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountData object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,13 @@ public boolean equals(Object o) { } GCPSTSServiceAccountData gcpstsServiceAccountData = (GCPSTSServiceAccountData) o; return Objects.equals(this.attributes, gcpstsServiceAccountData.attributes) - && Objects.equals(this.type, gcpstsServiceAccountData.type); + && Objects.equals(this.type, gcpstsServiceAccountData.type) + && Objects.equals(this.additionalProperties, gcpstsServiceAccountData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append("class GCPSTSServiceAccountData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountResponse.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountResponse.java index e97de6e2b90..c3d97928d87 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The account creation response. */ @@ -43,6 +47,52 @@ public void setData(GCPSTSServiceAccount data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountResponse + */ + @JsonAnySetter + public GCPSTSServiceAccountResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } GCPSTSServiceAccountResponse gcpstsServiceAccountResponse = (GCPSTSServiceAccountResponse) o; - return Objects.equals(this.data, gcpstsServiceAccountResponse.data); + return Objects.equals(this.data, gcpstsServiceAccountResponse.data) + && Objects.equals( + this.additionalProperties, gcpstsServiceAccountResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GCPSTSServiceAccountResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequest.java index 319e7a40968..642a1033e53 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service account info. */ @@ -43,6 +47,52 @@ public void setData(GCPSTSServiceAccountUpdateRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountUpdateRequest + */ + @JsonAnySetter + public GCPSTSServiceAccountUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } GCPSTSServiceAccountUpdateRequest gcpstsServiceAccountUpdateRequest = (GCPSTSServiceAccountUpdateRequest) o; - return Objects.equals(this.data, gcpstsServiceAccountUpdateRequest.data); + return Objects.equals(this.data, gcpstsServiceAccountUpdateRequest.data) + && Objects.equals( + this.additionalProperties, gcpstsServiceAccountUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GCPSTSServiceAccountUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequestData.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequestData.java index 4cb7e5f1f50..22d2d2a08c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountUpdateRequestData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data on your service account. */ @@ -100,6 +104,52 @@ public void setType(GCPServiceAccountType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountUpdateRequestData + */ + @JsonAnySetter + public GCPSTSServiceAccountUpdateRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountUpdateRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,14 @@ public boolean equals(Object o) { (GCPSTSServiceAccountUpdateRequestData) o; return Objects.equals(this.attributes, gcpstsServiceAccountUpdateRequestData.attributes) && Objects.equals(this.id, gcpstsServiceAccountUpdateRequestData.id) - && Objects.equals(this.type, gcpstsServiceAccountUpdateRequestData.type); + && Objects.equals(this.type, gcpstsServiceAccountUpdateRequestData.type) + && Objects.equals( + this.additionalProperties, gcpstsServiceAccountUpdateRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountsResponse.java b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountsResponse.java index bbde962a290..1438156246a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPSTSServiceAccountsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing all your STS enabled accounts. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPSTSServiceAccountsResponse + */ + @JsonAnySetter + public GCPSTSServiceAccountsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPSTSServiceAccountsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } GCPSTSServiceAccountsResponse gcpstsServiceAccountsResponse = (GCPSTSServiceAccountsResponse) o; - return Objects.equals(this.data, gcpstsServiceAccountsResponse.data); + return Objects.equals(this.data, gcpstsServiceAccountsResponse.data) + && Objects.equals( + this.additionalProperties, gcpstsServiceAccountsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GCPSTSServiceAccountsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GCPServiceAccountMeta.java b/src/main/java/com/datadog/api/client/v2/model/GCPServiceAccountMeta.java index d014d70e649..cc481319bbc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GCPServiceAccountMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/GCPServiceAccountMeta.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Additional information related to your service account. */ @@ -52,6 +56,52 @@ public void setAccessibleProjects(List accessibleProjects) { this.accessibleProjects = accessibleProjects; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GCPServiceAccountMeta + */ + @JsonAnySetter + public GCPServiceAccountMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GCPServiceAccountMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } GCPServiceAccountMeta gcpServiceAccountMeta = (GCPServiceAccountMeta) o; - return Objects.equals(this.accessibleProjects, gcpServiceAccountMeta.accessibleProjects); + return Objects.equals(this.accessibleProjects, gcpServiceAccountMeta.accessibleProjects) + && Objects.equals(this.additionalProperties, gcpServiceAccountMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accessibleProjects); + return Objects.hash(accessibleProjects, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GCPServiceAccountMeta {\n"); sb.append(" accessibleProjects: ").append(toIndentedString(accessibleProjects)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GetFindingResponse.java b/src/main/java/com/datadog/api/client/v2/model/GetFindingResponse.java index 01181b1c271..d5fafc19177 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GetFindingResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/GetFindingResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The expected response schema when getting a finding. */ @@ -52,6 +56,52 @@ public void setData(DetailedFinding data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetFindingResponse + */ + @JsonAnySetter + public GetFindingResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GetFindingResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } GetFindingResponse getFindingResponse = (GetFindingResponse) o; - return Objects.equals(this.data, getFindingResponse.data); + return Objects.equals(this.data, getFindingResponse.data) + && Objects.equals(this.additionalProperties, getFindingResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetFindingResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/GroupScalarColumn.java b/src/main/java/com/datadog/api/client/v2/model/GroupScalarColumn.java index bbaac0e0698..19bc0d6c256 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GroupScalarColumn.java +++ b/src/main/java/com/datadog/api/client/v2/model/GroupScalarColumn.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A column containing the tag keys and values in a group. */ @@ -104,6 +108,52 @@ public void setValues(List> values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GroupScalarColumn + */ + @JsonAnySetter + public GroupScalarColumn putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this GroupScalarColumn object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,12 +166,13 @@ public boolean equals(Object o) { GroupScalarColumn groupScalarColumn = (GroupScalarColumn) o; return Objects.equals(this.name, groupScalarColumn.name) && Objects.equals(this.type, groupScalarColumn.type) - && Objects.equals(this.values, groupScalarColumn.values); + && Objects.equals(this.values, groupScalarColumn.values) + && Objects.equals(this.additionalProperties, groupScalarColumn.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, values); + return Objects.hash(name, type, values, additionalProperties); } @Override @@ -131,6 +182,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppError.java b/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppError.java index f1db3826d62..e81158506e8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppError.java +++ b/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppError.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of errors. */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HTTPCIAppError + */ + @JsonAnySetter + public HTTPCIAppError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HTTPCIAppError object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { HTTPCIAppError httpciAppError = (HTTPCIAppError) o; return Objects.equals(this.detail, httpciAppError.detail) && Objects.equals(this.status, httpciAppError.status) - && Objects.equals(this.title, httpciAppError.title); + && Objects.equals(this.title, httpciAppError.title) + && Objects.equals(this.additionalProperties, httpciAppError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(detail, status, title); + return Objects.hash(detail, status, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppErrors.java b/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppErrors.java index 3fc26d85645..71512b2e2d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppErrors.java +++ b/src/main/java/com/datadog/api/client/v2/model/HTTPCIAppErrors.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Errors occurred. */ @@ -56,6 +60,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HTTPCIAppErrors + */ + @JsonAnySetter + public HTTPCIAppErrors putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HTTPCIAppErrors object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } HTTPCIAppErrors httpciAppErrors = (HTTPCIAppErrors) o; - return Objects.equals(this.errors, httpciAppErrors.errors); + return Objects.equals(this.errors, httpciAppErrors.errors) + && Objects.equals(this.additionalProperties, httpciAppErrors.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors); + return Objects.hash(errors, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HTTPCIAppErrors {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HTTPLogError.java b/src/main/java/com/datadog/api/client/v2/model/HTTPLogError.java index e59e39f5591..375632c6800 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HTTPLogError.java +++ b/src/main/java/com/datadog/api/client/v2/model/HTTPLogError.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** List of errors. */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HTTPLogError + */ + @JsonAnySetter + public HTTPLogError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HTTPLogError object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { HTTPLogError httpLogError = (HTTPLogError) o; return Objects.equals(this.detail, httpLogError.detail) && Objects.equals(this.status, httpLogError.status) - && Objects.equals(this.title, httpLogError.title); + && Objects.equals(this.title, httpLogError.title) + && Objects.equals(this.additionalProperties, httpLogError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(detail, status, title); + return Objects.hash(detail, status, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HTTPLogErrors.java b/src/main/java/com/datadog/api/client/v2/model/HTTPLogErrors.java index 9e8b653f05f..a262aecfd8b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HTTPLogErrors.java +++ b/src/main/java/com/datadog/api/client/v2/model/HTTPLogErrors.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Invalid query performed. */ @@ -56,6 +60,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HTTPLogErrors + */ + @JsonAnySetter + public HTTPLogErrors putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HTTPLogErrors object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } HTTPLogErrors httpLogErrors = (HTTPLogErrors) o; - return Objects.equals(this.errors, httpLogErrors.errors); + return Objects.equals(this.errors, httpLogErrors.errors) + && Objects.equals(this.additionalProperties, httpLogErrors.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors); + return Objects.hash(errors, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HTTPLogErrors {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HourlyUsage.java b/src/main/java/com/datadog/api/client/v2/model/HourlyUsage.java index 47767ad36aa..03f6983ec8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HourlyUsage.java +++ b/src/main/java/com/datadog/api/client/v2/model/HourlyUsage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Hourly usage for a product family for an org. */ @@ -99,6 +103,52 @@ public void setType(UsageTimeSeriesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsage + */ + @JsonAnySetter + public HourlyUsage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsage object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { HourlyUsage hourlyUsage = (HourlyUsage) o; return Objects.equals(this.attributes, hourlyUsage.attributes) && Objects.equals(this.id, hourlyUsage.id) - && Objects.equals(this.type, hourlyUsage.type); + && Objects.equals(this.type, hourlyUsage.type) + && Objects.equals(this.additionalProperties, hourlyUsage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageAttributes.java b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageAttributes.java index fdb5f2b7f88..5eaf9aa8a71 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes of hourly usage for a product family for an org for a time period. */ @@ -184,6 +188,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageAttributes + */ + @JsonAnySetter + public HourlyUsageAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -199,12 +249,14 @@ public boolean equals(Object o) { && Objects.equals(this.productFamily, hourlyUsageAttributes.productFamily) && Objects.equals(this.publicId, hourlyUsageAttributes.publicId) && Objects.equals(this.region, hourlyUsageAttributes.region) - && Objects.equals(this.timestamp, hourlyUsageAttributes.timestamp); + && Objects.equals(this.timestamp, hourlyUsageAttributes.timestamp) + && Objects.equals(this.additionalProperties, hourlyUsageAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(measurements, orgName, productFamily, publicId, region, timestamp); + return Objects.hash( + measurements, orgName, productFamily, publicId, region, timestamp, additionalProperties); } @Override @@ -217,6 +269,9 @@ public String toString() { sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMeasurement.java b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMeasurement.java index 90bb505a24b..f48711b32d7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMeasurement.java +++ b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMeasurement.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -80,6 +84,52 @@ public void setValue(Long value) { this.value = JsonNullable.of(value); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageMeasurement + */ + @JsonAnySetter + public HourlyUsageMeasurement putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageMeasurement object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,13 @@ public boolean equals(Object o) { } HourlyUsageMeasurement hourlyUsageMeasurement = (HourlyUsageMeasurement) o; return Objects.equals(this.usageType, hourlyUsageMeasurement.usageType) - && Objects.equals(this.value, hourlyUsageMeasurement.value); + && Objects.equals(this.value, hourlyUsageMeasurement.value) + && Objects.equals(this.additionalProperties, hourlyUsageMeasurement.additionalProperties); } @Override public int hashCode() { - return Objects.hash(usageType, value); + return Objects.hash(usageType, value, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append("class HourlyUsageMeasurement {\n"); sb.append(" usageType: ").append(toIndentedString(usageType)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMetadata.java b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMetadata.java index f77c3979c4b..b025c8a89be 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The object containing document metadata. */ @@ -43,6 +47,52 @@ public void setPagination(HourlyUsagePagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageMetadata + */ + @JsonAnySetter + public HourlyUsageMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } HourlyUsageMetadata hourlyUsageMetadata = (HourlyUsageMetadata) o; - return Objects.equals(this.pagination, hourlyUsageMetadata.pagination); + return Objects.equals(this.pagination, hourlyUsageMetadata.pagination) + && Objects.equals(this.additionalProperties, hourlyUsageMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pagination); + return Objects.hash(pagination, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HourlyUsageMetadata {\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HourlyUsagePagination.java b/src/main/java/com/datadog/api/client/v2/model/HourlyUsagePagination.java index 0eb6b123005..2ba5007f19d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HourlyUsagePagination.java +++ b/src/main/java/com/datadog/api/client/v2/model/HourlyUsagePagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -54,6 +58,52 @@ public void setNextRecordId(String nextRecordId) { this.nextRecordId = JsonNullable.of(nextRecordId); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsagePagination + */ + @JsonAnySetter + public HourlyUsagePagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsagePagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,13 @@ public boolean equals(Object o) { return false; } HourlyUsagePagination hourlyUsagePagination = (HourlyUsagePagination) o; - return Objects.equals(this.nextRecordId, hourlyUsagePagination.nextRecordId); + return Objects.equals(this.nextRecordId, hourlyUsagePagination.nextRecordId) + && Objects.equals(this.additionalProperties, hourlyUsagePagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(nextRecordId); + return Objects.hash(nextRecordId, additionalProperties); } @Override @@ -77,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HourlyUsagePagination {\n"); sb.append(" nextRecordId: ").append(toIndentedString(nextRecordId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageResponse.java b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageResponse.java index 66c4f3e8e39..27828f747a0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HourlyUsageResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/HourlyUsageResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Hourly usage response. */ @@ -81,6 +85,52 @@ public void setMeta(HourlyUsageMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return HourlyUsageResponse + */ + @JsonAnySetter + public HourlyUsageResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this HourlyUsageResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,13 @@ public boolean equals(Object o) { } HourlyUsageResponse hourlyUsageResponse = (HourlyUsageResponse) o; return Objects.equals(this.data, hourlyUsageResponse.data) - && Objects.equals(this.meta, hourlyUsageResponse.meta); + && Objects.equals(this.meta, hourlyUsageResponse.meta) + && Objects.equals(this.additionalProperties, hourlyUsageResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -106,6 +157,9 @@ public String toString() { sb.append("class HourlyUsageResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistAttributes.java index 9bf88a213b1..e2478e0c612 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes of the IP allowlist. */ @@ -83,6 +87,52 @@ public void setEntries(List entries) { this.entries = entries; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistAttributes + */ + @JsonAnySetter + public IPAllowlistAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } IPAllowlistAttributes ipAllowlistAttributes = (IPAllowlistAttributes) o; return Objects.equals(this.enabled, ipAllowlistAttributes.enabled) - && Objects.equals(this.entries, ipAllowlistAttributes.entries); + && Objects.equals(this.entries, ipAllowlistAttributes.entries) + && Objects.equals(this.additionalProperties, ipAllowlistAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(enabled, entries); + return Objects.hash(enabled, entries, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class IPAllowlistAttributes {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistData.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistData.java index cab83d90e01..1821d9a8f0e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** IP allowlist data. */ @@ -108,6 +112,52 @@ public void setType(IPAllowlistType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistData + */ + @JsonAnySetter + public IPAllowlistData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistData object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { IPAllowlistData ipAllowlistData = (IPAllowlistData) o; return Objects.equals(this.attributes, ipAllowlistData.attributes) && Objects.equals(this.id, ipAllowlistData.id) - && Objects.equals(this.type, ipAllowlistData.type); + && Objects.equals(this.type, ipAllowlistData.type) + && Objects.equals(this.additionalProperties, ipAllowlistData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntry.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntry.java index 7e5c8028ef2..7760625b96a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntry.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntry.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** IP allowlist entry object. */ @@ -52,6 +56,52 @@ public void setData(IPAllowlistEntryData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistEntry + */ + @JsonAnySetter + public IPAllowlistEntry putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistEntry object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } IPAllowlistEntry ipAllowlistEntry = (IPAllowlistEntry) o; - return Objects.equals(this.data, ipAllowlistEntry.data); + return Objects.equals(this.data, ipAllowlistEntry.data) + && Objects.equals(this.additionalProperties, ipAllowlistEntry.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IPAllowlistEntry {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryAttributes.java index d4cf210f019..322f55530b8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the IP allowlist entry. */ @@ -102,6 +106,52 @@ public void setNote(String note) { this.note = note; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistEntryAttributes + */ + @JsonAnySetter + public IPAllowlistEntryAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistEntryAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,14 @@ public boolean equals(Object o) { return Objects.equals(this.cidrBlock, ipAllowlistEntryAttributes.cidrBlock) && Objects.equals(this.createdAt, ipAllowlistEntryAttributes.createdAt) && Objects.equals(this.modifiedAt, ipAllowlistEntryAttributes.modifiedAt) - && Objects.equals(this.note, ipAllowlistEntryAttributes.note); + && Objects.equals(this.note, ipAllowlistEntryAttributes.note) + && Objects.equals( + this.additionalProperties, ipAllowlistEntryAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cidrBlock, createdAt, modifiedAt, note); + return Objects.hash(cidrBlock, createdAt, modifiedAt, note, additionalProperties); } @Override @@ -131,6 +183,9 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryData.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryData.java index f739099bdc5..857497607ed 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistEntryData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data of the IP allowlist entry object. */ @@ -108,6 +112,52 @@ public void setType(IPAllowlistEntryType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistEntryData + */ + @JsonAnySetter + public IPAllowlistEntryData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistEntryData object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { IPAllowlistEntryData ipAllowlistEntryData = (IPAllowlistEntryData) o; return Objects.equals(this.attributes, ipAllowlistEntryData.attributes) && Objects.equals(this.id, ipAllowlistEntryData.id) - && Objects.equals(this.type, ipAllowlistEntryData.type); + && Objects.equals(this.type, ipAllowlistEntryData.type) + && Objects.equals(this.additionalProperties, ipAllowlistEntryData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistResponse.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistResponse.java index 3b72a245a87..b203ef5bb4b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing information about the IP allowlist. */ @@ -43,6 +47,52 @@ public void setData(IPAllowlistData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistResponse + */ + @JsonAnySetter + public IPAllowlistResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } IPAllowlistResponse ipAllowlistResponse = (IPAllowlistResponse) o; - return Objects.equals(this.data, ipAllowlistResponse.data); + return Objects.equals(this.data, ipAllowlistResponse.data) + && Objects.equals(this.additionalProperties, ipAllowlistResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IPAllowlistResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistUpdateRequest.java index 283860a2b36..cca438adf2d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IPAllowlistUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IPAllowlistUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update the IP allowlist. */ @@ -52,6 +56,52 @@ public void setData(IPAllowlistData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPAllowlistUpdateRequest + */ + @JsonAnySetter + public IPAllowlistUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IPAllowlistUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } IPAllowlistUpdateRequest ipAllowlistUpdateRequest = (IPAllowlistUpdateRequest) o; - return Objects.equals(this.data, ipAllowlistUpdateRequest.data); + return Objects.equals(this.data, ipAllowlistUpdateRequest.data) + && Objects.equals(this.additionalProperties, ipAllowlistUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IPAllowlistUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IdPMetadataFormData.java b/src/main/java/com/datadog/api/client/v2/model/IdPMetadataFormData.java index d8559ff08fa..7013ed4a8c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IdPMetadataFormData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IdPMetadataFormData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.io.File; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The form data submitted to upload IdP metadata */ @@ -43,6 +47,52 @@ public void setIdpFile(File idpFile) { this.idpFile = idpFile; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IdPMetadataFormData + */ + @JsonAnySetter + public IdPMetadataFormData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IdPMetadataFormData object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } IdPMetadataFormData idPMetadataFormData = (IdPMetadataFormData) o; - return Objects.equals(this.idpFile, idPMetadataFormData.idpFile); + return Objects.equals(this.idpFile, idPMetadataFormData.idpFile) + && Objects.equals(this.additionalProperties, idPMetadataFormData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(idpFile); + return Objects.hash(idpFile, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IdPMetadataFormData {\n"); sb.append(" idpFile: ").append(toIndentedString(idpFile)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentData.java index 72c6cb0acf2..4050d8cbf8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single incident attachment. */ @@ -141,6 +145,52 @@ public void setType(IncidentAttachmentType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentData + */ + @JsonAnySetter + public IncidentAttachmentData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentData object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +204,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentAttachmentData.attributes) && Objects.equals(this.id, incidentAttachmentData.id) && Objects.equals(this.relationships, incidentAttachmentData.relationships) - && Objects.equals(this.type, incidentAttachmentData.type); + && Objects.equals(this.type, incidentAttachmentData.type) + && Objects.equals(this.additionalProperties, incidentAttachmentData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -170,6 +221,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributes.java index 151297859a2..bc17a731435 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The attributes object for a link attachment. */ @@ -90,6 +94,52 @@ public void setAttachmentType(IncidentAttachmentLinkAttachmentType attachmentTyp this.attachmentType = attachmentType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentLinkAttributes + */ + @JsonAnySetter + public IncidentAttachmentLinkAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentLinkAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -102,12 +152,14 @@ public boolean equals(Object o) { IncidentAttachmentLinkAttributes incidentAttachmentLinkAttributes = (IncidentAttachmentLinkAttributes) o; return Objects.equals(this.attachment, incidentAttachmentLinkAttributes.attachment) - && Objects.equals(this.attachmentType, incidentAttachmentLinkAttributes.attachmentType); + && Objects.equals(this.attachmentType, incidentAttachmentLinkAttributes.attachmentType) + && Objects.equals( + this.additionalProperties, incidentAttachmentLinkAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attachment, attachmentType); + return Objects.hash(attachment, attachmentType, additionalProperties); } @Override @@ -116,6 +168,9 @@ public String toString() { sb.append("class IncidentAttachmentLinkAttributes {\n"); sb.append(" attachment: ").append(toIndentedString(attachment)).append("\n"); sb.append(" attachmentType: ").append(toIndentedString(attachmentType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributesAttachmentObject.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributesAttachmentObject.java index 1495320b32e..839a49f86d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributesAttachmentObject.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentLinkAttributesAttachmentObject.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The link attachment. */ @@ -78,6 +82,53 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentLinkAttributesAttachmentObject + */ + @JsonAnySetter + public IncidentAttachmentLinkAttributesAttachmentObject putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentLinkAttributesAttachmentObject object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +143,15 @@ public boolean equals(Object o) { (IncidentAttachmentLinkAttributesAttachmentObject) o; return Objects.equals( this.documentUrl, incidentAttachmentLinkAttributesAttachmentObject.documentUrl) - && Objects.equals(this.title, incidentAttachmentLinkAttributesAttachmentObject.title); + && Objects.equals(this.title, incidentAttachmentLinkAttributesAttachmentObject.title) + && Objects.equals( + this.additionalProperties, + incidentAttachmentLinkAttributesAttachmentObject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(documentUrl, title); + return Objects.hash(documentUrl, title, additionalProperties); } @Override @@ -106,6 +160,9 @@ public String toString() { sb.append("class IncidentAttachmentLinkAttributesAttachmentObject {\n"); sb.append(" documentUrl: ").append(toIndentedString(documentUrl)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentPostmortemAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentPostmortemAttributes.java index 55c412ea4bd..8cb53ac687c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentPostmortemAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentPostmortemAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The attributes object for a postmortem attachment. */ @@ -90,6 +94,52 @@ public void setAttachmentType(IncidentAttachmentPostmortemAttachmentType attachm this.attachmentType = attachmentType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentPostmortemAttributes + */ + @JsonAnySetter + public IncidentAttachmentPostmortemAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentPostmortemAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -103,12 +153,14 @@ public boolean equals(Object o) { (IncidentAttachmentPostmortemAttributes) o; return Objects.equals(this.attachment, incidentAttachmentPostmortemAttributes.attachment) && Objects.equals( - this.attachmentType, incidentAttachmentPostmortemAttributes.attachmentType); + this.attachmentType, incidentAttachmentPostmortemAttributes.attachmentType) + && Objects.equals( + this.additionalProperties, incidentAttachmentPostmortemAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attachment, attachmentType); + return Objects.hash(attachment, attachmentType, additionalProperties); } @Override @@ -117,6 +169,9 @@ public String toString() { sb.append("class IncidentAttachmentPostmortemAttributes {\n"); sb.append(" attachment: ").append(toIndentedString(attachment)).append("\n"); sb.append(" attachmentType: ").append(toIndentedString(attachmentType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentRelationships.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentRelationships.java index 5546eff3930..c52add0918a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident attachment's relationships. */ @@ -43,6 +47,52 @@ public void setLastModifiedByUser(RelationshipToUser lastModifiedByUser) { this.lastModifiedByUser = lastModifiedByUser; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentRelationships + */ + @JsonAnySetter + public IncidentAttachmentRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,14 @@ public boolean equals(Object o) { IncidentAttachmentRelationships incidentAttachmentRelationships = (IncidentAttachmentRelationships) o; return Objects.equals( - this.lastModifiedByUser, incidentAttachmentRelationships.lastModifiedByUser); + this.lastModifiedByUser, incidentAttachmentRelationships.lastModifiedByUser) + && Objects.equals( + this.additionalProperties, incidentAttachmentRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(lastModifiedByUser); + return Objects.hash(lastModifiedByUser, additionalProperties); } @Override @@ -68,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentAttachmentRelationships {\n"); sb.append(" lastModifiedByUser: ").append(toIndentedString(lastModifiedByUser)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateData.java index d21acbd396a..cdb9248ce24 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single incident attachment. */ @@ -108,6 +112,52 @@ public void setType(IncidentAttachmentType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentUpdateData + */ + @JsonAnySetter + public IncidentAttachmentUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,14 @@ public boolean equals(Object o) { IncidentAttachmentUpdateData incidentAttachmentUpdateData = (IncidentAttachmentUpdateData) o; return Objects.equals(this.attributes, incidentAttachmentUpdateData.attributes) && Objects.equals(this.id, incidentAttachmentUpdateData.id) - && Objects.equals(this.type, incidentAttachmentUpdateData.type); + && Objects.equals(this.type, incidentAttachmentUpdateData.type) + && Objects.equals( + this.additionalProperties, incidentAttachmentUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -135,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateRequest.java index d6167ed0182..e0b03db16e3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The update request for an incident's attachments. */ @@ -65,6 +69,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentUpdateRequest + */ + @JsonAnySetter + public IncidentAttachmentUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -76,12 +126,14 @@ public boolean equals(Object o) { } IncidentAttachmentUpdateRequest incidentAttachmentUpdateRequest = (IncidentAttachmentUpdateRequest) o; - return Objects.equals(this.data, incidentAttachmentUpdateRequest.data); + return Objects.equals(this.data, incidentAttachmentUpdateRequest.data) + && Objects.equals( + this.additionalProperties, incidentAttachmentUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -89,6 +141,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentAttachmentUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateResponse.java index 035a524b4b0..8155d76a3d0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentUpdateResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response object containing the created or updated incident attachments. */ @@ -104,6 +108,52 @@ public void setIncluded(List included) this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentUpdateResponse + */ + @JsonAnySetter + public IncidentAttachmentUpdateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,12 +166,14 @@ public boolean equals(Object o) { IncidentAttachmentUpdateResponse incidentAttachmentUpdateResponse = (IncidentAttachmentUpdateResponse) o; return Objects.equals(this.data, incidentAttachmentUpdateResponse.data) - && Objects.equals(this.included, incidentAttachmentUpdateResponse.included); + && Objects.equals(this.included, incidentAttachmentUpdateResponse.included) + && Objects.equals( + this.additionalProperties, incidentAttachmentUpdateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -130,6 +182,9 @@ public String toString() { sb.append("class IncidentAttachmentUpdateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsPostmortemAttributesAttachmentObject.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsPostmortemAttributesAttachmentObject.java index 4ab6fae1d58..5fde6f50554 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsPostmortemAttributesAttachmentObject.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsPostmortemAttributesAttachmentObject.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The postmortem attachment. */ @@ -78,6 +82,53 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentsPostmortemAttributesAttachmentObject + */ + @JsonAnySetter + public IncidentAttachmentsPostmortemAttributesAttachmentObject putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** * Return true if this IncidentAttachmentsPostmortemAttributesAttachmentObject object is equal to * o. @@ -95,13 +146,15 @@ public boolean equals(Object o) { (IncidentAttachmentsPostmortemAttributesAttachmentObject) o; return Objects.equals( this.documentUrl, incidentAttachmentsPostmortemAttributesAttachmentObject.documentUrl) + && Objects.equals(this.title, incidentAttachmentsPostmortemAttributesAttachmentObject.title) && Objects.equals( - this.title, incidentAttachmentsPostmortemAttributesAttachmentObject.title); + this.additionalProperties, + incidentAttachmentsPostmortemAttributesAttachmentObject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(documentUrl, title); + return Objects.hash(documentUrl, title, additionalProperties); } @Override @@ -110,6 +163,9 @@ public String toString() { sb.append("class IncidentAttachmentsPostmortemAttributesAttachmentObject {\n"); sb.append(" documentUrl: ").append(toIndentedString(documentUrl)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsResponse.java index 275b06cd454..9e59433b7a8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentAttachmentsResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The response object containing an incident's attachments. */ @@ -103,6 +107,52 @@ public void setIncluded(List included) this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentAttachmentsResponse + */ + @JsonAnySetter + public IncidentAttachmentsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentAttachmentsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,14 @@ public boolean equals(Object o) { } IncidentAttachmentsResponse incidentAttachmentsResponse = (IncidentAttachmentsResponse) o; return Objects.equals(this.data, incidentAttachmentsResponse.data) - && Objects.equals(this.included, incidentAttachmentsResponse.included); + && Objects.equals(this.included, incidentAttachmentsResponse.included) + && Objects.equals( + this.additionalProperties, incidentAttachmentsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append("class IncidentAttachmentsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateAttributes.java index e84ade33461..703ff4d8704 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -220,6 +222,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentCreateAttributes + */ + @JsonAnySetter + public IncidentCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -235,13 +283,20 @@ public boolean equals(Object o) { && Objects.equals(this.fields, incidentCreateAttributes.fields) && Objects.equals(this.initialCells, incidentCreateAttributes.initialCells) && Objects.equals(this.notificationHandles, incidentCreateAttributes.notificationHandles) - && Objects.equals(this.title, incidentCreateAttributes.title); + && Objects.equals(this.title, incidentCreateAttributes.title) + && Objects.equals(this.additionalProperties, incidentCreateAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - customerImpactScope, customerImpacted, fields, initialCells, notificationHandles, title); + customerImpactScope, + customerImpacted, + fields, + initialCells, + notificationHandles, + title, + additionalProperties); } @Override @@ -258,6 +313,9 @@ public String toString() { .append(toIndentedString(notificationHandles)) .append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateData.java index b8ae3db15d5..79ce72a2fbe 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident data for a create request. */ @@ -112,6 +116,52 @@ public void setType(IncidentType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentCreateData + */ + @JsonAnySetter + public IncidentCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { IncidentCreateData incidentCreateData = (IncidentCreateData) o; return Objects.equals(this.attributes, incidentCreateData.attributes) && Objects.equals(this.relationships, incidentCreateData.relationships) - && Objects.equals(this.type, incidentCreateData.type); + && Objects.equals(this.type, incidentCreateData.type) + && Objects.equals(this.additionalProperties, incidentCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRelationships.java b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRelationships.java index e4a766a6802..576a7a1555b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRelationships.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The relationships the incident will have with other resources once created. */ @@ -53,6 +57,52 @@ public void setCommanderUser(NullableRelationshipToUser commanderUser) { this.commanderUser = commanderUser; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentCreateRelationships + */ + @JsonAnySetter + public IncidentCreateRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentCreateRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } IncidentCreateRelationships incidentCreateRelationships = (IncidentCreateRelationships) o; - return Objects.equals(this.commanderUser, incidentCreateRelationships.commanderUser); + return Objects.equals(this.commanderUser, incidentCreateRelationships.commanderUser) + && Objects.equals( + this.additionalProperties, incidentCreateRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(commanderUser); + return Objects.hash(commanderUser, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentCreateRelationships {\n"); sb.append(" commanderUser: ").append(toIndentedString(commanderUser)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRequest.java index d2d502623a5..738b992459b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create request for an incident. */ @@ -52,6 +56,52 @@ public void setData(IncidentCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentCreateRequest + */ + @JsonAnySetter + public IncidentCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } IncidentCreateRequest incidentCreateRequest = (IncidentCreateRequest) o; - return Objects.equals(this.data, incidentCreateRequest.data); + return Objects.equals(this.data, incidentCreateRequest.data) + && Objects.equals(this.additionalProperties, incidentCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesMultipleValue.java b/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesMultipleValue.java index b658afec3de..6076e9c9d9c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesMultipleValue.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesMultipleValue.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -98,6 +102,52 @@ public void setValue(List value) { this.value = JsonNullable.>of(value); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentFieldAttributesMultipleValue + */ + @JsonAnySetter + public IncidentFieldAttributesMultipleValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentFieldAttributesMultipleValue object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,12 +160,14 @@ public boolean equals(Object o) { IncidentFieldAttributesMultipleValue incidentFieldAttributesMultipleValue = (IncidentFieldAttributesMultipleValue) o; return Objects.equals(this.type, incidentFieldAttributesMultipleValue.type) - && Objects.equals(this.value, incidentFieldAttributesMultipleValue.value); + && Objects.equals(this.value, incidentFieldAttributesMultipleValue.value) + && Objects.equals( + this.additionalProperties, incidentFieldAttributesMultipleValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, value); + return Objects.hash(type, value, additionalProperties); } @Override @@ -124,6 +176,9 @@ public String toString() { sb.append("class IncidentFieldAttributesMultipleValue {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesSingleValue.java b/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesSingleValue.java index 1c48cafecae..f56ee44ff58 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesSingleValue.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentFieldAttributesSingleValue.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -85,6 +89,52 @@ public void setValue(String value) { this.value = JsonNullable.of(value); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentFieldAttributesSingleValue + */ + @JsonAnySetter + public IncidentFieldAttributesSingleValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentFieldAttributesSingleValue object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,14 @@ public boolean equals(Object o) { IncidentFieldAttributesSingleValue incidentFieldAttributesSingleValue = (IncidentFieldAttributesSingleValue) o; return Objects.equals(this.type, incidentFieldAttributesSingleValue.type) - && Objects.equals(this.value, incidentFieldAttributesSingleValue.value); + && Objects.equals(this.value, incidentFieldAttributesSingleValue.value) + && Objects.equals( + this.additionalProperties, incidentFieldAttributesSingleValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, value); + return Objects.hash(type, value, additionalProperties); } @Override @@ -111,6 +163,9 @@ public String toString() { sb.append("class IncidentFieldAttributesSingleValue {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataAttributes.java index eeae62f4434..e54f34ee909 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident integration metadata's attributes for a create request. */ @@ -136,6 +140,52 @@ public void setStatus(Integer status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataAttributes + */ + @JsonAnySetter + public IncidentIntegrationMetadataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,14 @@ public boolean equals(Object o) { && Objects.equals( this.integrationType, incidentIntegrationMetadataAttributes.integrationType) && Objects.equals(this.metadata, incidentIntegrationMetadataAttributes.metadata) - && Objects.equals(this.status, incidentIntegrationMetadataAttributes.status); + && Objects.equals(this.status, incidentIntegrationMetadataAttributes.status) + && Objects.equals( + this.additionalProperties, incidentIntegrationMetadataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(incidentId, integrationType, metadata, status); + return Objects.hash(incidentId, integrationType, metadata, status, additionalProperties); } @Override @@ -167,6 +219,9 @@ public String toString() { sb.append(" integrationType: ").append(toIndentedString(integrationType)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateData.java index 279fe0442d9..e140b8e19a4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident integration metadata data for a create request. */ @@ -89,6 +93,52 @@ public void setType(IncidentIntegrationMetadataType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataCreateData + */ + @JsonAnySetter + public IncidentIntegrationMetadataCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -101,12 +151,14 @@ public boolean equals(Object o) { IncidentIntegrationMetadataCreateData incidentIntegrationMetadataCreateData = (IncidentIntegrationMetadataCreateData) o; return Objects.equals(this.attributes, incidentIntegrationMetadataCreateData.attributes) - && Objects.equals(this.type, incidentIntegrationMetadataCreateData.type); + && Objects.equals(this.type, incidentIntegrationMetadataCreateData.type) + && Objects.equals( + this.additionalProperties, incidentIntegrationMetadataCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -115,6 +167,9 @@ public String toString() { sb.append("class IncidentIntegrationMetadataCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateRequest.java index e669b9e0a5b..b2308ca7200 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create request for an incident integration metadata. */ @@ -53,6 +57,52 @@ public void setData(IncidentIntegrationMetadataCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataCreateRequest + */ + @JsonAnySetter + public IncidentIntegrationMetadataCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,15 @@ public boolean equals(Object o) { } IncidentIntegrationMetadataCreateRequest incidentIntegrationMetadataCreateRequest = (IncidentIntegrationMetadataCreateRequest) o; - return Objects.equals(this.data, incidentIntegrationMetadataCreateRequest.data); + return Objects.equals(this.data, incidentIntegrationMetadataCreateRequest.data) + && Objects.equals( + this.additionalProperties, + incidentIntegrationMetadataCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentIntegrationMetadataCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataListResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataListResponse.java index c44e7f5df43..cd83d7227cd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataListResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with a list of incident integration metadata. */ @@ -98,6 +102,52 @@ public IncidentResponseMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataListResponse + */ + @JsonAnySetter + public IncidentIntegrationMetadataListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,15 @@ public boolean equals(Object o) { (IncidentIntegrationMetadataListResponse) o; return Objects.equals(this.data, incidentIntegrationMetadataListResponse.data) && Objects.equals(this.included, incidentIntegrationMetadataListResponse.included) - && Objects.equals(this.meta, incidentIntegrationMetadataListResponse.meta); + && Objects.equals(this.meta, incidentIntegrationMetadataListResponse.meta) + && Objects.equals( + this.additionalProperties, + incidentIntegrationMetadataListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -126,6 +179,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchData.java index 421b0749d9e..73649da6c16 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident integration metadata data for a patch request. */ @@ -89,6 +93,52 @@ public void setType(IncidentIntegrationMetadataType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataPatchData + */ + @JsonAnySetter + public IncidentIntegrationMetadataPatchData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataPatchData object is equal to o. */ @Override public boolean equals(Object o) { @@ -101,12 +151,14 @@ public boolean equals(Object o) { IncidentIntegrationMetadataPatchData incidentIntegrationMetadataPatchData = (IncidentIntegrationMetadataPatchData) o; return Objects.equals(this.attributes, incidentIntegrationMetadataPatchData.attributes) - && Objects.equals(this.type, incidentIntegrationMetadataPatchData.type); + && Objects.equals(this.type, incidentIntegrationMetadataPatchData.type) + && Objects.equals( + this.additionalProperties, incidentIntegrationMetadataPatchData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -115,6 +167,9 @@ public String toString() { sb.append("class IncidentIntegrationMetadataPatchData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchRequest.java index 80e636f30b2..5b9ae6cb130 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataPatchRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Patch request for an incident integration metadata. */ @@ -53,6 +57,52 @@ public void setData(IncidentIntegrationMetadataPatchData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataPatchRequest + */ + @JsonAnySetter + public IncidentIntegrationMetadataPatchRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataPatchRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,15 @@ public boolean equals(Object o) { } IncidentIntegrationMetadataPatchRequest incidentIntegrationMetadataPatchRequest = (IncidentIntegrationMetadataPatchRequest) o; - return Objects.equals(this.data, incidentIntegrationMetadataPatchRequest.data); + return Objects.equals(this.data, incidentIntegrationMetadataPatchRequest.data) + && Objects.equals( + this.additionalProperties, + incidentIntegrationMetadataPatchRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentIntegrationMetadataPatchRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponse.java index 15db2ff234e..f3d01a1ec7d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with an incident integration metadata. */ @@ -72,6 +76,52 @@ public List getIncluded() { return included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataResponse + */ + @JsonAnySetter + public IncidentIntegrationMetadataResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,14 @@ public boolean equals(Object o) { IncidentIntegrationMetadataResponse incidentIntegrationMetadataResponse = (IncidentIntegrationMetadataResponse) o; return Objects.equals(this.data, incidentIntegrationMetadataResponse.data) - && Objects.equals(this.included, incidentIntegrationMetadataResponse.included); + && Objects.equals(this.included, incidentIntegrationMetadataResponse.included) + && Objects.equals( + this.additionalProperties, incidentIntegrationMetadataResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -98,6 +150,9 @@ public String toString() { sb.append("class IncidentIntegrationMetadataResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponseData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponseData.java index 495ec650c90..41b82638ab1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident integration metadata from a response. */ @@ -112,6 +116,52 @@ public void setType(IncidentIntegrationMetadataType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentIntegrationMetadataResponseData + */ + @JsonAnySetter + public IncidentIntegrationMetadataResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentIntegrationMetadataResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -125,12 +175,15 @@ public boolean equals(Object o) { (IncidentIntegrationMetadataResponseData) o; return Objects.equals(this.attributes, incidentIntegrationMetadataResponseData.attributes) && Objects.equals(this.id, incidentIntegrationMetadataResponseData.id) - && Objects.equals(this.type, incidentIntegrationMetadataResponseData.type); + && Objects.equals(this.type, incidentIntegrationMetadataResponseData.type) + && Objects.equals( + this.additionalProperties, + incidentIntegrationMetadataResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -140,6 +193,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentNotificationHandle.java b/src/main/java/com/datadog/api/client/v2/model/IncidentNotificationHandle.java index 7ef41013bdd..a1e0a177677 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentNotificationHandle.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentNotificationHandle.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A notification handle that will be notified at incident creation. */ @@ -69,6 +73,52 @@ public void setHandle(String handle) { this.handle = handle; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentNotificationHandle + */ + @JsonAnySetter + public IncidentNotificationHandle putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentNotificationHandle object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } IncidentNotificationHandle incidentNotificationHandle = (IncidentNotificationHandle) o; return Objects.equals(this.displayName, incidentNotificationHandle.displayName) - && Objects.equals(this.handle, incidentNotificationHandle.handle); + && Objects.equals(this.handle, incidentNotificationHandle.handle) + && Objects.equals( + this.additionalProperties, incidentNotificationHandle.additionalProperties); } @Override public int hashCode() { - return Objects.hash(displayName, handle); + return Objects.hash(displayName, handle, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class IncidentNotificationHandle {\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponse.java index 6d0d6e21727..be0cf0a505e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with an incident. */ @@ -68,6 +72,52 @@ public List getIncluded() { return included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentResponse + */ + @JsonAnySetter + public IncidentResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,12 +129,13 @@ public boolean equals(Object o) { } IncidentResponse incidentResponse = (IncidentResponse) o; return Objects.equals(this.data, incidentResponse.data) - && Objects.equals(this.included, incidentResponse.included); + && Objects.equals(this.included, incidentResponse.included) + && Objects.equals(this.additionalProperties, incidentResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -93,6 +144,9 @@ public String toString() { sb.append("class IncidentResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseAttributes.java index cd891efef59..3b467fbdc25 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -490,6 +492,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentResponseAttributes + */ + @JsonAnySetter + public IncidentResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -518,7 +566,9 @@ public boolean equals(Object o) { this.timeToInternalResponse, incidentResponseAttributes.timeToInternalResponse) && Objects.equals(this.timeToRepair, incidentResponseAttributes.timeToRepair) && Objects.equals(this.timeToResolve, incidentResponseAttributes.timeToResolve) - && Objects.equals(this.title, incidentResponseAttributes.title); + && Objects.equals(this.title, incidentResponseAttributes.title) + && Objects.equals( + this.additionalProperties, incidentResponseAttributes.additionalProperties); } @Override @@ -540,7 +590,8 @@ public int hashCode() { timeToInternalResponse, timeToRepair, timeToResolve, - title); + title, + additionalProperties); } @Override @@ -574,6 +625,9 @@ public String toString() { sb.append(" timeToRepair: ").append(toIndentedString(timeToRepair)).append("\n"); sb.append(" timeToResolve: ").append(toIndentedString(timeToResolve)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseData.java index d06d18cf320..4b6bc3cfd19 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident data from a response. */ @@ -135,6 +139,52 @@ public void setType(IncidentType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentResponseData + */ + @JsonAnySetter + public IncidentResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentResponseData.attributes) && Objects.equals(this.id, incidentResponseData.id) && Objects.equals(this.relationships, incidentResponseData.relationships) - && Objects.equals(this.type, incidentResponseData.type); + && Objects.equals(this.type, incidentResponseData.type) + && Objects.equals(this.additionalProperties, incidentResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMeta.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMeta.java index eec39873b89..2f9ef3d58c2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The metadata object containing pagination metadata. */ @@ -43,6 +47,52 @@ public void setPagination(IncidentResponseMetaPagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentResponseMeta + */ + @JsonAnySetter + public IncidentResponseMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentResponseMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } IncidentResponseMeta incidentResponseMeta = (IncidentResponseMeta) o; - return Objects.equals(this.pagination, incidentResponseMeta.pagination); + return Objects.equals(this.pagination, incidentResponseMeta.pagination) + && Objects.equals(this.additionalProperties, incidentResponseMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pagination); + return Objects.hash(pagination, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentResponseMeta {\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMetaPagination.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMetaPagination.java index 4185854aa18..def1eb7ebe7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMetaPagination.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseMetaPagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination properties. */ @@ -95,6 +99,52 @@ public void setSize(Long size) { this.size = size; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentResponseMetaPagination + */ + @JsonAnySetter + public IncidentResponseMetaPagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentResponseMetaPagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,14 @@ public boolean equals(Object o) { (IncidentResponseMetaPagination) o; return Objects.equals(this.nextOffset, incidentResponseMetaPagination.nextOffset) && Objects.equals(this.offset, incidentResponseMetaPagination.offset) - && Objects.equals(this.size, incidentResponseMetaPagination.size); + && Objects.equals(this.size, incidentResponseMetaPagination.size) + && Objects.equals( + this.additionalProperties, incidentResponseMetaPagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(nextOffset, offset, size); + return Objects.hash(nextOffset, offset, size, additionalProperties); } @Override @@ -123,6 +175,9 @@ public String toString() { sb.append(" nextOffset: ").append(toIndentedString(nextOffset)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseRelationships.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseRelationships.java index 767a2297b17..0352d5f6bdb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident's relationships from a response. */ @@ -150,6 +154,52 @@ public void setLastModifiedByUser(RelationshipToUser lastModifiedByUser) { this.lastModifiedByUser = lastModifiedByUser; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentResponseRelationships + */ + @JsonAnySetter + public IncidentResponseRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentResponseRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -164,14 +214,20 @@ public boolean equals(Object o) { && Objects.equals(this.commanderUser, incidentResponseRelationships.commanderUser) && Objects.equals(this.createdByUser, incidentResponseRelationships.createdByUser) && Objects.equals(this.integrations, incidentResponseRelationships.integrations) + && Objects.equals(this.lastModifiedByUser, incidentResponseRelationships.lastModifiedByUser) && Objects.equals( - this.lastModifiedByUser, incidentResponseRelationships.lastModifiedByUser); + this.additionalProperties, incidentResponseRelationships.additionalProperties); } @Override public int hashCode() { return Objects.hash( - attachments, commanderUser, createdByUser, integrations, lastModifiedByUser); + attachments, + commanderUser, + createdByUser, + integrations, + lastModifiedByUser, + additionalProperties); } @Override @@ -183,6 +239,9 @@ public String toString() { sb.append(" createdByUser: ").append(toIndentedString(createdByUser)).append("\n"); sb.append(" integrations: ").append(toIndentedString(integrations)).append("\n"); sb.append(" lastModifiedByUser: ").append(toIndentedString(lastModifiedByUser)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponse.java index 6248e603724..17fffebe4d0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with incidents and facets. */ @@ -87,6 +91,52 @@ public IncidentSearchResponseMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponse + */ + @JsonAnySetter + public IncidentSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,13 @@ public boolean equals(Object o) { IncidentSearchResponse incidentSearchResponse = (IncidentSearchResponse) o; return Objects.equals(this.data, incidentSearchResponse.data) && Objects.equals(this.included, incidentSearchResponse.included) - && Objects.equals(this.meta, incidentSearchResponse.meta); + && Objects.equals(this.meta, incidentSearchResponse.meta) + && Objects.equals(this.additionalProperties, incidentSearchResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -114,6 +165,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseAttributes.java index f4a5122086d..26d90864182 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes returned by an incident search. */ @@ -121,6 +125,52 @@ public void setTotal(Integer total) { this.total = total; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseAttributes + */ + @JsonAnySetter + public IncidentSearchResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -134,12 +184,14 @@ public boolean equals(Object o) { (IncidentSearchResponseAttributes) o; return Objects.equals(this.facets, incidentSearchResponseAttributes.facets) && Objects.equals(this.incidents, incidentSearchResponseAttributes.incidents) - && Objects.equals(this.total, incidentSearchResponseAttributes.total); + && Objects.equals(this.total, incidentSearchResponseAttributes.total) + && Objects.equals( + this.additionalProperties, incidentSearchResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facets, incidents, total); + return Objects.hash(facets, incidents, total, additionalProperties); } @Override @@ -149,6 +201,9 @@ public String toString() { sb.append(" facets: ").append(toIndentedString(facets)).append("\n"); sb.append(" incidents: ").append(toIndentedString(incidents)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseData.java index 38486b7ccb0..76648d92e57 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data returned by an incident search. */ @@ -74,6 +78,52 @@ public void setType(IncidentSearchResultsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseData + */ + @JsonAnySetter + public IncidentSearchResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { } IncidentSearchResponseData incidentSearchResponseData = (IncidentSearchResponseData) o; return Objects.equals(this.attributes, incidentSearchResponseData.attributes) - && Objects.equals(this.type, incidentSearchResponseData.type); + && Objects.equals(this.type, incidentSearchResponseData.type) + && Objects.equals( + this.additionalProperties, incidentSearchResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class IncidentSearchResponseData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFacetsData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFacetsData.java index 5cbb7960027..00d255036ad 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFacetsData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFacetsData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Facet data for incidents returned by a search query. */ @@ -449,6 +453,52 @@ public void setTimeToResolve(List timeTo this.timeToResolve = timeToResolve; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseFacetsData + */ + @JsonAnySetter + public IncidentSearchResponseFacetsData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseFacetsData object is equal to o. */ @Override public boolean equals(Object o) { @@ -470,7 +520,9 @@ public boolean equals(Object o) { && Objects.equals(this.severity, incidentSearchResponseFacetsData.severity) && Objects.equals(this.state, incidentSearchResponseFacetsData.state) && Objects.equals(this.timeToRepair, incidentSearchResponseFacetsData.timeToRepair) - && Objects.equals(this.timeToResolve, incidentSearchResponseFacetsData.timeToResolve); + && Objects.equals(this.timeToResolve, incidentSearchResponseFacetsData.timeToResolve) + && Objects.equals( + this.additionalProperties, incidentSearchResponseFacetsData.additionalProperties); } @Override @@ -486,7 +538,8 @@ public int hashCode() { severity, state, timeToRepair, - timeToResolve); + timeToResolve, + additionalProperties); } @Override @@ -504,6 +557,9 @@ public String toString() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" timeToRepair: ").append(toIndentedString(timeToRepair)).append("\n"); sb.append(" timeToResolve: ").append(toIndentedString(timeToResolve)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFieldFacetData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFieldFacetData.java index 73724b7ddba..0a410f24d33 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFieldFacetData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseFieldFacetData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Facet value and number of occurrences for a property field of an incident. */ @@ -69,6 +73,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseFieldFacetData + */ + @JsonAnySetter + public IncidentSearchResponseFieldFacetData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseFieldFacetData object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { IncidentSearchResponseFieldFacetData incidentSearchResponseFieldFacetData = (IncidentSearchResponseFieldFacetData) o; return Objects.equals(this.count, incidentSearchResponseFieldFacetData.count) - && Objects.equals(this.name, incidentSearchResponseFieldFacetData.name); + && Objects.equals(this.name, incidentSearchResponseFieldFacetData.name) + && Objects.equals( + this.additionalProperties, incidentSearchResponseFieldFacetData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, name); + return Objects.hash(count, name, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class IncidentSearchResponseFieldFacetData {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseIncidentsData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseIncidentsData.java index 6b7def09283..46e833da895 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseIncidentsData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseIncidentsData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident returned by the search. */ @@ -52,6 +56,52 @@ public void setData(IncidentResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseIncidentsData + */ + @JsonAnySetter + public IncidentSearchResponseIncidentsData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseIncidentsData object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } IncidentSearchResponseIncidentsData incidentSearchResponseIncidentsData = (IncidentSearchResponseIncidentsData) o; - return Objects.equals(this.data, incidentSearchResponseIncidentsData.data); + return Objects.equals(this.data, incidentSearchResponseIncidentsData.data) + && Objects.equals( + this.additionalProperties, incidentSearchResponseIncidentsData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentSearchResponseIncidentsData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseMeta.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseMeta.java index 0a6d2fced74..a116ec751d0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The metadata object containing pagination metadata. */ @@ -43,6 +47,52 @@ public void setPagination(IncidentResponseMetaPagination pagination) { this.pagination = pagination; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseMeta + */ + @JsonAnySetter + public IncidentSearchResponseMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } IncidentSearchResponseMeta incidentSearchResponseMeta = (IncidentSearchResponseMeta) o; - return Objects.equals(this.pagination, incidentSearchResponseMeta.pagination); + return Objects.equals(this.pagination, incidentSearchResponseMeta.pagination) + && Objects.equals( + this.additionalProperties, incidentSearchResponseMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pagination); + return Objects.hash(pagination, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentSearchResponseMeta {\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetData.java index e3225010a2b..e1f4e00ebd7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Facet data numeric attributes of an incident. */ @@ -82,6 +86,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseNumericFacetData + */ + @JsonAnySetter + public IncidentSearchResponseNumericFacetData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseNumericFacetData object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,14 @@ public boolean equals(Object o) { IncidentSearchResponseNumericFacetData incidentSearchResponseNumericFacetData = (IncidentSearchResponseNumericFacetData) o; return Objects.equals(this.aggregates, incidentSearchResponseNumericFacetData.aggregates) - && Objects.equals(this.name, incidentSearchResponseNumericFacetData.name); + && Objects.equals(this.name, incidentSearchResponseNumericFacetData.name) + && Objects.equals( + this.additionalProperties, incidentSearchResponseNumericFacetData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregates, name); + return Objects.hash(aggregates, name, additionalProperties); } @Override @@ -108,6 +160,9 @@ public String toString() { sb.append("class IncidentSearchResponseNumericFacetData {\n"); sb.append(" aggregates: ").append(toIndentedString(aggregates)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetDataAggregates.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetDataAggregates.java index 6bf6eae8664..e4d998a8997 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetDataAggregates.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseNumericFacetDataAggregates.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -90,6 +94,53 @@ public void setMin(Double min) { this.min = JsonNullable.of(min); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseNumericFacetDataAggregates + */ + @JsonAnySetter + public IncidentSearchResponseNumericFacetDataAggregates putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseNumericFacetDataAggregates object is equal to o. */ @Override public boolean equals(Object o) { @@ -103,12 +154,15 @@ public boolean equals(Object o) { incidentSearchResponseNumericFacetDataAggregates = (IncidentSearchResponseNumericFacetDataAggregates) o; return Objects.equals(this.max, incidentSearchResponseNumericFacetDataAggregates.max) - && Objects.equals(this.min, incidentSearchResponseNumericFacetDataAggregates.min); + && Objects.equals(this.min, incidentSearchResponseNumericFacetDataAggregates.min) + && Objects.equals( + this.additionalProperties, + incidentSearchResponseNumericFacetDataAggregates.additionalProperties); } @Override public int hashCode() { - return Objects.hash(max, min); + return Objects.hash(max, min, additionalProperties); } @Override @@ -117,6 +171,9 @@ public String toString() { sb.append("class IncidentSearchResponseNumericFacetDataAggregates {\n"); sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponsePropertyFieldFacetData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponsePropertyFieldFacetData.java index 18d9b696635..d5886648220 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponsePropertyFieldFacetData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponsePropertyFieldFacetData.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Facet data for the incident property fields. */ @@ -119,6 +123,53 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponsePropertyFieldFacetData + */ + @JsonAnySetter + public IncidentSearchResponsePropertyFieldFacetData putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponsePropertyFieldFacetData object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +183,15 @@ public boolean equals(Object o) { (IncidentSearchResponsePropertyFieldFacetData) o; return Objects.equals(this.aggregates, incidentSearchResponsePropertyFieldFacetData.aggregates) && Objects.equals(this.facets, incidentSearchResponsePropertyFieldFacetData.facets) - && Objects.equals(this.name, incidentSearchResponsePropertyFieldFacetData.name); + && Objects.equals(this.name, incidentSearchResponsePropertyFieldFacetData.name) + && Objects.equals( + this.additionalProperties, + incidentSearchResponsePropertyFieldFacetData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregates, facets, name); + return Objects.hash(aggregates, facets, name, additionalProperties); } @Override @@ -147,6 +201,9 @@ public String toString() { sb.append(" aggregates: ").append(toIndentedString(aggregates)).append("\n"); sb.append(" facets: ").append(toIndentedString(facets)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseUserFacetData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseUserFacetData.java index 0d3462448d2..7ff7a1a072c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseUserFacetData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentSearchResponseUserFacetData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Facet data for user attributes of an incident. */ @@ -144,6 +148,52 @@ public void setUuid(String uuid) { this.uuid = uuid; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentSearchResponseUserFacetData + */ + @JsonAnySetter + public IncidentSearchResponseUserFacetData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentSearchResponseUserFacetData object is equal to o. */ @Override public boolean equals(Object o) { @@ -159,12 +209,14 @@ public boolean equals(Object o) { && Objects.equals(this.email, incidentSearchResponseUserFacetData.email) && Objects.equals(this.handle, incidentSearchResponseUserFacetData.handle) && Objects.equals(this.name, incidentSearchResponseUserFacetData.name) - && Objects.equals(this.uuid, incidentSearchResponseUserFacetData.uuid); + && Objects.equals(this.uuid, incidentSearchResponseUserFacetData.uuid) + && Objects.equals( + this.additionalProperties, incidentSearchResponseUserFacetData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(count, email, handle, name, uuid); + return Objects.hash(count, email, handle, name, uuid, additionalProperties); } @Override @@ -176,6 +228,9 @@ public String toString() { sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateAttributes.java index 9e9b9cec1e3..b31e012fee1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident service's attributes for a create request. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceCreateAttributes + */ + @JsonAnySetter + public IncidentServiceCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -61,12 +111,14 @@ public boolean equals(Object o) { } IncidentServiceCreateAttributes incidentServiceCreateAttributes = (IncidentServiceCreateAttributes) o; - return Objects.equals(this.name, incidentServiceCreateAttributes.name); + return Objects.equals(this.name, incidentServiceCreateAttributes.name) + && Objects.equals( + this.additionalProperties, incidentServiceCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -74,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentServiceCreateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateData.java index c848a1499e8..e306695a899 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident Service payload for create requests. */ @@ -99,6 +103,52 @@ public void setType(IncidentServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceCreateData + */ + @JsonAnySetter + public IncidentServiceCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,14 @@ public boolean equals(Object o) { IncidentServiceCreateData incidentServiceCreateData = (IncidentServiceCreateData) o; return Objects.equals(this.attributes, incidentServiceCreateData.attributes) && Objects.equals(this.relationships, incidentServiceCreateData.relationships) - && Objects.equals(this.type, incidentServiceCreateData.type); + && Objects.equals(this.type, incidentServiceCreateData.type) + && Objects.equals( + this.additionalProperties, incidentServiceCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -126,6 +178,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateRequest.java index a8f7b04fac8..78280ea48ed 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create request with an incident service payload. */ @@ -52,6 +56,52 @@ public void setData(IncidentServiceCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceCreateRequest + */ + @JsonAnySetter + public IncidentServiceCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } IncidentServiceCreateRequest incidentServiceCreateRequest = (IncidentServiceCreateRequest) o; - return Objects.equals(this.data, incidentServiceCreateRequest.data); + return Objects.equals(this.data, incidentServiceCreateRequest.data) + && Objects.equals( + this.additionalProperties, incidentServiceCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentServiceCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceRelationships.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceRelationships.java index 0fb159dad7e..8c077d3ee88 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident service's relationships. */ @@ -71,6 +75,52 @@ public void setLastModifiedBy(RelationshipToUser lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceRelationships + */ + @JsonAnySetter + public IncidentServiceRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { } IncidentServiceRelationships incidentServiceRelationships = (IncidentServiceRelationships) o; return Objects.equals(this.createdBy, incidentServiceRelationships.createdBy) - && Objects.equals(this.lastModifiedBy, incidentServiceRelationships.lastModifiedBy); + && Objects.equals(this.lastModifiedBy, incidentServiceRelationships.lastModifiedBy) + && Objects.equals( + this.additionalProperties, incidentServiceRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdBy, lastModifiedBy); + return Objects.hash(createdBy, lastModifiedBy, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class IncidentServiceRelationships {\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" lastModifiedBy: ").append(toIndentedString(lastModifiedBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponse.java index 3dc622372c8..604b39aeb3c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with an incident service payload. */ @@ -71,6 +75,52 @@ public List getIncluded() { return included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceResponse + */ + @JsonAnySetter + public IncidentServiceResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } IncidentServiceResponse incidentServiceResponse = (IncidentServiceResponse) o; return Objects.equals(this.data, incidentServiceResponse.data) - && Objects.equals(this.included, incidentServiceResponse.included); + && Objects.equals(this.included, incidentServiceResponse.included) + && Objects.equals(this.additionalProperties, incidentServiceResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class IncidentServiceResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseAttributes.java index 5d6bf7f8288..eb2f16b8e95 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident service's attributes from a response. */ @@ -77,6 +81,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceResponseAttributes + */ + @JsonAnySetter + public IncidentServiceResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,14 @@ public boolean equals(Object o) { (IncidentServiceResponseAttributes) o; return Objects.equals(this.created, incidentServiceResponseAttributes.created) && Objects.equals(this.modified, incidentServiceResponseAttributes.modified) - && Objects.equals(this.name, incidentServiceResponseAttributes.name); + && Objects.equals(this.name, incidentServiceResponseAttributes.name) + && Objects.equals( + this.additionalProperties, incidentServiceResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(created, modified, name); + return Objects.hash(created, modified, name, additionalProperties); } @Override @@ -105,6 +157,9 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseData.java index 569c5e0203e..da0385a2a58 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident Service data from responses. */ @@ -125,6 +129,52 @@ public void setType(IncidentServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceResponseData + */ + @JsonAnySetter + public IncidentServiceResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentServiceResponseData.attributes) && Objects.equals(this.id, incidentServiceResponseData.id) && Objects.equals(this.relationships, incidentServiceResponseData.relationships) - && Objects.equals(this.type, incidentServiceResponseData.type); + && Objects.equals(this.type, incidentServiceResponseData.type) + && Objects.equals( + this.additionalProperties, incidentServiceResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -154,6 +206,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateAttributes.java index cfe37a5eb5c..82ddc0bef0f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident service's attributes for an update request. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceUpdateAttributes + */ + @JsonAnySetter + public IncidentServiceUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -61,12 +111,14 @@ public boolean equals(Object o) { } IncidentServiceUpdateAttributes incidentServiceUpdateAttributes = (IncidentServiceUpdateAttributes) o; - return Objects.equals(this.name, incidentServiceUpdateAttributes.name); + return Objects.equals(this.name, incidentServiceUpdateAttributes.name) + && Objects.equals( + this.additionalProperties, incidentServiceUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -74,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentServiceUpdateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateData.java index c2af3cc1584..d85f9fb07c5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident Service payload for update requests. */ @@ -124,6 +128,52 @@ public void setType(IncidentServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceUpdateData + */ + @JsonAnySetter + public IncidentServiceUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -137,12 +187,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentServiceUpdateData.attributes) && Objects.equals(this.id, incidentServiceUpdateData.id) && Objects.equals(this.relationships, incidentServiceUpdateData.relationships) - && Objects.equals(this.type, incidentServiceUpdateData.type); + && Objects.equals(this.type, incidentServiceUpdateData.type) + && Objects.equals( + this.additionalProperties, incidentServiceUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -153,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateRequest.java index 141c7af11d9..07390612dbe 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServiceUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update request with an incident service payload. */ @@ -52,6 +56,52 @@ public void setData(IncidentServiceUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServiceUpdateRequest + */ + @JsonAnySetter + public IncidentServiceUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServiceUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } IncidentServiceUpdateRequest incidentServiceUpdateRequest = (IncidentServiceUpdateRequest) o; - return Objects.equals(this.data, incidentServiceUpdateRequest.data); + return Objects.equals(this.data, incidentServiceUpdateRequest.data) + && Objects.equals( + this.additionalProperties, incidentServiceUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentServiceUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentServicesResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentServicesResponse.java index 0933187ef5f..042544fc0d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentServicesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentServicesResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with a list of incident service payloads. */ @@ -96,6 +100,52 @@ public IncidentResponseMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentServicesResponse + */ + @JsonAnySetter + public IncidentServicesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentServicesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,13 @@ public boolean equals(Object o) { IncidentServicesResponse incidentServicesResponse = (IncidentServicesResponse) o; return Objects.equals(this.data, incidentServicesResponse.data) && Objects.equals(this.included, incidentServicesResponse.included) - && Objects.equals(this.meta, incidentServicesResponse.meta); + && Objects.equals(this.meta, incidentServicesResponse.meta) + && Objects.equals(this.additionalProperties, incidentServicesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -123,6 +174,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateAttributes.java index c4630393487..0413d0c816e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident team's attributes for a create request. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamCreateAttributes + */ + @JsonAnySetter + public IncidentTeamCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,14 @@ public boolean equals(Object o) { return false; } IncidentTeamCreateAttributes incidentTeamCreateAttributes = (IncidentTeamCreateAttributes) o; - return Objects.equals(this.name, incidentTeamCreateAttributes.name); + return Objects.equals(this.name, incidentTeamCreateAttributes.name) + && Objects.equals( + this.additionalProperties, incidentTeamCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -73,6 +125,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTeamCreateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateData.java index fff6989b113..dafdc243d72 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident Team data for a create request. */ @@ -99,6 +103,52 @@ public void setType(IncidentTeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamCreateData + */ + @JsonAnySetter + public IncidentTeamCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { IncidentTeamCreateData incidentTeamCreateData = (IncidentTeamCreateData) o; return Objects.equals(this.attributes, incidentTeamCreateData.attributes) && Objects.equals(this.relationships, incidentTeamCreateData.relationships) - && Objects.equals(this.type, incidentTeamCreateData.type); + && Objects.equals(this.type, incidentTeamCreateData.type) + && Objects.equals(this.additionalProperties, incidentTeamCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateRequest.java index a83d2e315c7..dfeffd55ed0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create request with an incident team payload. */ @@ -52,6 +56,52 @@ public void setData(IncidentTeamCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamCreateRequest + */ + @JsonAnySetter + public IncidentTeamCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } IncidentTeamCreateRequest incidentTeamCreateRequest = (IncidentTeamCreateRequest) o; - return Objects.equals(this.data, incidentTeamCreateRequest.data); + return Objects.equals(this.data, incidentTeamCreateRequest.data) + && Objects.equals( + this.additionalProperties, incidentTeamCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTeamCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamRelationships.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamRelationships.java index 12d68f49401..d98ca8f1fec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident team's relationships. */ @@ -71,6 +75,52 @@ public void setLastModifiedBy(RelationshipToUser lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamRelationships + */ + @JsonAnySetter + public IncidentTeamRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { } IncidentTeamRelationships incidentTeamRelationships = (IncidentTeamRelationships) o; return Objects.equals(this.createdBy, incidentTeamRelationships.createdBy) - && Objects.equals(this.lastModifiedBy, incidentTeamRelationships.lastModifiedBy); + && Objects.equals(this.lastModifiedBy, incidentTeamRelationships.lastModifiedBy) + && Objects.equals( + this.additionalProperties, incidentTeamRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdBy, lastModifiedBy); + return Objects.hash(createdBy, lastModifiedBy, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class IncidentTeamRelationships {\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" lastModifiedBy: ").append(toIndentedString(lastModifiedBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponse.java index b8ff27a2ed5..5b71b6d8eb3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with an incident team payload. */ @@ -71,6 +75,52 @@ public List getIncluded() { return included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamResponse + */ + @JsonAnySetter + public IncidentTeamResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } IncidentTeamResponse incidentTeamResponse = (IncidentTeamResponse) o; return Objects.equals(this.data, incidentTeamResponse.data) - && Objects.equals(this.included, incidentTeamResponse.included); + && Objects.equals(this.included, incidentTeamResponse.included) + && Objects.equals(this.additionalProperties, incidentTeamResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class IncidentTeamResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseAttributes.java index 28c2a1405d1..a3469043035 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident team's attributes from a response. */ @@ -77,6 +81,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamResponseAttributes + */ + @JsonAnySetter + public IncidentTeamResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,14 @@ public boolean equals(Object o) { (IncidentTeamResponseAttributes) o; return Objects.equals(this.created, incidentTeamResponseAttributes.created) && Objects.equals(this.modified, incidentTeamResponseAttributes.modified) - && Objects.equals(this.name, incidentTeamResponseAttributes.name); + && Objects.equals(this.name, incidentTeamResponseAttributes.name) + && Objects.equals( + this.additionalProperties, incidentTeamResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(created, modified, name); + return Objects.hash(created, modified, name, additionalProperties); } @Override @@ -105,6 +157,9 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseData.java index 3177bd1b02b..b0be929807a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident Team data from a response. */ @@ -115,6 +119,52 @@ public void setType(IncidentTeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamResponseData + */ + @JsonAnySetter + public IncidentTeamResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +178,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentTeamResponseData.attributes) && Objects.equals(this.id, incidentTeamResponseData.id) && Objects.equals(this.relationships, incidentTeamResponseData.relationships) - && Objects.equals(this.type, incidentTeamResponseData.type); + && Objects.equals(this.type, incidentTeamResponseData.type) + && Objects.equals(this.additionalProperties, incidentTeamResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -144,6 +195,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateAttributes.java index cfc20e2ad7b..f796986d77a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident team's attributes for an update request. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamUpdateAttributes + */ + @JsonAnySetter + public IncidentTeamUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,14 @@ public boolean equals(Object o) { return false; } IncidentTeamUpdateAttributes incidentTeamUpdateAttributes = (IncidentTeamUpdateAttributes) o; - return Objects.equals(this.name, incidentTeamUpdateAttributes.name); + return Objects.equals(this.name, incidentTeamUpdateAttributes.name) + && Objects.equals( + this.additionalProperties, incidentTeamUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -73,6 +125,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTeamUpdateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateData.java index 85a951eb6b6..040a2f55680 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident Team data for an update request. */ @@ -124,6 +128,52 @@ public void setType(IncidentTeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamUpdateData + */ + @JsonAnySetter + public IncidentTeamUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -137,12 +187,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentTeamUpdateData.attributes) && Objects.equals(this.id, incidentTeamUpdateData.id) && Objects.equals(this.relationships, incidentTeamUpdateData.relationships) - && Objects.equals(this.type, incidentTeamUpdateData.type); + && Objects.equals(this.type, incidentTeamUpdateData.type) + && Objects.equals(this.additionalProperties, incidentTeamUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -153,6 +204,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateRequest.java index 334518885f1..be30dbd57c7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update request with an incident team payload. */ @@ -52,6 +56,52 @@ public void setData(IncidentTeamUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamUpdateRequest + */ + @JsonAnySetter + public IncidentTeamUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } IncidentTeamUpdateRequest incidentTeamUpdateRequest = (IncidentTeamUpdateRequest) o; - return Objects.equals(this.data, incidentTeamUpdateRequest.data); + return Objects.equals(this.data, incidentTeamUpdateRequest.data) + && Objects.equals( + this.additionalProperties, incidentTeamUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTeamUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamsResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamsResponse.java index ba18674dd89..5e712769ec4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTeamsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTeamsResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with a list of incident team payloads. */ @@ -96,6 +100,52 @@ public IncidentResponseMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTeamsResponse + */ + @JsonAnySetter + public IncidentTeamsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTeamsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,13 @@ public boolean equals(Object o) { IncidentTeamsResponse incidentTeamsResponse = (IncidentTeamsResponse) o; return Objects.equals(this.data, incidentTeamsResponse.data) && Objects.equals(this.included, incidentTeamsResponse.included) - && Objects.equals(this.meta, incidentTeamsResponse.meta); + && Objects.equals(this.meta, incidentTeamsResponse.meta) + && Objects.equals(this.additionalProperties, incidentTeamsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -123,6 +174,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributes.java index ae26331b67c..e9b4f782ac7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Timeline cell data for Markdown timeline cells for a create request. */ @@ -115,6 +119,53 @@ public void setImportant(Boolean important) { this.important = important; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTimelineCellMarkdownCreateAttributes + */ + @JsonAnySetter + public IncidentTimelineCellMarkdownCreateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTimelineCellMarkdownCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +179,15 @@ public boolean equals(Object o) { (IncidentTimelineCellMarkdownCreateAttributes) o; return Objects.equals(this.cellType, incidentTimelineCellMarkdownCreateAttributes.cellType) && Objects.equals(this.content, incidentTimelineCellMarkdownCreateAttributes.content) - && Objects.equals(this.important, incidentTimelineCellMarkdownCreateAttributes.important); + && Objects.equals(this.important, incidentTimelineCellMarkdownCreateAttributes.important) + && Objects.equals( + this.additionalProperties, + incidentTimelineCellMarkdownCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cellType, content, important); + return Objects.hash(cellType, content, important, additionalProperties); } @Override @@ -143,6 +197,9 @@ public String toString() { sb.append(" cellType: ").append(toIndentedString(cellType)).append("\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" important: ").append(toIndentedString(important)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributesContent.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributesContent.java index 41fd1f5c145..f93f08a5e83 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributesContent.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTimelineCellMarkdownCreateAttributesContent.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The Markdown timeline cell contents. */ @@ -42,6 +46,53 @@ public void setContent(String content) { this.content = content; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTimelineCellMarkdownCreateAttributesContent + */ + @JsonAnySetter + public IncidentTimelineCellMarkdownCreateAttributesContent putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** * Return true if this IncidentTimelineCellMarkdownCreateAttributesContent object is equal to o. */ @@ -56,13 +107,15 @@ public boolean equals(Object o) { IncidentTimelineCellMarkdownCreateAttributesContent incidentTimelineCellMarkdownCreateAttributesContent = (IncidentTimelineCellMarkdownCreateAttributesContent) o; - return Objects.equals( - this.content, incidentTimelineCellMarkdownCreateAttributesContent.content); + return Objects.equals(this.content, incidentTimelineCellMarkdownCreateAttributesContent.content) + && Objects.equals( + this.additionalProperties, + incidentTimelineCellMarkdownCreateAttributesContent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(content); + return Objects.hash(content, additionalProperties); } @Override @@ -70,6 +123,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTimelineCellMarkdownCreateAttributesContent {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAnonymousAssignee.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAnonymousAssignee.java index d51685d9d3b..6e804209398 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAnonymousAssignee.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAnonymousAssignee.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Anonymous assignee entity. */ @@ -136,6 +140,52 @@ public void setSource(IncidentTodoAnonymousAssigneeSource source) { this.source = source; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoAnonymousAssignee + */ + @JsonAnySetter + public IncidentTodoAnonymousAssignee putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoAnonymousAssignee object is equal to o. */ @Override public boolean equals(Object o) { @@ -149,12 +199,14 @@ public boolean equals(Object o) { return Objects.equals(this.icon, incidentTodoAnonymousAssignee.icon) && Objects.equals(this.id, incidentTodoAnonymousAssignee.id) && Objects.equals(this.name, incidentTodoAnonymousAssignee.name) - && Objects.equals(this.source, incidentTodoAnonymousAssignee.source); + && Objects.equals(this.source, incidentTodoAnonymousAssignee.source) + && Objects.equals( + this.additionalProperties, incidentTodoAnonymousAssignee.additionalProperties); } @Override public int hashCode() { - return Objects.hash(icon, id, name, source); + return Objects.hash(icon, id, name, source, additionalProperties); } @Override @@ -165,6 +217,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAttributes.java index 0cbef61d8cc..facb62d48a8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -186,6 +190,52 @@ public void setIncidentId(String incidentId) { this.incidentId = incidentId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoAttributes + */ + @JsonAnySetter + public IncidentTodoAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -200,12 +250,13 @@ public boolean equals(Object o) { && Objects.equals(this.completed, incidentTodoAttributes.completed) && Objects.equals(this.content, incidentTodoAttributes.content) && Objects.equals(this.dueDate, incidentTodoAttributes.dueDate) - && Objects.equals(this.incidentId, incidentTodoAttributes.incidentId); + && Objects.equals(this.incidentId, incidentTodoAttributes.incidentId) + && Objects.equals(this.additionalProperties, incidentTodoAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(assignees, completed, content, dueDate, incidentId); + return Objects.hash(assignees, completed, content, dueDate, incidentId, additionalProperties); } @Override @@ -217,6 +268,9 @@ public String toString() { sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); sb.append(" incidentId: ").append(toIndentedString(incidentId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateData.java index a572696a12b..0e8dc090f8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident todo data for a create request. */ @@ -86,6 +90,52 @@ public void setType(IncidentTodoType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoCreateData + */ + @JsonAnySetter + public IncidentTodoCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } IncidentTodoCreateData incidentTodoCreateData = (IncidentTodoCreateData) o; return Objects.equals(this.attributes, incidentTodoCreateData.attributes) - && Objects.equals(this.type, incidentTodoCreateData.type); + && Objects.equals(this.type, incidentTodoCreateData.type) + && Objects.equals(this.additionalProperties, incidentTodoCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class IncidentTodoCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateRequest.java index 7c1cdd76022..b38a7ddb17e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create request for an incident todo. */ @@ -52,6 +56,52 @@ public void setData(IncidentTodoCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoCreateRequest + */ + @JsonAnySetter + public IncidentTodoCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } IncidentTodoCreateRequest incidentTodoCreateRequest = (IncidentTodoCreateRequest) o; - return Objects.equals(this.data, incidentTodoCreateRequest.data); + return Objects.equals(this.data, incidentTodoCreateRequest.data) + && Objects.equals( + this.additionalProperties, incidentTodoCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTodoCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoListResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoListResponse.java index 46584ead849..acc98812c8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoListResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with a list of incident todos. */ @@ -96,6 +100,52 @@ public IncidentResponseMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoListResponse + */ + @JsonAnySetter + public IncidentTodoListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,13 @@ public boolean equals(Object o) { IncidentTodoListResponse incidentTodoListResponse = (IncidentTodoListResponse) o; return Objects.equals(this.data, incidentTodoListResponse.data) && Objects.equals(this.included, incidentTodoListResponse.included) - && Objects.equals(this.meta, incidentTodoListResponse.meta); + && Objects.equals(this.meta, incidentTodoListResponse.meta) + && Objects.equals(this.additionalProperties, incidentTodoListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -123,6 +174,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchData.java index b5a088e364b..9696ff6e47d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident todo data for a patch request. */ @@ -86,6 +90,52 @@ public void setType(IncidentTodoType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoPatchData + */ + @JsonAnySetter + public IncidentTodoPatchData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoPatchData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } IncidentTodoPatchData incidentTodoPatchData = (IncidentTodoPatchData) o; return Objects.equals(this.attributes, incidentTodoPatchData.attributes) - && Objects.equals(this.type, incidentTodoPatchData.type); + && Objects.equals(this.type, incidentTodoPatchData.type) + && Objects.equals(this.additionalProperties, incidentTodoPatchData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class IncidentTodoPatchData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchRequest.java index 9d555196c2d..5663924f305 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoPatchRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Patch request for an incident todo. */ @@ -52,6 +56,52 @@ public void setData(IncidentTodoPatchData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoPatchRequest + */ + @JsonAnySetter + public IncidentTodoPatchRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoPatchRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } IncidentTodoPatchRequest incidentTodoPatchRequest = (IncidentTodoPatchRequest) o; - return Objects.equals(this.data, incidentTodoPatchRequest.data); + return Objects.equals(this.data, incidentTodoPatchRequest.data) + && Objects.equals(this.additionalProperties, incidentTodoPatchRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentTodoPatchRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponse.java index bb10a825b9d..d02aad7558e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with an incident todo. */ @@ -71,6 +75,52 @@ public List getIncluded() { return included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoResponse + */ + @JsonAnySetter + public IncidentTodoResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } IncidentTodoResponse incidentTodoResponse = (IncidentTodoResponse) o; return Objects.equals(this.data, incidentTodoResponse.data) - && Objects.equals(this.included, incidentTodoResponse.included); + && Objects.equals(this.included, incidentTodoResponse.included) + && Objects.equals(this.additionalProperties, incidentTodoResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class IncidentTodoResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponseData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponseData.java index 74ba35e3bc3..9ae79e00b11 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTodoResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident todo response data. */ @@ -109,6 +113,52 @@ public void setType(IncidentTodoType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentTodoResponseData + */ + @JsonAnySetter + public IncidentTodoResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentTodoResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { IncidentTodoResponseData incidentTodoResponseData = (IncidentTodoResponseData) o; return Objects.equals(this.attributes, incidentTodoResponseData.attributes) && Objects.equals(this.id, incidentTodoResponseData.id) - && Objects.equals(this.type, incidentTodoResponseData.type); + && Objects.equals(this.type, incidentTodoResponseData.type) + && Objects.equals(this.additionalProperties, incidentTodoResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateAttributes.java index d21eff949a7..87c23ffa46b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -279,6 +281,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentUpdateAttributes + */ + @JsonAnySetter + public IncidentUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -296,7 +344,8 @@ public boolean equals(Object o) { && Objects.equals(this.detected, incidentUpdateAttributes.detected) && Objects.equals(this.fields, incidentUpdateAttributes.fields) && Objects.equals(this.notificationHandles, incidentUpdateAttributes.notificationHandles) - && Objects.equals(this.title, incidentUpdateAttributes.title); + && Objects.equals(this.title, incidentUpdateAttributes.title) + && Objects.equals(this.additionalProperties, incidentUpdateAttributes.additionalProperties); } @Override @@ -309,7 +358,8 @@ public int hashCode() { detected, fields, notificationHandles, - title); + title, + additionalProperties); } @Override @@ -330,6 +380,9 @@ public String toString() { .append(toIndentedString(notificationHandles)) .append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateData.java index 6469590a490..e507f25cfe8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Incident data for an update request. */ @@ -135,6 +139,52 @@ public void setType(IncidentType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentUpdateData + */ + @JsonAnySetter + public IncidentUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, incidentUpdateData.attributes) && Objects.equals(this.id, incidentUpdateData.id) && Objects.equals(this.relationships, incidentUpdateData.relationships) - && Objects.equals(this.type, incidentUpdateData.type); + && Objects.equals(this.type, incidentUpdateData.type) + && Objects.equals(this.additionalProperties, incidentUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRelationships.java b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRelationships.java index 1d0768fa2f3..ccbbc9a79a9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The incident's relationships for an update request. */ @@ -98,6 +102,52 @@ public void setPostmortem(RelationshipToIncidentPostmortem postmortem) { this.postmortem = postmortem; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentUpdateRelationships + */ + @JsonAnySetter + public IncidentUpdateRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentUpdateRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,12 +160,14 @@ public boolean equals(Object o) { IncidentUpdateRelationships incidentUpdateRelationships = (IncidentUpdateRelationships) o; return Objects.equals(this.commanderUser, incidentUpdateRelationships.commanderUser) && Objects.equals(this.integrations, incidentUpdateRelationships.integrations) - && Objects.equals(this.postmortem, incidentUpdateRelationships.postmortem); + && Objects.equals(this.postmortem, incidentUpdateRelationships.postmortem) + && Objects.equals( + this.additionalProperties, incidentUpdateRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(commanderUser, integrations, postmortem); + return Objects.hash(commanderUser, integrations, postmortem, additionalProperties); } @Override @@ -125,6 +177,9 @@ public String toString() { sb.append(" commanderUser: ").append(toIndentedString(commanderUser)).append("\n"); sb.append(" integrations: ").append(toIndentedString(integrations)).append("\n"); sb.append(" postmortem: ").append(toIndentedString(postmortem)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRequest.java index 4a7fba68984..8220b481393 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update request for an incident. */ @@ -52,6 +56,52 @@ public void setData(IncidentUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentUpdateRequest + */ + @JsonAnySetter + public IncidentUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } IncidentUpdateRequest incidentUpdateRequest = (IncidentUpdateRequest) o; - return Objects.equals(this.data, incidentUpdateRequest.data); + return Objects.equals(this.data, incidentUpdateRequest.data) + && Objects.equals(this.additionalProperties, incidentUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentsResponse.java b/src/main/java/com/datadog/api/client/v2/model/IncidentsResponse.java index 3eb4f1ce0ce..b32b1c789f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentsResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with a list of incidents. */ @@ -95,6 +99,52 @@ public IncidentResponseMeta getMeta() { return meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IncidentsResponse + */ + @JsonAnySetter + public IncidentsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IncidentsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,13 @@ public boolean equals(Object o) { IncidentsResponse incidentsResponse = (IncidentsResponse) o; return Objects.equals(this.data, incidentsResponse.data) && Objects.equals(this.included, incidentsResponse.included) - && Objects.equals(this.meta, incidentsResponse.meta); + && Objects.equals(this.meta, incidentsResponse.meta) + && Objects.equals(this.additionalProperties, incidentsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -122,6 +173,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/IntakePayloadAccepted.java b/src/main/java/com/datadog/api/client/v2/model/IntakePayloadAccepted.java index aa5a995296d..971ac57261e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IntakePayloadAccepted.java +++ b/src/main/java/com/datadog/api/client/v2/model/IntakePayloadAccepted.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The payload accepted for intake. */ @@ -52,6 +56,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IntakePayloadAccepted + */ + @JsonAnySetter + public IntakePayloadAccepted putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this IntakePayloadAccepted object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } IntakePayloadAccepted intakePayloadAccepted = (IntakePayloadAccepted) o; - return Objects.equals(this.errors, intakePayloadAccepted.errors); + return Objects.equals(this.errors, intakePayloadAccepted.errors) + && Objects.equals(this.additionalProperties, intakePayloadAccepted.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors); + return Objects.hash(errors, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntakePayloadAccepted {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java index a8911940bf5..174a535d0ec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** API error response body */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return JSONAPIErrorItem + */ + @JsonAnySetter + public JSONAPIErrorItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this JSONAPIErrorItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { JSONAPIErrorItem jsonapiErrorItem = (JSONAPIErrorItem) o; return Objects.equals(this.detail, jsonapiErrorItem.detail) && Objects.equals(this.status, jsonapiErrorItem.status) - && Objects.equals(this.title, jsonapiErrorItem.title); + && Objects.equals(this.title, jsonapiErrorItem.title) + && Objects.equals(this.additionalProperties, jsonapiErrorItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(detail, status, title); + return Objects.hash(detail, status, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java index 2c314e49134..f4cca0da6de 100644 --- a/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** API error response. */ @@ -61,6 +65,52 @@ public void setErrors(List errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return JSONAPIErrorResponse + */ + @JsonAnySetter + public JSONAPIErrorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this JSONAPIErrorResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -71,12 +121,13 @@ public boolean equals(Object o) { return false; } JSONAPIErrorResponse jsonapiErrorResponse = (JSONAPIErrorResponse) o; - return Objects.equals(this.errors, jsonapiErrorResponse.errors); + return Objects.equals(this.errors, jsonapiErrorResponse.errors) + && Objects.equals(this.additionalProperties, jsonapiErrorResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(errors); + return Objects.hash(errors, additionalProperties); } @Override @@ -84,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class JSONAPIErrorResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadata.java b/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadata.java index 64f084b1074..8d62f375ab3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadata.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Incident integration metadata for the Jira integration. */ @@ -62,6 +66,52 @@ public void setIssues(List issues) { this.issues = issues; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return JiraIntegrationMetadata + */ + @JsonAnySetter + public JiraIntegrationMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this JiraIntegrationMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,13 @@ public boolean equals(Object o) { return false; } JiraIntegrationMetadata jiraIntegrationMetadata = (JiraIntegrationMetadata) o; - return Objects.equals(this.issues, jiraIntegrationMetadata.issues); + return Objects.equals(this.issues, jiraIntegrationMetadata.issues) + && Objects.equals(this.additionalProperties, jiraIntegrationMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(issues); + return Objects.hash(issues, additionalProperties); } @Override @@ -85,6 +136,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class JiraIntegrationMetadata {\n"); sb.append(" issues: ").append(toIndentedString(issues)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadataIssuesItem.java b/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadataIssuesItem.java index 440bbe06cdc..e336403e78a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadataIssuesItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/JiraIntegrationMetadataIssuesItem.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Item in the Jira integration metadata issue array. */ @@ -153,6 +157,52 @@ public void setRedirectUrl(String redirectUrl) { this.redirectUrl = redirectUrl; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return JiraIntegrationMetadataIssuesItem + */ + @JsonAnySetter + public JiraIntegrationMetadataIssuesItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this JiraIntegrationMetadataIssuesItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -168,12 +218,15 @@ public boolean equals(Object o) { && Objects.equals(this.issueKey, jiraIntegrationMetadataIssuesItem.issueKey) && Objects.equals(this.issuetypeId, jiraIntegrationMetadataIssuesItem.issuetypeId) && Objects.equals(this.projectKey, jiraIntegrationMetadataIssuesItem.projectKey) - && Objects.equals(this.redirectUrl, jiraIntegrationMetadataIssuesItem.redirectUrl); + && Objects.equals(this.redirectUrl, jiraIntegrationMetadataIssuesItem.redirectUrl) + && Objects.equals( + this.additionalProperties, jiraIntegrationMetadataIssuesItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(account, issueKey, issuetypeId, projectKey, redirectUrl); + return Objects.hash( + account, issueKey, issuetypeId, projectKey, redirectUrl, additionalProperties); } @Override @@ -185,6 +238,9 @@ public String toString() { sb.append(" issuetypeId: ").append(toIndentedString(issuetypeId)).append("\n"); sb.append(" projectKey: ").append(toIndentedString(projectKey)).append("\n"); sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ListApplicationKeysResponse.java b/src/main/java/com/datadog/api/client/v2/model/ListApplicationKeysResponse.java index 676bdf900a0..54a4a415a63 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ListApplicationKeysResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ListApplicationKeysResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response for a list of application keys. */ @@ -96,6 +100,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListApplicationKeysResponse + */ + @JsonAnySetter + public ListApplicationKeysResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListApplicationKeysResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,14 @@ public boolean equals(Object o) { } ListApplicationKeysResponse listApplicationKeysResponse = (ListApplicationKeysResponse) o; return Objects.equals(this.data, listApplicationKeysResponse.data) - && Objects.equals(this.included, listApplicationKeysResponse.included); + && Objects.equals(this.included, listApplicationKeysResponse.included) + && Objects.equals( + this.additionalProperties, listApplicationKeysResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -121,6 +173,9 @@ public String toString() { sb.append("class ListApplicationKeysResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ListFindingsResponse.java b/src/main/java/com/datadog/api/client/v2/model/ListFindingsResponse.java index c9ec6231511..dc695b439f6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ListFindingsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ListFindingsResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The expected response schema when listing findings. */ @@ -91,6 +95,52 @@ public void setMeta(ListFindingsMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ListFindingsResponse + */ + @JsonAnySetter + public ListFindingsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ListFindingsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -102,12 +152,13 @@ public boolean equals(Object o) { } ListFindingsResponse listFindingsResponse = (ListFindingsResponse) o; return Objects.equals(this.data, listFindingsResponse.data) - && Objects.equals(this.meta, listFindingsResponse.meta); + && Objects.equals(this.meta, listFindingsResponse.meta) + && Objects.equals(this.additionalProperties, listFindingsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -116,6 +167,9 @@ public String toString() { sb.append("class ListFindingsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Log.java b/src/main/java/com/datadog/api/client/v2/model/Log.java index e222a31d628..0d06f8e86eb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Log.java +++ b/src/main/java/com/datadog/api/client/v2/model/Log.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object description of a log after being processed and stored by Datadog. */ @@ -95,6 +99,52 @@ public void setType(LogType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Log + */ + @JsonAnySetter + public Log putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Log object is equal to o. */ @Override public boolean equals(Object o) { @@ -107,12 +157,13 @@ public boolean equals(Object o) { Log log = (Log) o; return Objects.equals(this.attributes, log.attributes) && Objects.equals(this.id, log.id) - && Objects.equals(this.type, log.type); + && Objects.equals(this.type, log.type) + && Objects.equals(this.additionalProperties, log.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -122,6 +173,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogAttributes.java index 7b6660dfcc5..6ae6de3008a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -220,6 +222,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogAttributes + */ + @JsonAnySetter + public LogAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -236,12 +284,14 @@ public boolean equals(Object o) { && Objects.equals(this.service, logAttributes.service) && Objects.equals(this.status, logAttributes.status) && Objects.equals(this.tags, logAttributes.tags) - && Objects.equals(this.timestamp, logAttributes.timestamp); + && Objects.equals(this.timestamp, logAttributes.timestamp) + && Objects.equals(this.additionalProperties, logAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, host, message, service, status, tags, timestamp); + return Objects.hash( + attributes, host, message, service, status, tags, timestamp, additionalProperties); } @Override @@ -255,6 +305,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucket.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucket.java index 3e0b64eee19..0de1e6dafe3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucket.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucket.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -87,6 +89,52 @@ public void setComputes(Map computes) { this.computes = computes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateBucket + */ + @JsonAnySetter + public LogsAggregateBucket putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateBucket object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +146,13 @@ public boolean equals(Object o) { } LogsAggregateBucket logsAggregateBucket = (LogsAggregateBucket) o; return Objects.equals(this.by, logsAggregateBucket.by) - && Objects.equals(this.computes, logsAggregateBucket.computes); + && Objects.equals(this.computes, logsAggregateBucket.computes) + && Objects.equals(this.additionalProperties, logsAggregateBucket.additionalProperties); } @Override public int hashCode() { - return Objects.hash(by, computes); + return Objects.hash(by, computes, additionalProperties); } @Override @@ -112,6 +161,9 @@ public String toString() { sb.append("class LogsAggregateBucket {\n"); sb.append(" by: ").append(toIndentedString(by)).append("\n"); sb.append(" computes: ").append(toIndentedString(computes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseries.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseries.java index 58c72858489..05157013dc5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseries.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseries.java @@ -6,9 +6,13 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A timeseries array */ @@ -19,6 +23,52 @@ public class LogsAggregateBucketValueTimeseries extends ArrayList { @JsonIgnore public boolean unparsed = false; + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateBucketValueTimeseries + */ + @JsonAnySetter + public LogsAggregateBucketValueTimeseries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateBucketValueTimeseries object is equal to o. */ @Override public boolean equals(Object o) { @@ -33,7 +83,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(super.hashCode()); + return Objects.hash(additionalProperties, super.hashCode()); } @Override @@ -41,6 +91,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsAggregateBucketValueTimeseries {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseriesPoint.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseriesPoint.java index 7f9186a0942..957f33e676d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseriesPoint.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateBucketValueTimeseriesPoint.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A timeseries point */ @@ -69,6 +73,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateBucketValueTimeseriesPoint + */ + @JsonAnySetter + public LogsAggregateBucketValueTimeseriesPoint putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateBucketValueTimeseriesPoint object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,15 @@ public boolean equals(Object o) { LogsAggregateBucketValueTimeseriesPoint logsAggregateBucketValueTimeseriesPoint = (LogsAggregateBucketValueTimeseriesPoint) o; return Objects.equals(this.time, logsAggregateBucketValueTimeseriesPoint.time) - && Objects.equals(this.value, logsAggregateBucketValueTimeseriesPoint.value); + && Objects.equals(this.value, logsAggregateBucketValueTimeseriesPoint.value) + && Objects.equals( + this.additionalProperties, + logsAggregateBucketValueTimeseriesPoint.additionalProperties); } @Override public int hashCode() { - return Objects.hash(time, value); + return Objects.hash(time, value, additionalProperties); } @Override @@ -95,6 +148,9 @@ public String toString() { sb.append("class LogsAggregateBucketValueTimeseriesPoint {\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequest.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequest.java index 580bde5c4b1..1ee13333652 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object sent with the request to retrieve a list of logs from your organization. */ @@ -174,6 +178,52 @@ public void setPage(LogsAggregateRequestPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateRequest + */ + @JsonAnySetter + public LogsAggregateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -188,12 +238,13 @@ public boolean equals(Object o) { && Objects.equals(this.filter, logsAggregateRequest.filter) && Objects.equals(this.groupBy, logsAggregateRequest.groupBy) && Objects.equals(this.options, logsAggregateRequest.options) - && Objects.equals(this.page, logsAggregateRequest.page); + && Objects.equals(this.page, logsAggregateRequest.page) + && Objects.equals(this.additionalProperties, logsAggregateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy, options, page); + return Objects.hash(compute, filter, groupBy, options, page, additionalProperties); } @Override @@ -205,6 +256,9 @@ public String toString() { sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequestPage.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequestPage.java index daa755005ec..94bd3eb5026 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequestPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequestPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging settings */ @@ -42,6 +46,52 @@ public void setCursor(String cursor) { this.cursor = cursor; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateRequestPage + */ + @JsonAnySetter + public LogsAggregateRequestPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateRequestPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } LogsAggregateRequestPage logsAggregateRequestPage = (LogsAggregateRequestPage) o; - return Objects.equals(this.cursor, logsAggregateRequestPage.cursor); + return Objects.equals(this.cursor, logsAggregateRequestPage.cursor) + && Objects.equals(this.additionalProperties, logsAggregateRequestPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor); + return Objects.hash(cursor, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsAggregateRequestPage {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponse.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponse.java index fac8da2ae2d..3822afd6454 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response object for the logs aggregate API endpoint */ @@ -71,6 +75,52 @@ public void setMeta(LogsResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateResponse + */ + @JsonAnySetter + public LogsAggregateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } LogsAggregateResponse logsAggregateResponse = (LogsAggregateResponse) o; return Objects.equals(this.data, logsAggregateResponse.data) - && Objects.equals(this.meta, logsAggregateResponse.meta); + && Objects.equals(this.meta, logsAggregateResponse.meta) + && Objects.equals(this.additionalProperties, logsAggregateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class LogsAggregateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponseData.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponseData.java index 3cb8da11328..1ef4380bab9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateResponseData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The query results */ @@ -56,6 +60,52 @@ public void setBuckets(List buckets) { this.buckets = buckets; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateResponseData + */ + @JsonAnySetter + public LogsAggregateResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } LogsAggregateResponseData logsAggregateResponseData = (LogsAggregateResponseData) o; - return Objects.equals(this.buckets, logsAggregateResponseData.buckets); + return Objects.equals(this.buckets, logsAggregateResponseData.buckets) + && Objects.equals( + this.additionalProperties, logsAggregateResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(buckets); + return Objects.hash(buckets, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsAggregateResponseData {\n"); sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateSort.java b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateSort.java index 8a636387f99..8a947e7eec2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsAggregateSort.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsAggregateSort.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A sort rule */ @@ -131,6 +135,52 @@ public void setType(LogsAggregateSortType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsAggregateSort + */ + @JsonAnySetter + public LogsAggregateSort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsAggregateSort object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, logsAggregateSort.aggregation) && Objects.equals(this.metric, logsAggregateSort.metric) && Objects.equals(this.order, logsAggregateSort.order) - && Objects.equals(this.type, logsAggregateSort.type); + && Objects.equals(this.type, logsAggregateSort.type) + && Objects.equals(this.additionalProperties, logsAggregateSort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, metric, order, type); + return Objects.hash(aggregation, metric, order, type, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchive.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchive.java index 275a9ceee0e..e54df95620a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchive.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchive.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The logs archive. */ @@ -43,6 +47,52 @@ public void setData(LogsArchiveDefinition data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchive + */ + @JsonAnySetter + public LogsArchive putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchive object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsArchive logsArchive = (LogsArchive) o; - return Objects.equals(this.data, logsArchive.data); + return Objects.equals(this.data, logsArchive.data) + && Objects.equals(this.additionalProperties, logsArchive.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsArchive {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveAttributes.java index 13c2b2d6dc3..4bf8193fca6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -240,6 +244,52 @@ public void setState(LogsArchiveState state) { this.state = state; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveAttributes + */ + @JsonAnySetter + public LogsArchiveAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -257,13 +307,21 @@ public boolean equals(Object o) { && Objects.equals( this.rehydrationMaxScanSizeInGb, logsArchiveAttributes.rehydrationMaxScanSizeInGb) && Objects.equals(this.rehydrationTags, logsArchiveAttributes.rehydrationTags) - && Objects.equals(this.state, logsArchiveAttributes.state); + && Objects.equals(this.state, logsArchiveAttributes.state) + && Objects.equals(this.additionalProperties, logsArchiveAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - destination, includeTags, name, query, rehydrationMaxScanSizeInGb, rehydrationTags, state); + destination, + includeTags, + name, + query, + rehydrationMaxScanSizeInGb, + rehydrationTags, + state, + additionalProperties); } @Override @@ -279,6 +337,9 @@ public String toString() { .append("\n"); sb.append(" rehydrationTags: ").append(toIndentedString(rehydrationTags)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequest.java index 755c594e26d..e0432a2de38 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The logs archive. */ @@ -43,6 +47,52 @@ public void setData(LogsArchiveCreateRequestDefinition data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveCreateRequest + */ + @JsonAnySetter + public LogsArchiveCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsArchiveCreateRequest logsArchiveCreateRequest = (LogsArchiveCreateRequest) o; - return Objects.equals(this.data, logsArchiveCreateRequest.data); + return Objects.equals(this.data, logsArchiveCreateRequest.data) + && Objects.equals(this.additionalProperties, logsArchiveCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsArchiveCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestAttributes.java index e9cb20df8b1..a04abd23401 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -208,6 +212,52 @@ public void setRehydrationTags(List rehydrationTags) { this.rehydrationTags = rehydrationTags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveCreateRequestAttributes + */ + @JsonAnySetter + public LogsArchiveCreateRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveCreateRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -226,13 +276,21 @@ public boolean equals(Object o) { && Objects.equals( this.rehydrationMaxScanSizeInGb, logsArchiveCreateRequestAttributes.rehydrationMaxScanSizeInGb) - && Objects.equals(this.rehydrationTags, logsArchiveCreateRequestAttributes.rehydrationTags); + && Objects.equals(this.rehydrationTags, logsArchiveCreateRequestAttributes.rehydrationTags) + && Objects.equals( + this.additionalProperties, logsArchiveCreateRequestAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - destination, includeTags, name, query, rehydrationMaxScanSizeInGb, rehydrationTags); + destination, + includeTags, + name, + query, + rehydrationMaxScanSizeInGb, + rehydrationTags, + additionalProperties); } @Override @@ -247,6 +305,9 @@ public String toString() { .append(toIndentedString(rehydrationMaxScanSizeInGb)) .append("\n"); sb.append(" rehydrationTags: ").append(toIndentedString(rehydrationTags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestDefinition.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestDefinition.java index 3527be69e99..65bf7d390f2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestDefinition.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The definition of an archive. */ @@ -79,6 +83,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveCreateRequestDefinition + */ + @JsonAnySetter + public LogsArchiveCreateRequestDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveCreateRequestDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,14 @@ public boolean equals(Object o) { LogsArchiveCreateRequestDefinition logsArchiveCreateRequestDefinition = (LogsArchiveCreateRequestDefinition) o; return Objects.equals(this.attributes, logsArchiveCreateRequestDefinition.attributes) - && Objects.equals(this.type, logsArchiveCreateRequestDefinition.type); + && Objects.equals(this.type, logsArchiveCreateRequestDefinition.type) + && Objects.equals( + this.additionalProperties, logsArchiveCreateRequestDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -105,6 +157,9 @@ public String toString() { sb.append("class LogsArchiveCreateRequestDefinition {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDefinition.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDefinition.java index 0fd3822bdf5..a83781d5dea 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDefinition.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The definition of an archive. */ @@ -85,6 +89,52 @@ public String getType() { return type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveDefinition + */ + @JsonAnySetter + public LogsArchiveDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { LogsArchiveDefinition logsArchiveDefinition = (LogsArchiveDefinition) o; return Objects.equals(this.attributes, logsArchiveDefinition.attributes) && Objects.equals(this.id, logsArchiveDefinition.id) - && Objects.equals(this.type, logsArchiveDefinition.type); + && Objects.equals(this.type, logsArchiveDefinition.type) + && Objects.equals(this.additionalProperties, logsArchiveDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationAzure.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationAzure.java index f983ac7d7a3..56ba2139fe6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationAzure.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationAzure.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The Azure archive destination. */ @@ -189,6 +193,52 @@ public void setType(LogsArchiveDestinationAzureType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveDestinationAzure + */ + @JsonAnySetter + public LogsArchiveDestinationAzure putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveDestinationAzure object is equal to o. */ @Override public boolean equals(Object o) { @@ -204,12 +254,15 @@ public boolean equals(Object o) { && Objects.equals(this.path, logsArchiveDestinationAzure.path) && Objects.equals(this.region, logsArchiveDestinationAzure.region) && Objects.equals(this.storageAccount, logsArchiveDestinationAzure.storageAccount) - && Objects.equals(this.type, logsArchiveDestinationAzure.type); + && Objects.equals(this.type, logsArchiveDestinationAzure.type) + && Objects.equals( + this.additionalProperties, logsArchiveDestinationAzure.additionalProperties); } @Override public int hashCode() { - return Objects.hash(container, integration, path, region, storageAccount, type); + return Objects.hash( + container, integration, path, region, storageAccount, type, additionalProperties); } @Override @@ -222,6 +275,9 @@ public String toString() { sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" storageAccount: ").append(toIndentedString(storageAccount)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationGCS.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationGCS.java index 8f5f464dfce..6fafe022f3e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationGCS.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationGCS.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The GCS archive destination. */ @@ -138,6 +142,52 @@ public void setType(LogsArchiveDestinationGCSType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveDestinationGCS + */ + @JsonAnySetter + public LogsArchiveDestinationGCS putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveDestinationGCS object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,14 @@ public boolean equals(Object o) { return Objects.equals(this.bucket, logsArchiveDestinationGcs.bucket) && Objects.equals(this.integration, logsArchiveDestinationGcs.integration) && Objects.equals(this.path, logsArchiveDestinationGcs.path) - && Objects.equals(this.type, logsArchiveDestinationGcs.type); + && Objects.equals(this.type, logsArchiveDestinationGcs.type) + && Objects.equals( + this.additionalProperties, logsArchiveDestinationGcs.additionalProperties); } @Override public int hashCode() { - return Objects.hash(bucket, integration, path, type); + return Objects.hash(bucket, integration, path, type, additionalProperties); } @Override @@ -167,6 +219,9 @@ public String toString() { sb.append(" integration: ").append(toIndentedString(integration)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationS3.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationS3.java index 9051913f59a..0ee6c9d2a51 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationS3.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationS3.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The S3 archive destination. */ @@ -138,6 +142,52 @@ public void setType(LogsArchiveDestinationS3Type type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveDestinationS3 + */ + @JsonAnySetter + public LogsArchiveDestinationS3 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveDestinationS3 object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,13 @@ public boolean equals(Object o) { return Objects.equals(this.bucket, logsArchiveDestinationS3.bucket) && Objects.equals(this.integration, logsArchiveDestinationS3.integration) && Objects.equals(this.path, logsArchiveDestinationS3.path) - && Objects.equals(this.type, logsArchiveDestinationS3.type); + && Objects.equals(this.type, logsArchiveDestinationS3.type) + && Objects.equals(this.additionalProperties, logsArchiveDestinationS3.additionalProperties); } @Override public int hashCode() { - return Objects.hash(bucket, integration, path, type); + return Objects.hash(bucket, integration, path, type, additionalProperties); } @Override @@ -167,6 +218,9 @@ public String toString() { sb.append(" integration: ").append(toIndentedString(integration)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationAzure.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationAzure.java index e969e801448..7f1f01eeb80 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationAzure.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationAzure.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The Azure archive's integration destination. */ @@ -78,6 +82,52 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveIntegrationAzure + */ + @JsonAnySetter + public LogsArchiveIntegrationAzure putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveIntegrationAzure object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { } LogsArchiveIntegrationAzure logsArchiveIntegrationAzure = (LogsArchiveIntegrationAzure) o; return Objects.equals(this.clientId, logsArchiveIntegrationAzure.clientId) - && Objects.equals(this.tenantId, logsArchiveIntegrationAzure.tenantId); + && Objects.equals(this.tenantId, logsArchiveIntegrationAzure.tenantId) + && Objects.equals( + this.additionalProperties, logsArchiveIntegrationAzure.additionalProperties); } @Override public int hashCode() { - return Objects.hash(clientId, tenantId); + return Objects.hash(clientId, tenantId, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class LogsArchiveIntegrationAzure {\n"); sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationGCS.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationGCS.java index 9661b7d5701..c5d27a99b9b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationGCS.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationGCS.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The GCS archive's integration destination. */ @@ -78,6 +82,52 @@ public void setProjectId(String projectId) { this.projectId = projectId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveIntegrationGCS + */ + @JsonAnySetter + public LogsArchiveIntegrationGCS putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveIntegrationGCS object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { } LogsArchiveIntegrationGCS logsArchiveIntegrationGcs = (LogsArchiveIntegrationGCS) o; return Objects.equals(this.clientEmail, logsArchiveIntegrationGcs.clientEmail) - && Objects.equals(this.projectId, logsArchiveIntegrationGcs.projectId); + && Objects.equals(this.projectId, logsArchiveIntegrationGcs.projectId) + && Objects.equals( + this.additionalProperties, logsArchiveIntegrationGcs.additionalProperties); } @Override public int hashCode() { - return Objects.hash(clientEmail, projectId); + return Objects.hash(clientEmail, projectId, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class LogsArchiveIntegrationGCS {\n"); sb.append(" clientEmail: ").append(toIndentedString(clientEmail)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationS3.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationS3.java index d83a1061d76..ed110696dd6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationS3.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveIntegrationS3.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The S3 Archive's integration destination. */ @@ -78,6 +82,52 @@ public void setRoleName(String roleName) { this.roleName = roleName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveIntegrationS3 + */ + @JsonAnySetter + public LogsArchiveIntegrationS3 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveIntegrationS3 object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { } LogsArchiveIntegrationS3 logsArchiveIntegrationS3 = (LogsArchiveIntegrationS3) o; return Objects.equals(this.accountId, logsArchiveIntegrationS3.accountId) - && Objects.equals(this.roleName, logsArchiveIntegrationS3.roleName); + && Objects.equals(this.roleName, logsArchiveIntegrationS3.roleName) + && Objects.equals(this.additionalProperties, logsArchiveIntegrationS3.additionalProperties); } @Override public int hashCode() { - return Objects.hash(accountId, roleName); + return Objects.hash(accountId, roleName, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append("class LogsArchiveIntegrationS3 {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrder.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrder.java index 44db29a2f59..f09549c5178 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrder.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrder.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A ordered list of archive IDs. */ @@ -43,6 +47,52 @@ public void setData(LogsArchiveOrderDefinition data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveOrder + */ + @JsonAnySetter + public LogsArchiveOrder putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveOrder object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsArchiveOrder logsArchiveOrder = (LogsArchiveOrder) o; - return Objects.equals(this.data, logsArchiveOrder.data); + return Objects.equals(this.data, logsArchiveOrder.data) + && Objects.equals(this.additionalProperties, logsArchiveOrder.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsArchiveOrder {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderAttributes.java index d946fd2c326..63cfd608a59 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The attributes associated with the archive order. */ @@ -58,6 +62,52 @@ public void setArchiveIds(List archiveIds) { this.archiveIds = archiveIds; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveOrderAttributes + */ + @JsonAnySetter + public LogsArchiveOrderAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveOrderAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { return false; } LogsArchiveOrderAttributes logsArchiveOrderAttributes = (LogsArchiveOrderAttributes) o; - return Objects.equals(this.archiveIds, logsArchiveOrderAttributes.archiveIds); + return Objects.equals(this.archiveIds, logsArchiveOrderAttributes.archiveIds) + && Objects.equals( + this.additionalProperties, logsArchiveOrderAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(archiveIds); + return Objects.hash(archiveIds, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsArchiveOrderAttributes {\n"); sb.append(" archiveIds: ").append(toIndentedString(archiveIds)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderDefinition.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderDefinition.java index eeba42ae2bc..d24f7306469 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderDefinition.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchiveOrderDefinition.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The definition of an archive order. */ @@ -87,6 +91,52 @@ public void setType(LogsArchiveOrderDefinitionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchiveOrderDefinition + */ + @JsonAnySetter + public LogsArchiveOrderDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchiveOrderDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,14 @@ public boolean equals(Object o) { } LogsArchiveOrderDefinition logsArchiveOrderDefinition = (LogsArchiveOrderDefinition) o; return Objects.equals(this.attributes, logsArchiveOrderDefinition.attributes) - && Objects.equals(this.type, logsArchiveOrderDefinition.type); + && Objects.equals(this.type, logsArchiveOrderDefinition.type) + && Objects.equals( + this.additionalProperties, logsArchiveOrderDefinition.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -112,6 +164,9 @@ public String toString() { sb.append("class LogsArchiveOrderDefinition {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsArchives.java b/src/main/java/com/datadog/api/client/v2/model/LogsArchives.java index ddbc1ec2b26..08f24537c21 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsArchives.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsArchives.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The available archives. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsArchives + */ + @JsonAnySetter + public LogsArchives putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsArchives object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } LogsArchives logsArchives = (LogsArchives) o; - return Objects.equals(this.data, logsArchives.data); + return Objects.equals(this.data, logsArchives.data) + && Objects.equals(this.additionalProperties, logsArchives.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsArchives {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsCompute.java b/src/main/java/com/datadog/api/client/v2/model/LogsCompute.java index 54e418a0c0f..2b7df0ad033 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A compute rule to compute metrics or timeseries */ @@ -137,6 +141,52 @@ public void setType(LogsComputeType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsCompute + */ + @JsonAnySetter + public LogsCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -150,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, logsCompute.aggregation) && Objects.equals(this.interval, logsCompute.interval) && Objects.equals(this.metric, logsCompute.metric) - && Objects.equals(this.type, logsCompute.type); + && Objects.equals(this.type, logsCompute.type) + && Objects.equals(this.additionalProperties, logsCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, interval, metric, type); + return Objects.hash(aggregation, interval, metric, type, additionalProperties); } @Override @@ -166,6 +217,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/LogsGroupBy.java index 0487606e671..a695b8bd1b5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group by rule */ @@ -181,6 +185,52 @@ public void setTotal(LogsGroupByTotal total) { this.total = total; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsGroupBy + */ + @JsonAnySetter + public LogsGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -196,12 +246,13 @@ public boolean equals(Object o) { && Objects.equals(this.limit, logsGroupBy.limit) && Objects.equals(this.missing, logsGroupBy.missing) && Objects.equals(this.sort, logsGroupBy.sort) - && Objects.equals(this.total, logsGroupBy.total); + && Objects.equals(this.total, logsGroupBy.total) + && Objects.equals(this.additionalProperties, logsGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, histogram, limit, missing, sort, total); + return Objects.hash(facet, histogram, limit, missing, sort, total, additionalProperties); } @Override @@ -214,6 +265,9 @@ public String toString() { sb.append(" missing: ").append(toIndentedString(missing)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsGroupByHistogram.java b/src/main/java/com/datadog/api/client/v2/model/LogsGroupByHistogram.java index f7121962809..62565116a40 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsGroupByHistogram.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsGroupByHistogram.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -109,6 +113,52 @@ public void setMin(Double min) { this.min = min; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsGroupByHistogram + */ + @JsonAnySetter + public LogsGroupByHistogram putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsGroupByHistogram object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { LogsGroupByHistogram logsGroupByHistogram = (LogsGroupByHistogram) o; return Objects.equals(this.interval, logsGroupByHistogram.interval) && Objects.equals(this.max, logsGroupByHistogram.max) - && Objects.equals(this.min, logsGroupByHistogram.min); + && Objects.equals(this.min, logsGroupByHistogram.min) + && Objects.equals(this.additionalProperties, logsGroupByHistogram.additionalProperties); } @Override public int hashCode() { - return Objects.hash(interval, max, min); + return Objects.hash(interval, max, min, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsListRequest.java b/src/main/java/com/datadog/api/client/v2/model/LogsListRequest.java index f7b12699377..a82eb4a6db8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsListRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsListRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The request for a logs list. */ @@ -127,6 +131,52 @@ public void setSort(LogsSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListRequest + */ + @JsonAnySetter + public LogsListRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,13 @@ public boolean equals(Object o) { return Objects.equals(this.filter, logsListRequest.filter) && Objects.equals(this.options, logsListRequest.options) && Objects.equals(this.page, logsListRequest.page) - && Objects.equals(this.sort, logsListRequest.sort); + && Objects.equals(this.sort, logsListRequest.sort) + && Objects.equals(this.additionalProperties, logsListRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, options, page, sort); + return Objects.hash(filter, options, page, sort, additionalProperties); } @Override @@ -156,6 +207,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsListRequestPage.java b/src/main/java/com/datadog/api/client/v2/model/LogsListRequestPage.java index 57841c3dabc..07201d4b183 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsListRequestPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsListRequestPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes for listing logs. */ @@ -69,6 +73,52 @@ public void setLimit(Integer limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListRequestPage + */ + @JsonAnySetter + public LogsListRequestPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListRequestPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,13 @@ public boolean equals(Object o) { } LogsListRequestPage logsListRequestPage = (LogsListRequestPage) o; return Objects.equals(this.cursor, logsListRequestPage.cursor) - && Objects.equals(this.limit, logsListRequestPage.limit); + && Objects.equals(this.limit, logsListRequestPage.limit) + && Objects.equals(this.additionalProperties, logsListRequestPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor, limit); + return Objects.hash(cursor, limit, additionalProperties); } @Override @@ -94,6 +145,9 @@ public String toString() { sb.append("class LogsListRequestPage {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsListResponse.java b/src/main/java/com/datadog/api/client/v2/model/LogsListResponse.java index 2b096251979..22abc546809 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object with all logs matching the request and pagination information. */ @@ -110,6 +114,52 @@ public void setMeta(LogsResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListResponse + */ + @JsonAnySetter + public LogsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { LogsListResponse logsListResponse = (LogsListResponse) o; return Objects.equals(this.data, logsListResponse.data) && Objects.equals(this.links, logsListResponse.links) - && Objects.equals(this.meta, logsListResponse.meta); + && Objects.equals(this.meta, logsListResponse.meta) + && Objects.equals(this.additionalProperties, logsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsListResponseLinks.java b/src/main/java/com/datadog/api/client/v2/model/LogsListResponseLinks.java index 11668b795e1..9f4b9cad41c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsListResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsListResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Links attributes. */ @@ -43,6 +47,52 @@ public void setNext(String next) { this.next = next; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsListResponseLinks + */ + @JsonAnySetter + public LogsListResponseLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsListResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsListResponseLinks logsListResponseLinks = (LogsListResponseLinks) o; - return Objects.equals(this.next, logsListResponseLinks.next); + return Objects.equals(this.next, logsListResponseLinks.next) + && Objects.equals(this.additionalProperties, logsListResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(next); + return Objects.hash(next, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsListResponseLinks {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCompute.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCompute.java index d781cc7370b..3c146c0ebde 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The compute rule to compute the log-based metric. */ @@ -110,6 +114,52 @@ public void setPath(String path) { this.path = path; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricCompute + */ + @JsonAnySetter + public LogsMetricCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { LogsMetricCompute logsMetricCompute = (LogsMetricCompute) o; return Objects.equals(this.aggregationType, logsMetricCompute.aggregationType) && Objects.equals(this.includePercentiles, logsMetricCompute.includePercentiles) - && Objects.equals(this.path, logsMetricCompute.path); + && Objects.equals(this.path, logsMetricCompute.path) + && Objects.equals(this.additionalProperties, logsMetricCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregationType, includePercentiles, path); + return Objects.hash(aggregationType, includePercentiles, path, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateAttributes.java index 22d5c028de5..3442d74dad1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing the Datadog log-based metric to create. */ @@ -119,6 +123,52 @@ public void setGroupBy(List groupBy) { this.groupBy = groupBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricCreateAttributes + */ + @JsonAnySetter + public LogsMetricCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -131,12 +181,14 @@ public boolean equals(Object o) { LogsMetricCreateAttributes logsMetricCreateAttributes = (LogsMetricCreateAttributes) o; return Objects.equals(this.compute, logsMetricCreateAttributes.compute) && Objects.equals(this.filter, logsMetricCreateAttributes.filter) - && Objects.equals(this.groupBy, logsMetricCreateAttributes.groupBy); + && Objects.equals(this.groupBy, logsMetricCreateAttributes.groupBy) + && Objects.equals( + this.additionalProperties, logsMetricCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy); + return Objects.hash(compute, filter, groupBy, additionalProperties); } @Override @@ -146,6 +198,9 @@ public String toString() { sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateData.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateData.java index 50f29688189..daa7734ca45 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new log-based metric properties. */ @@ -112,6 +116,52 @@ public void setType(LogsMetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricCreateData + */ + @JsonAnySetter + public LogsMetricCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { LogsMetricCreateData logsMetricCreateData = (LogsMetricCreateData) o; return Objects.equals(this.attributes, logsMetricCreateData.attributes) && Objects.equals(this.id, logsMetricCreateData.id) - && Objects.equals(this.type, logsMetricCreateData.type); + && Objects.equals(this.type, logsMetricCreateData.type) + && Objects.equals(this.additionalProperties, logsMetricCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateRequest.java index 2ceb40d2c95..92221718844 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new log-based metric body. */ @@ -52,6 +56,52 @@ public void setData(LogsMetricCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricCreateRequest + */ + @JsonAnySetter + public LogsMetricCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } LogsMetricCreateRequest logsMetricCreateRequest = (LogsMetricCreateRequest) o; - return Objects.equals(this.data, logsMetricCreateRequest.data); + return Objects.equals(this.data, logsMetricCreateRequest.data) + && Objects.equals(this.additionalProperties, logsMetricCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricFilter.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricFilter.java index a0baf938dec..7e39135ce6f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The log-based metric filter. Logs matching this filter will be aggregated in this metric. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricFilter + */ + @JsonAnySetter + public LogsMetricFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } LogsMetricFilter logsMetricFilter = (LogsMetricFilter) o; - return Objects.equals(this.query, logsMetricFilter.query); + return Objects.equals(this.query, logsMetricFilter.query) + && Objects.equals(this.additionalProperties, logsMetricFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricGroupBy.java index b23589da009..3295a02cd53 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group by rule. */ @@ -74,6 +78,52 @@ public void setTagName(String tagName) { this.tagName = tagName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricGroupBy + */ + @JsonAnySetter + public LogsMetricGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,13 @@ public boolean equals(Object o) { } LogsMetricGroupBy logsMetricGroupBy = (LogsMetricGroupBy) o; return Objects.equals(this.path, logsMetricGroupBy.path) - && Objects.equals(this.tagName, logsMetricGroupBy.tagName); + && Objects.equals(this.tagName, logsMetricGroupBy.tagName) + && Objects.equals(this.additionalProperties, logsMetricGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(path, tagName); + return Objects.hash(path, tagName, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append("class LogsMetricGroupBy {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponse.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponse.java index 489ef8a80e7..1074a9a1364 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The log-based metric object. */ @@ -43,6 +47,52 @@ public void setData(LogsMetricResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricResponse + */ + @JsonAnySetter + public LogsMetricResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsMetricResponse logsMetricResponse = (LogsMetricResponse) o; - return Objects.equals(this.data, logsMetricResponse.data); + return Objects.equals(this.data, logsMetricResponse.data) + && Objects.equals(this.additionalProperties, logsMetricResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseAttributes.java index 90cbd8780db..7d0b1a074d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a Datadog log-based metric. */ @@ -110,6 +114,52 @@ public void setGroupBy(List groupBy) { this.groupBy = groupBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricResponseAttributes + */ + @JsonAnySetter + public LogsMetricResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { LogsMetricResponseAttributes logsMetricResponseAttributes = (LogsMetricResponseAttributes) o; return Objects.equals(this.compute, logsMetricResponseAttributes.compute) && Objects.equals(this.filter, logsMetricResponseAttributes.filter) - && Objects.equals(this.groupBy, logsMetricResponseAttributes.groupBy); + && Objects.equals(this.groupBy, logsMetricResponseAttributes.groupBy) + && Objects.equals( + this.additionalProperties, logsMetricResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy); + return Objects.hash(compute, filter, groupBy, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseCompute.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseCompute.java index 1125da7c1bb..bba54f58fc0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseCompute.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The compute rule to compute the log-based metric. */ @@ -101,6 +105,52 @@ public void setPath(String path) { this.path = path; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricResponseCompute + */ + @JsonAnySetter + public LogsMetricResponseCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricResponseCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,14 @@ public boolean equals(Object o) { LogsMetricResponseCompute logsMetricResponseCompute = (LogsMetricResponseCompute) o; return Objects.equals(this.aggregationType, logsMetricResponseCompute.aggregationType) && Objects.equals(this.includePercentiles, logsMetricResponseCompute.includePercentiles) - && Objects.equals(this.path, logsMetricResponseCompute.path); + && Objects.equals(this.path, logsMetricResponseCompute.path) + && Objects.equals( + this.additionalProperties, logsMetricResponseCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregationType, includePercentiles, path); + return Objects.hash(aggregationType, includePercentiles, path, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseData.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseData.java index 30c83c24f62..b5667cc6c8f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The log-based metric properties. */ @@ -99,6 +103,52 @@ public void setType(LogsMetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricResponseData + */ + @JsonAnySetter + public LogsMetricResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { LogsMetricResponseData logsMetricResponseData = (LogsMetricResponseData) o; return Objects.equals(this.attributes, logsMetricResponseData.attributes) && Objects.equals(this.id, logsMetricResponseData.id) - && Objects.equals(this.type, logsMetricResponseData.type); + && Objects.equals(this.type, logsMetricResponseData.type) + && Objects.equals(this.additionalProperties, logsMetricResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseFilter.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseFilter.java index f3c9998561c..9e94d5559de 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The log-based metric filter. Logs matching this filter will be aggregated in this metric. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricResponseFilter + */ + @JsonAnySetter + public LogsMetricResponseFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricResponseFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } LogsMetricResponseFilter logsMetricResponseFilter = (LogsMetricResponseFilter) o; - return Objects.equals(this.query, logsMetricResponseFilter.query); + return Objects.equals(this.query, logsMetricResponseFilter.query) + && Objects.equals(this.additionalProperties, logsMetricResponseFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricResponseFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseGroupBy.java index 16e0d8dbf1b..12c35651c6b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricResponseGroupBy.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group by rule. */ @@ -70,6 +74,52 @@ public void setTagName(String tagName) { this.tagName = tagName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricResponseGroupBy + */ + @JsonAnySetter + public LogsMetricResponseGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricResponseGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { } LogsMetricResponseGroupBy logsMetricResponseGroupBy = (LogsMetricResponseGroupBy) o; return Objects.equals(this.path, logsMetricResponseGroupBy.path) - && Objects.equals(this.tagName, logsMetricResponseGroupBy.tagName); + && Objects.equals(this.tagName, logsMetricResponseGroupBy.tagName) + && Objects.equals( + this.additionalProperties, logsMetricResponseGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(path, tagName); + return Objects.hash(path, tagName, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class LogsMetricResponseGroupBy {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateAttributes.java index d42744625f7..2b148f1b155 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The log-based metric properties that will be updated. */ @@ -110,6 +114,52 @@ public void setGroupBy(List groupBy) { this.groupBy = groupBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricUpdateAttributes + */ + @JsonAnySetter + public LogsMetricUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { LogsMetricUpdateAttributes logsMetricUpdateAttributes = (LogsMetricUpdateAttributes) o; return Objects.equals(this.compute, logsMetricUpdateAttributes.compute) && Objects.equals(this.filter, logsMetricUpdateAttributes.filter) - && Objects.equals(this.groupBy, logsMetricUpdateAttributes.groupBy); + && Objects.equals(this.groupBy, logsMetricUpdateAttributes.groupBy) + && Objects.equals( + this.additionalProperties, logsMetricUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy); + return Objects.hash(compute, filter, groupBy, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateCompute.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateCompute.java index f857e237267..df1a63c655c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateCompute.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The compute rule to compute the log-based metric. */ @@ -43,6 +47,52 @@ public void setIncludePercentiles(Boolean includePercentiles) { this.includePercentiles = includePercentiles; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricUpdateCompute + */ + @JsonAnySetter + public LogsMetricUpdateCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricUpdateCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsMetricUpdateCompute logsMetricUpdateCompute = (LogsMetricUpdateCompute) o; - return Objects.equals(this.includePercentiles, logsMetricUpdateCompute.includePercentiles); + return Objects.equals(this.includePercentiles, logsMetricUpdateCompute.includePercentiles) + && Objects.equals(this.additionalProperties, logsMetricUpdateCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(includePercentiles); + return Objects.hash(includePercentiles, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricUpdateCompute {\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateData.java index 6a451c1545b..86a7fa13c38 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new log-based metric properties. */ @@ -86,6 +90,52 @@ public void setType(LogsMetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricUpdateData + */ + @JsonAnySetter + public LogsMetricUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } LogsMetricUpdateData logsMetricUpdateData = (LogsMetricUpdateData) o; return Objects.equals(this.attributes, logsMetricUpdateData.attributes) - && Objects.equals(this.type, logsMetricUpdateData.type); + && Objects.equals(this.type, logsMetricUpdateData.type) + && Objects.equals(this.additionalProperties, logsMetricUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class LogsMetricUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateRequest.java index cebf36d6370..5a2a3be2204 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new log-based metric body. */ @@ -52,6 +56,52 @@ public void setData(LogsMetricUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricUpdateRequest + */ + @JsonAnySetter + public LogsMetricUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } LogsMetricUpdateRequest logsMetricUpdateRequest = (LogsMetricUpdateRequest) o; - return Objects.equals(this.data, logsMetricUpdateRequest.data); + return Objects.equals(this.data, logsMetricUpdateRequest.data) + && Objects.equals(this.additionalProperties, logsMetricUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsMetricsResponse.java b/src/main/java/com/datadog/api/client/v2/model/LogsMetricsResponse.java index a70b202a9d9..e731049a0d3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsMetricsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsMetricsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** All the available log-based metric objects. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsMetricsResponse + */ + @JsonAnySetter + public LogsMetricsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsMetricsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } LogsMetricsResponse logsMetricsResponse = (LogsMetricsResponse) o; - return Objects.equals(this.data, logsMetricsResponse.data); + return Objects.equals(this.data, logsMetricsResponse.data) + && Objects.equals(this.additionalProperties, logsMetricsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsMetricsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsQueryFilter.java b/src/main/java/com/datadog/api/client/v2/model/LogsQueryFilter.java index 1a189f78cdb..89661d9b2ad 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsQueryFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsQueryFilter.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The search and filter query settings */ @@ -161,6 +165,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsQueryFilter + */ + @JsonAnySetter + public LogsQueryFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsQueryFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -175,12 +225,13 @@ public boolean equals(Object o) { && Objects.equals(this.indexes, logsQueryFilter.indexes) && Objects.equals(this.query, logsQueryFilter.query) && Objects.equals(this.storageTier, logsQueryFilter.storageTier) - && Objects.equals(this.to, logsQueryFilter.to); + && Objects.equals(this.to, logsQueryFilter.to) + && Objects.equals(this.additionalProperties, logsQueryFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, indexes, query, storageTier, to); + return Objects.hash(from, indexes, query, storageTier, to, additionalProperties); } @Override @@ -192,6 +243,9 @@ public String toString() { sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" storageTier: ").append(toIndentedString(storageTier)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsQueryOptions.java b/src/main/java/com/datadog/api/client/v2/model/LogsQueryOptions.java index 36ffe739abd..f93bdf0aedb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsQueryOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsQueryOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -73,6 +77,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsQueryOptions + */ + @JsonAnySetter + public LogsQueryOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsQueryOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } LogsQueryOptions logsQueryOptions = (LogsQueryOptions) o; return Objects.equals(this.timeOffset, logsQueryOptions.timeOffset) - && Objects.equals(this.timezone, logsQueryOptions.timezone); + && Objects.equals(this.timezone, logsQueryOptions.timezone) + && Objects.equals(this.additionalProperties, logsQueryOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timeOffset, timezone); + return Objects.hash(timeOffset, timezone, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class LogsQueryOptions {\n"); sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadata.java b/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadata.java index 57a7b6a087a..df2adae2158 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request */ @@ -164,6 +168,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsResponseMetadata + */ + @JsonAnySetter + public LogsResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -178,12 +228,13 @@ public boolean equals(Object o) { && Objects.equals(this.page, logsResponseMetadata.page) && Objects.equals(this.requestId, logsResponseMetadata.requestId) && Objects.equals(this.status, logsResponseMetadata.status) - && Objects.equals(this.warnings, logsResponseMetadata.warnings); + && Objects.equals(this.warnings, logsResponseMetadata.warnings) + && Objects.equals(this.additionalProperties, logsResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(elapsed, page, requestId, status, warnings); + return Objects.hash(elapsed, page, requestId, status, warnings, additionalProperties); } @Override @@ -195,6 +246,9 @@ public String toString() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadataPage.java b/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadataPage.java index 433f3040bcf..68fe33af426 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadataPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsResponseMetadataPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes. */ @@ -43,6 +47,52 @@ public void setAfter(String after) { this.after = after; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsResponseMetadataPage + */ + @JsonAnySetter + public LogsResponseMetadataPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsResponseMetadataPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } LogsResponseMetadataPage logsResponseMetadataPage = (LogsResponseMetadataPage) o; - return Objects.equals(this.after, logsResponseMetadataPage.after); + return Objects.equals(this.after, logsResponseMetadataPage.after) + && Objects.equals(this.additionalProperties, logsResponseMetadataPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after); + return Objects.hash(after, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsResponseMetadataPage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/LogsWarning.java b/src/main/java/com/datadog/api/client/v2/model/LogsWarning.java index 6a87343eef1..6918895f788 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LogsWarning.java +++ b/src/main/java/com/datadog/api/client/v2/model/LogsWarning.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A warning message indicating something that went wrong with the query */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return LogsWarning + */ + @JsonAnySetter + public LogsWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this LogsWarning object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { LogsWarning logsWarning = (LogsWarning) o; return Objects.equals(this.code, logsWarning.code) && Objects.equals(this.detail, logsWarning.detail) - && Objects.equals(this.title, logsWarning.title); + && Objects.equals(this.title, logsWarning.title) + && Objects.equals(this.additionalProperties, logsWarning.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, detail, title); + return Objects.hash(code, detail, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Metric.java b/src/main/java/com/datadog/api/client/v2/model/Metric.java index 137c9a13bd4..d3504d2c9c5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Metric.java +++ b/src/main/java/com/datadog/api/client/v2/model/Metric.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric tag configuration. */ @@ -70,6 +74,52 @@ public void setType(MetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Metric + */ + @JsonAnySetter + public Metric putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Metric object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { return false; } Metric metric = (Metric) o; - return Objects.equals(this.id, metric.id) && Objects.equals(this.type, metric.type); + return Objects.equals(this.id, metric.id) + && Objects.equals(this.type, metric.type) + && Objects.equals(this.additionalProperties, metric.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class Metric {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricAllTags.java b/src/main/java/com/datadog/api/client/v2/model/MetricAllTags.java index cbad539e32e..a945006d2a6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricAllTags.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricAllTags.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric's indexed tags. */ @@ -99,6 +103,52 @@ public void setType(MetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricAllTags + */ + @JsonAnySetter + public MetricAllTags putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricAllTags object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { MetricAllTags metricAllTags = (MetricAllTags) o; return Objects.equals(this.attributes, metricAllTags.attributes) && Objects.equals(this.id, metricAllTags.id) - && Objects.equals(this.type, metricAllTags.type); + && Objects.equals(this.type, metricAllTags.type) + && Objects.equals(this.additionalProperties, metricAllTags.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsAttributes.java index e2416c5cb34..1b018e01ea4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric's tags. */ @@ -52,6 +56,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricAllTagsAttributes + */ + @JsonAnySetter + public MetricAllTagsAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricAllTagsAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } MetricAllTagsAttributes metricAllTagsAttributes = (MetricAllTagsAttributes) o; - return Objects.equals(this.tags, metricAllTagsAttributes.tags); + return Objects.equals(this.tags, metricAllTagsAttributes.tags) + && Objects.equals(this.additionalProperties, metricAllTagsAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tags); + return Objects.hash(tags, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricAllTagsAttributes {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsResponse.java index d9b34248819..3b10160c9d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricAllTagsResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object that includes a single metric's indexed tags. */ @@ -43,6 +47,52 @@ public void setData(MetricAllTags data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricAllTagsResponse + */ + @JsonAnySetter + public MetricAllTagsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricAllTagsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } MetricAllTagsResponse metricAllTagsResponse = (MetricAllTagsResponse) o; - return Objects.equals(this.data, metricAllTagsResponse.data); + return Objects.equals(this.data, metricAllTagsResponse.data) + && Objects.equals(this.additionalProperties, metricAllTagsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricAllTagsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java index 28a86cc544f..ff62f15b211 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object to bulk configure tags for metrics matching the given prefix. */ @@ -109,6 +113,52 @@ public void setType(MetricBulkConfigureTagsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigCreate + */ + @JsonAnySetter + public MetricBulkTagConfigCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,14 @@ public boolean equals(Object o) { MetricBulkTagConfigCreate metricBulkTagConfigCreate = (MetricBulkTagConfigCreate) o; return Objects.equals(this.attributes, metricBulkTagConfigCreate.attributes) && Objects.equals(this.id, metricBulkTagConfigCreate.id) - && Objects.equals(this.type, metricBulkTagConfigCreate.type); + && Objects.equals(this.type, metricBulkTagConfigCreate.type) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +188,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java index b7220599a43..562bcaaf81a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Optional parameters for bulk creating metric tag configurations. */ @@ -87,6 +91,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigCreateAttributes + */ + @JsonAnySetter + public MetricBulkTagConfigCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +149,14 @@ public boolean equals(Object o) { MetricBulkTagConfigCreateAttributes metricBulkTagConfigCreateAttributes = (MetricBulkTagConfigCreateAttributes) o; return Objects.equals(this.emails, metricBulkTagConfigCreateAttributes.emails) - && Objects.equals(this.tags, metricBulkTagConfigCreateAttributes.tags); + && Objects.equals(this.tags, metricBulkTagConfigCreateAttributes.tags) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(emails, tags); + return Objects.hash(emails, tags, additionalProperties); } @Override @@ -113,6 +165,9 @@ public String toString() { sb.append("class MetricBulkTagConfigCreateAttributes {\n"); sb.append(" emails: ").append(toIndentedString(emails)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java index fe67b669f68..e1f2ca7d721 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Wrapper object for a single bulk tag configuration request. */ @@ -52,6 +56,52 @@ public void setData(MetricBulkTagConfigCreate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigCreateRequest + */ + @JsonAnySetter + public MetricBulkTagConfigCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } MetricBulkTagConfigCreateRequest metricBulkTagConfigCreateRequest = (MetricBulkTagConfigCreateRequest) o; - return Objects.equals(this.data, metricBulkTagConfigCreateRequest.data); + return Objects.equals(this.data, metricBulkTagConfigCreateRequest.data) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricBulkTagConfigCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java index 38748dca90e..1581fe1cfc6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object to bulk delete all tag configurations for metrics matching the given prefix. */ @@ -109,6 +113,52 @@ public void setType(MetricBulkConfigureTagsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigDelete + */ + @JsonAnySetter + public MetricBulkTagConfigDelete putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigDelete object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,14 @@ public boolean equals(Object o) { MetricBulkTagConfigDelete metricBulkTagConfigDelete = (MetricBulkTagConfigDelete) o; return Objects.equals(this.attributes, metricBulkTagConfigDelete.attributes) && Objects.equals(this.id, metricBulkTagConfigDelete.id) - && Objects.equals(this.type, metricBulkTagConfigDelete.type); + && Objects.equals(this.type, metricBulkTagConfigDelete.type) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigDelete.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +188,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java index 711ea669a48..14d195b5504 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Optional parameters for bulk deleting metric tag configurations. */ @@ -52,6 +56,52 @@ public void setEmails(List emails) { this.emails = emails; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigDeleteAttributes + */ + @JsonAnySetter + public MetricBulkTagConfigDeleteAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigDeleteAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } MetricBulkTagConfigDeleteAttributes metricBulkTagConfigDeleteAttributes = (MetricBulkTagConfigDeleteAttributes) o; - return Objects.equals(this.emails, metricBulkTagConfigDeleteAttributes.emails); + return Objects.equals(this.emails, metricBulkTagConfigDeleteAttributes.emails) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigDeleteAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(emails); + return Objects.hash(emails, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricBulkTagConfigDeleteAttributes {\n"); sb.append(" emails: ").append(toIndentedString(emails)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java index 759eefdb93b..e8bd9dc5a25 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Wrapper object for a single bulk tag deletion request. */ @@ -52,6 +56,52 @@ public void setData(MetricBulkTagConfigDelete data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigDeleteRequest + */ + @JsonAnySetter + public MetricBulkTagConfigDeleteRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigDeleteRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } MetricBulkTagConfigDeleteRequest metricBulkTagConfigDeleteRequest = (MetricBulkTagConfigDeleteRequest) o; - return Objects.equals(this.data, metricBulkTagConfigDeleteRequest.data); + return Objects.equals(this.data, metricBulkTagConfigDeleteRequest.data) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigDeleteRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricBulkTagConfigDeleteRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java index ad8dc308b59..48ae170ecca 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Wrapper for a single bulk tag configuration status response. */ @@ -44,6 +48,52 @@ public void setData(MetricBulkTagConfigStatus data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigResponse + */ + @JsonAnySetter + public MetricBulkTagConfigResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { return false; } MetricBulkTagConfigResponse metricBulkTagConfigResponse = (MetricBulkTagConfigResponse) o; - return Objects.equals(this.data, metricBulkTagConfigResponse.data); + return Objects.equals(this.data, metricBulkTagConfigResponse.data) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricBulkTagConfigResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java index 373237f0cd3..a6f1cefea61 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -112,6 +116,52 @@ public void setType(MetricBulkConfigureTagsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigStatus + */ + @JsonAnySetter + public MetricBulkTagConfigStatus putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigStatus object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { MetricBulkTagConfigStatus metricBulkTagConfigStatus = (MetricBulkTagConfigStatus) o; return Objects.equals(this.attributes, metricBulkTagConfigStatus.attributes) && Objects.equals(this.id, metricBulkTagConfigStatus.id) - && Objects.equals(this.type, metricBulkTagConfigStatus.type); + && Objects.equals(this.type, metricBulkTagConfigStatus.type) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigStatus.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java index ba44e7ff2e4..0725c465704 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Optional attributes for the status of a bulk tag configuration request. */ @@ -112,6 +116,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricBulkTagConfigStatusAttributes + */ + @JsonAnySetter + public MetricBulkTagConfigStatusAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricBulkTagConfigStatusAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -125,12 +175,14 @@ public boolean equals(Object o) { (MetricBulkTagConfigStatusAttributes) o; return Objects.equals(this.emails, metricBulkTagConfigStatusAttributes.emails) && Objects.equals(this.status, metricBulkTagConfigStatusAttributes.status) - && Objects.equals(this.tags, metricBulkTagConfigStatusAttributes.tags); + && Objects.equals(this.tags, metricBulkTagConfigStatusAttributes.tags) + && Objects.equals( + this.additionalProperties, metricBulkTagConfigStatusAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(emails, status, tags); + return Objects.hash(emails, status, tags, additionalProperties); } @Override @@ -140,6 +192,9 @@ public String toString() { sb.append(" emails: ").append(toIndentedString(emails)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricCustomAggregation.java b/src/main/java/com/datadog/api/client/v2/model/MetricCustomAggregation.java index abcfe2caad5..7628d13b2b0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricCustomAggregation.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricCustomAggregation.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A time and space aggregation combination for use in query. */ @@ -89,6 +93,52 @@ public void setTime(MetricCustomTimeAggregation time) { this.time = time; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricCustomAggregation + */ + @JsonAnySetter + public MetricCustomAggregation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricCustomAggregation object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,13 @@ public boolean equals(Object o) { } MetricCustomAggregation metricCustomAggregation = (MetricCustomAggregation) o; return Objects.equals(this.space, metricCustomAggregation.space) - && Objects.equals(this.time, metricCustomAggregation.time); + && Objects.equals(this.time, metricCustomAggregation.time) + && Objects.equals(this.additionalProperties, metricCustomAggregation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(space, time); + return Objects.hash(space, time, additionalProperties); } @Override @@ -114,6 +165,9 @@ public String toString() { sb.append("class MetricCustomAggregation {\n"); sb.append(" space: ").append(toIndentedString(space)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolume.java b/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolume.java index cb56df3fe0a..8287a2020ce 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolume.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolume.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric's distinct volume. */ @@ -99,6 +103,52 @@ public void setType(MetricDistinctVolumeType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricDistinctVolume + */ + @JsonAnySetter + public MetricDistinctVolume putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricDistinctVolume object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { MetricDistinctVolume metricDistinctVolume = (MetricDistinctVolume) o; return Objects.equals(this.attributes, metricDistinctVolume.attributes) && Objects.equals(this.id, metricDistinctVolume.id) - && Objects.equals(this.type, metricDistinctVolume.type); + && Objects.equals(this.type, metricDistinctVolume.type) + && Objects.equals(this.additionalProperties, metricDistinctVolume.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolumeAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolumeAttributes.java index 68236dd8ea3..b5d7e639bbb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolumeAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricDistinctVolumeAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric's distinct volume. */ @@ -42,6 +46,52 @@ public void setDistinctVolume(Long distinctVolume) { this.distinctVolume = distinctVolume; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricDistinctVolumeAttributes + */ + @JsonAnySetter + public MetricDistinctVolumeAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricDistinctVolumeAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } MetricDistinctVolumeAttributes metricDistinctVolumeAttributes = (MetricDistinctVolumeAttributes) o; - return Objects.equals(this.distinctVolume, metricDistinctVolumeAttributes.distinctVolume); + return Objects.equals(this.distinctVolume, metricDistinctVolumeAttributes.distinctVolume) + && Objects.equals( + this.additionalProperties, metricDistinctVolumeAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(distinctVolume); + return Objects.hash(distinctVolume, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricDistinctVolumeAttributes {\n"); sb.append(" distinctVolume: ").append(toIndentedString(distinctVolume)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricEstimate.java b/src/main/java/com/datadog/api/client/v2/model/MetricEstimate.java index 01256279ba2..7f95735502b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricEstimate.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricEstimate.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a metric cardinality estimate. */ @@ -99,6 +103,52 @@ public void setType(MetricEstimateResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricEstimate + */ + @JsonAnySetter + public MetricEstimate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricEstimate object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { MetricEstimate metricEstimate = (MetricEstimate) o; return Objects.equals(this.attributes, metricEstimate.attributes) && Objects.equals(this.id, metricEstimate.id) - && Objects.equals(this.type, metricEstimate.type); + && Objects.equals(this.type, metricEstimate.type) + && Objects.equals(this.additionalProperties, metricEstimate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricEstimateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricEstimateAttributes.java index a148121a781..a847ddf84a9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricEstimateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricEstimateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric estimate attribute. */ @@ -102,6 +106,52 @@ public void setEstimatedOutputSeries(Long estimatedOutputSeries) { this.estimatedOutputSeries = estimatedOutputSeries; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricEstimateAttributes + */ + @JsonAnySetter + public MetricEstimateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricEstimateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,13 @@ public boolean equals(Object o) { return Objects.equals(this.estimateType, metricEstimateAttributes.estimateType) && Objects.equals(this.estimatedAt, metricEstimateAttributes.estimatedAt) && Objects.equals( - this.estimatedOutputSeries, metricEstimateAttributes.estimatedOutputSeries); + this.estimatedOutputSeries, metricEstimateAttributes.estimatedOutputSeries) + && Objects.equals(this.additionalProperties, metricEstimateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(estimateType, estimatedAt, estimatedOutputSeries); + return Objects.hash(estimateType, estimatedAt, estimatedOutputSeries, additionalProperties); } @Override @@ -132,6 +183,9 @@ public String toString() { sb.append(" estimatedOutputSeries: ") .append(toIndentedString(estimatedOutputSeries)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricEstimateResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricEstimateResponse.java index 68cc711e43c..75da00343ed 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricEstimateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricEstimateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object that includes metric cardinality estimates. */ @@ -43,6 +47,52 @@ public void setData(MetricEstimate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricEstimateResponse + */ + @JsonAnySetter + public MetricEstimateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricEstimateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } MetricEstimateResponse metricEstimateResponse = (MetricEstimateResponse) o; - return Objects.equals(this.data, metricEstimateResponse.data); + return Objects.equals(this.data, metricEstimateResponse.data) + && Objects.equals(this.additionalProperties, metricEstimateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricEstimateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolume.java b/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolume.java index 49aa50fc992..d1fa4ad4c23 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolume.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolume.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric's ingested and indexed volume. */ @@ -99,6 +103,52 @@ public void setType(MetricIngestedIndexedVolumeType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricIngestedIndexedVolume + */ + @JsonAnySetter + public MetricIngestedIndexedVolume putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricIngestedIndexedVolume object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,14 @@ public boolean equals(Object o) { MetricIngestedIndexedVolume metricIngestedIndexedVolume = (MetricIngestedIndexedVolume) o; return Objects.equals(this.attributes, metricIngestedIndexedVolume.attributes) && Objects.equals(this.id, metricIngestedIndexedVolume.id) - && Objects.equals(this.type, metricIngestedIndexedVolume.type); + && Objects.equals(this.type, metricIngestedIndexedVolume.type) + && Objects.equals( + this.additionalProperties, metricIngestedIndexedVolume.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +178,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolumeAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolumeAttributes.java index a58a9c475c9..5447ea01e86 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolumeAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricIngestedIndexedVolumeAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric's ingested and indexed volume. */ @@ -69,6 +73,52 @@ public void setIngestedVolume(Long ingestedVolume) { this.ingestedVolume = ingestedVolume; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricIngestedIndexedVolumeAttributes + */ + @JsonAnySetter + public MetricIngestedIndexedVolumeAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricIngestedIndexedVolumeAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,13 +131,14 @@ public boolean equals(Object o) { MetricIngestedIndexedVolumeAttributes metricIngestedIndexedVolumeAttributes = (MetricIngestedIndexedVolumeAttributes) o; return Objects.equals(this.indexedVolume, metricIngestedIndexedVolumeAttributes.indexedVolume) + && Objects.equals(this.ingestedVolume, metricIngestedIndexedVolumeAttributes.ingestedVolume) && Objects.equals( - this.ingestedVolume, metricIngestedIndexedVolumeAttributes.ingestedVolume); + this.additionalProperties, metricIngestedIndexedVolumeAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(indexedVolume, ingestedVolume); + return Objects.hash(indexedVolume, ingestedVolume, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class MetricIngestedIndexedVolumeAttributes {\n"); sb.append(" indexedVolume: ").append(toIndentedString(indexedVolume)).append("\n"); sb.append(" ingestedVolume: ").append(toIndentedString(ingestedVolume)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricMetadata.java b/src/main/java/com/datadog/api/client/v2/model/MetricMetadata.java index e90829e14ae..0196be7bb27 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricMetadata.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Metadata for the metric. */ @@ -43,6 +47,52 @@ public void setOrigin(MetricOrigin origin) { this.origin = origin; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricMetadata + */ + @JsonAnySetter + public MetricMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } MetricMetadata metricMetadata = (MetricMetadata) o; - return Objects.equals(this.origin, metricMetadata.origin); + return Objects.equals(this.origin, metricMetadata.origin) + && Objects.equals(this.additionalProperties, metricMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(origin); + return Objects.hash(origin, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricMetadata {\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricOrigin.java b/src/main/java/com/datadog/api/client/v2/model/MetricOrigin.java index 7dd19e2f7c7..8b9986fe633 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricOrigin.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricOrigin.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Metric origin information. */ @@ -94,6 +98,52 @@ public void setService(Integer service) { this.service = service; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricOrigin + */ + @JsonAnySetter + public MetricOrigin putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricOrigin object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { MetricOrigin metricOrigin = (MetricOrigin) o; return Objects.equals(this.metricType, metricOrigin.metricType) && Objects.equals(this.product, metricOrigin.product) - && Objects.equals(this.service, metricOrigin.service); + && Objects.equals(this.service, metricOrigin.service) + && Objects.equals(this.additionalProperties, metricOrigin.additionalProperties); } @Override public int hashCode() { - return Objects.hash(metricType, product, service); + return Objects.hash(metricType, product, service, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" metricType: ").append(toIndentedString(metricType)).append("\n"); sb.append(" product: ").append(toIndentedString(product)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricPayload.java b/src/main/java/com/datadog/api/client/v2/model/MetricPayload.java index 01c477e0949..3194787c77e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricPayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricPayload.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metrics' payload. */ @@ -61,6 +65,52 @@ public void setSeries(List series) { this.series = series; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricPayload + */ + @JsonAnySetter + public MetricPayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricPayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -71,12 +121,13 @@ public boolean equals(Object o) { return false; } MetricPayload metricPayload = (MetricPayload) o; - return Objects.equals(this.series, metricPayload.series); + return Objects.equals(this.series, metricPayload.series) + && Objects.equals(this.additionalProperties, metricPayload.additionalProperties); } @Override public int hashCode() { - return Objects.hash(series); + return Objects.hash(series, additionalProperties); } @Override @@ -84,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricPayload {\n"); sb.append(" series: ").append(toIndentedString(series)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricPoint.java b/src/main/java/com/datadog/api/client/v2/model/MetricPoint.java index 4d850c3fc7b..63589f8f8b2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricPoint.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricPoint.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A point object is of the form {POSIX_timestamp, numeric_value}. */ @@ -67,6 +71,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricPoint + */ + @JsonAnySetter + public MetricPoint putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricPoint object is equal to o. */ @Override public boolean equals(Object o) { @@ -78,12 +128,13 @@ public boolean equals(Object o) { } MetricPoint metricPoint = (MetricPoint) o; return Objects.equals(this.timestamp, metricPoint.timestamp) - && Objects.equals(this.value, metricPoint.value); + && Objects.equals(this.value, metricPoint.value) + && Objects.equals(this.additionalProperties, metricPoint.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timestamp, value); + return Objects.hash(timestamp, value, additionalProperties); } @Override @@ -92,6 +143,9 @@ public String toString() { sb.append("class MetricPoint {\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricResource.java b/src/main/java/com/datadog/api/client/v2/model/MetricResource.java index ff5a739a2dc..cb46b6efd7f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricResource.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricResource.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Metric resource. */ @@ -66,6 +70,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricResource + */ + @JsonAnySetter + public MetricResource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricResource object is equal to o. */ @Override public boolean equals(Object o) { @@ -77,12 +127,13 @@ public boolean equals(Object o) { } MetricResource metricResource = (MetricResource) o; return Objects.equals(this.name, metricResource.name) - && Objects.equals(this.type, metricResource.type); + && Objects.equals(this.type, metricResource.type) + && Objects.equals(this.additionalProperties, metricResource.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type); + return Objects.hash(name, type, additionalProperties); } @Override @@ -91,6 +142,9 @@ public String toString() { sb.append("class MetricResource {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricSeries.java b/src/main/java/com/datadog/api/client/v2/model/MetricSeries.java index b1a77a0b3b4..e102a1f5a6c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricSeries.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricSeries.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -296,6 +300,52 @@ public void setUnit(String unit) { this.unit = unit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricSeries + */ + @JsonAnySetter + public MetricSeries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricSeries object is equal to o. */ @Override public boolean equals(Object o) { @@ -314,13 +364,23 @@ public boolean equals(Object o) { && Objects.equals(this.sourceTypeName, metricSeries.sourceTypeName) && Objects.equals(this.tags, metricSeries.tags) && Objects.equals(this.type, metricSeries.type) - && Objects.equals(this.unit, metricSeries.unit); + && Objects.equals(this.unit, metricSeries.unit) + && Objects.equals(this.additionalProperties, metricSeries.additionalProperties); } @Override public int hashCode() { return Objects.hash( - interval, metadata, metric, points, resources, sourceTypeName, tags, type, unit); + interval, + metadata, + metric, + points, + resources, + sourceTypeName, + tags, + type, + unit, + additionalProperties); } @Override @@ -336,6 +396,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregations.java b/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregations.java index 23f8a61d65b..f987c8ccfd1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregations.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregations.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric's actively queried tags and aggregations. */ @@ -100,6 +104,52 @@ public void setType(MetricActiveConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricSuggestedTagsAndAggregations + */ + @JsonAnySetter + public MetricSuggestedTagsAndAggregations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricSuggestedTagsAndAggregations object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,14 @@ public boolean equals(Object o) { (MetricSuggestedTagsAndAggregations) o; return Objects.equals(this.attributes, metricSuggestedTagsAndAggregations.attributes) && Objects.equals(this.id, metricSuggestedTagsAndAggregations.id) - && Objects.equals(this.type, metricSuggestedTagsAndAggregations.type); + && Objects.equals(this.type, metricSuggestedTagsAndAggregations.type) + && Objects.equals( + this.additionalProperties, metricSuggestedTagsAndAggregations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregationsResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregationsResponse.java index 0df33121152..63c47b0e956 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregationsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAndAggregationsResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object that includes a single metric's actively queried tags and aggregations. */ @@ -43,6 +47,53 @@ public void setData(MetricSuggestedTagsAndAggregations data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricSuggestedTagsAndAggregationsResponse + */ + @JsonAnySetter + public MetricSuggestedTagsAndAggregationsResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricSuggestedTagsAndAggregationsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +105,15 @@ public boolean equals(Object o) { } MetricSuggestedTagsAndAggregationsResponse metricSuggestedTagsAndAggregationsResponse = (MetricSuggestedTagsAndAggregationsResponse) o; - return Objects.equals(this.data, metricSuggestedTagsAndAggregationsResponse.data); + return Objects.equals(this.data, metricSuggestedTagsAndAggregationsResponse.data) + && Objects.equals( + this.additionalProperties, + metricSuggestedTagsAndAggregationsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricSuggestedTagsAndAggregationsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAttributes.java index d06f56373d5..3981480f3d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricSuggestedTagsAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric's actively queried tags and aggregations. */ @@ -93,6 +97,52 @@ public void setActiveTags(List activeTags) { this.activeTags = activeTags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricSuggestedTagsAttributes + */ + @JsonAnySetter + public MetricSuggestedTagsAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricSuggestedTagsAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -104,12 +154,14 @@ public boolean equals(Object o) { } MetricSuggestedTagsAttributes metricSuggestedTagsAttributes = (MetricSuggestedTagsAttributes) o; return Objects.equals(this.activeAggregations, metricSuggestedTagsAttributes.activeAggregations) - && Objects.equals(this.activeTags, metricSuggestedTagsAttributes.activeTags); + && Objects.equals(this.activeTags, metricSuggestedTagsAttributes.activeTags) + && Objects.equals( + this.additionalProperties, metricSuggestedTagsAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(activeAggregations, activeTags); + return Objects.hash(activeAggregations, activeTags, additionalProperties); } @Override @@ -118,6 +170,9 @@ public String toString() { sb.append("class MetricSuggestedTagsAttributes {\n"); sb.append(" activeAggregations: ").append(toIndentedString(activeAggregations)).append("\n"); sb.append(" activeTags: ").append(toIndentedString(activeTags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfiguration.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfiguration.java index 1e04b4bda2a..237548b94c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfiguration.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfiguration.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric tag configuration. */ @@ -99,6 +103,52 @@ public void setType(MetricTagConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfiguration + */ + @JsonAnySetter + public MetricTagConfiguration putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfiguration object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { MetricTagConfiguration metricTagConfiguration = (MetricTagConfiguration) o; return Objects.equals(this.attributes, metricTagConfiguration.attributes) && Objects.equals(this.id, metricTagConfiguration.id) - && Objects.equals(this.type, metricTagConfiguration.type); + && Objects.equals(this.type, metricTagConfiguration.type) + && Objects.equals(this.additionalProperties, metricTagConfiguration.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationAttributes.java index a232d744dc5..97905fa239e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric tag configuration attributes. */ @@ -216,6 +220,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationAttributes + */ + @JsonAnySetter + public MetricTagConfigurationAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -233,12 +283,21 @@ public boolean equals(Object o) { this.includePercentiles, metricTagConfigurationAttributes.includePercentiles) && Objects.equals(this.metricType, metricTagConfigurationAttributes.metricType) && Objects.equals(this.modifiedAt, metricTagConfigurationAttributes.modifiedAt) - && Objects.equals(this.tags, metricTagConfigurationAttributes.tags); + && Objects.equals(this.tags, metricTagConfigurationAttributes.tags) + && Objects.equals( + this.additionalProperties, metricTagConfigurationAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregations, createdAt, includePercentiles, metricType, modifiedAt, tags); + return Objects.hash( + aggregations, + createdAt, + includePercentiles, + metricType, + modifiedAt, + tags, + additionalProperties); } @Override @@ -251,6 +310,9 @@ public String toString() { sb.append(" metricType: ").append(toIndentedString(metricType)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateAttributes.java index c1de48d3bb0..4a73210a855 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric tag configuration to be created. */ @@ -175,6 +179,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationCreateAttributes + */ + @JsonAnySetter + public MetricTagConfigurationCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -190,12 +240,14 @@ public boolean equals(Object o) { && Objects.equals( this.includePercentiles, metricTagConfigurationCreateAttributes.includePercentiles) && Objects.equals(this.metricType, metricTagConfigurationCreateAttributes.metricType) - && Objects.equals(this.tags, metricTagConfigurationCreateAttributes.tags); + && Objects.equals(this.tags, metricTagConfigurationCreateAttributes.tags) + && Objects.equals( + this.additionalProperties, metricTagConfigurationCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregations, includePercentiles, metricType, tags); + return Objects.hash(aggregations, includePercentiles, metricType, tags, additionalProperties); } @Override @@ -206,6 +258,9 @@ public String toString() { sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); sb.append(" metricType: ").append(toIndentedString(metricType)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateData.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateData.java index bf0ecd32d08..2946a2a14d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single metric to be configure tags on. */ @@ -110,6 +114,52 @@ public void setType(MetricTagConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationCreateData + */ + @JsonAnySetter + public MetricTagConfigurationCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +173,14 @@ public boolean equals(Object o) { (MetricTagConfigurationCreateData) o; return Objects.equals(this.attributes, metricTagConfigurationCreateData.attributes) && Objects.equals(this.id, metricTagConfigurationCreateData.id) - && Objects.equals(this.type, metricTagConfigurationCreateData.type); + && Objects.equals(this.type, metricTagConfigurationCreateData.type) + && Objects.equals( + this.additionalProperties, metricTagConfigurationCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -138,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateRequest.java index f247371c63c..137ccc17f3a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object that includes the metric that you would like to configure tags for. */ @@ -53,6 +57,52 @@ public void setData(MetricTagConfigurationCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationCreateRequest + */ + @JsonAnySetter + public MetricTagConfigurationCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } MetricTagConfigurationCreateRequest metricTagConfigurationCreateRequest = (MetricTagConfigurationCreateRequest) o; - return Objects.equals(this.data, metricTagConfigurationCreateRequest.data); + return Objects.equals(this.data, metricTagConfigurationCreateRequest.data) + && Objects.equals( + this.additionalProperties, metricTagConfigurationCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricTagConfigurationCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationResponse.java index 80ac9a83f37..c955ea57cc3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object which includes a single metric's tag configuration. */ @@ -43,6 +47,52 @@ public void setData(MetricTagConfiguration data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationResponse + */ + @JsonAnySetter + public MetricTagConfigurationResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } MetricTagConfigurationResponse metricTagConfigurationResponse = (MetricTagConfigurationResponse) o; - return Objects.equals(this.data, metricTagConfigurationResponse.data); + return Objects.equals(this.data, metricTagConfigurationResponse.data) + && Objects.equals( + this.additionalProperties, metricTagConfigurationResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricTagConfigurationResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateAttributes.java index ba0e70a68d7..ed4ac90e1ac 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the definition of a metric tag configuration to be updated. */ @@ -137,6 +141,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationUpdateAttributes + */ + @JsonAnySetter + public MetricTagConfigurationUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,14 @@ public boolean equals(Object o) { return Objects.equals(this.aggregations, metricTagConfigurationUpdateAttributes.aggregations) && Objects.equals( this.includePercentiles, metricTagConfigurationUpdateAttributes.includePercentiles) - && Objects.equals(this.tags, metricTagConfigurationUpdateAttributes.tags); + && Objects.equals(this.tags, metricTagConfigurationUpdateAttributes.tags) + && Objects.equals( + this.additionalProperties, metricTagConfigurationUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregations, includePercentiles, tags); + return Objects.hash(aggregations, includePercentiles, tags, additionalProperties); } @Override @@ -166,6 +218,9 @@ public String toString() { sb.append(" aggregations: ").append(toIndentedString(aggregations)).append("\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateData.java index 042254c24fa..b6c3c0379a7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single tag configuration to be edited. */ @@ -110,6 +114,52 @@ public void setType(MetricTagConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationUpdateData + */ + @JsonAnySetter + public MetricTagConfigurationUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +173,14 @@ public boolean equals(Object o) { (MetricTagConfigurationUpdateData) o; return Objects.equals(this.attributes, metricTagConfigurationUpdateData.attributes) && Objects.equals(this.id, metricTagConfigurationUpdateData.id) - && Objects.equals(this.type, metricTagConfigurationUpdateData.type); + && Objects.equals(this.type, metricTagConfigurationUpdateData.type) + && Objects.equals( + this.additionalProperties, metricTagConfigurationUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -138,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateRequest.java index eef3841bd4a..6fa26208de7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object that includes the metric that you would like to edit the tag configuration on. */ @@ -53,6 +57,52 @@ public void setData(MetricTagConfigurationUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricTagConfigurationUpdateRequest + */ + @JsonAnySetter + public MetricTagConfigurationUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricTagConfigurationUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } MetricTagConfigurationUpdateRequest metricTagConfigurationUpdateRequest = (MetricTagConfigurationUpdateRequest) o; - return Objects.equals(this.data, metricTagConfigurationUpdateRequest.data); + return Objects.equals(this.data, metricTagConfigurationUpdateRequest.data) + && Objects.equals( + this.additionalProperties, metricTagConfigurationUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricTagConfigurationUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricVolumesResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricVolumesResponse.java index c6ad84ba627..399824c94b2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricVolumesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricVolumesResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object which includes a single metric's volume. */ @@ -43,6 +47,52 @@ public void setData(MetricVolumes data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricVolumesResponse + */ + @JsonAnySetter + public MetricVolumesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricVolumesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } MetricVolumesResponse metricVolumesResponse = (MetricVolumesResponse) o; - return Objects.equals(this.data, metricVolumesResponse.data); + return Objects.equals(this.data, metricVolumesResponse.data) + && Objects.equals(this.additionalProperties, metricVolumesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricVolumesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricsAndMetricTagConfigurationsResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricsAndMetricTagConfigurationsResponse.java index 5b496885cd6..6247dc69157 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricsAndMetricTagConfigurationsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricsAndMetricTagConfigurationsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object that includes metrics and metric tag configurations. */ @@ -58,6 +62,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsAndMetricTagConfigurationsResponse + */ + @JsonAnySetter + public MetricsAndMetricTagConfigurationsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsAndMetricTagConfigurationsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,15 @@ public boolean equals(Object o) { } MetricsAndMetricTagConfigurationsResponse metricsAndMetricTagConfigurationsResponse = (MetricsAndMetricTagConfigurationsResponse) o; - return Objects.equals(this.data, metricsAndMetricTagConfigurationsResponse.data); + return Objects.equals(this.data, metricsAndMetricTagConfigurationsResponse.data) + && Objects.equals( + this.additionalProperties, + metricsAndMetricTagConfigurationsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -82,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricsAndMetricTagConfigurationsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricsScalarQuery.java b/src/main/java/com/datadog/api/client/v2/model/MetricsScalarQuery.java index 7bde6746aae..b482ccb9ce6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricsScalarQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricsScalarQuery.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An individual scalar metrics query. */ @@ -140,6 +144,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsScalarQuery + */ + @JsonAnySetter + public MetricsScalarQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsScalarQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -153,12 +203,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregator, metricsScalarQuery.aggregator) && Objects.equals(this.dataSource, metricsScalarQuery.dataSource) && Objects.equals(this.name, metricsScalarQuery.name) - && Objects.equals(this.query, metricsScalarQuery.query); + && Objects.equals(this.query, metricsScalarQuery.query) + && Objects.equals(this.additionalProperties, metricsScalarQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregator, dataSource, name, query); + return Objects.hash(aggregator, dataSource, name, query, additionalProperties); } @Override @@ -169,6 +220,9 @@ public String toString() { sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricsTimeseriesQuery.java b/src/main/java/com/datadog/api/client/v2/model/MetricsTimeseriesQuery.java index e02ccdd935a..f61fccc2e2b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricsTimeseriesQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricsTimeseriesQuery.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** An individual timeseries metrics query. */ @@ -109,6 +113,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MetricsTimeseriesQuery + */ + @JsonAnySetter + public MetricsTimeseriesQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MetricsTimeseriesQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { MetricsTimeseriesQuery metricsTimeseriesQuery = (MetricsTimeseriesQuery) o; return Objects.equals(this.dataSource, metricsTimeseriesQuery.dataSource) && Objects.equals(this.name, metricsTimeseriesQuery.name) - && Objects.equals(this.query, metricsTimeseriesQuery.query); + && Objects.equals(this.query, metricsTimeseriesQuery.query) + && Objects.equals(this.additionalProperties, metricsTimeseriesQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dataSource, name, query); + return Objects.hash(dataSource, name, query, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeCreateRequest.java index 1719aa4ae0c..667f00b6964 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Policy and policy type for a monitor configuration policy. */ @@ -88,6 +92,52 @@ public void setPolicyType(MonitorConfigPolicyType policyType) { this.policyType = policyType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyAttributeCreateRequest + */ + @JsonAnySetter + public MonitorConfigPolicyAttributeCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyAttributeCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,15 @@ public boolean equals(Object o) { MonitorConfigPolicyAttributeCreateRequest monitorConfigPolicyAttributeCreateRequest = (MonitorConfigPolicyAttributeCreateRequest) o; return Objects.equals(this.policy, monitorConfigPolicyAttributeCreateRequest.policy) - && Objects.equals(this.policyType, monitorConfigPolicyAttributeCreateRequest.policyType); + && Objects.equals(this.policyType, monitorConfigPolicyAttributeCreateRequest.policyType) + && Objects.equals( + this.additionalProperties, + monitorConfigPolicyAttributeCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(policy, policyType); + return Objects.hash(policy, policyType, additionalProperties); } @Override @@ -114,6 +167,9 @@ public String toString() { sb.append("class MonitorConfigPolicyAttributeCreateRequest {\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeEditRequest.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeEditRequest.java index 547c06c9f9d..6652eaa8e71 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeEditRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeEditRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Policy and policy type for a monitor configuration policy. */ @@ -86,6 +90,52 @@ public void setPolicyType(MonitorConfigPolicyType policyType) { this.policyType = policyType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyAttributeEditRequest + */ + @JsonAnySetter + public MonitorConfigPolicyAttributeEditRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyAttributeEditRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,15 @@ public boolean equals(Object o) { MonitorConfigPolicyAttributeEditRequest monitorConfigPolicyAttributeEditRequest = (MonitorConfigPolicyAttributeEditRequest) o; return Objects.equals(this.policy, monitorConfigPolicyAttributeEditRequest.policy) - && Objects.equals(this.policyType, monitorConfigPolicyAttributeEditRequest.policyType); + && Objects.equals(this.policyType, monitorConfigPolicyAttributeEditRequest.policyType) + && Objects.equals( + this.additionalProperties, + monitorConfigPolicyAttributeEditRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(policy, policyType); + return Objects.hash(policy, policyType, additionalProperties); } @Override @@ -112,6 +165,9 @@ public String toString() { sb.append("class MonitorConfigPolicyAttributeEditRequest {\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeResponse.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeResponse.java index 90b6a396730..df8cd72f835 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyAttributeResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Policy and policy type for a monitor configuration policy. */ @@ -74,6 +78,52 @@ public void setPolicyType(MonitorConfigPolicyType policyType) { this.policyType = policyType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyAttributeResponse + */ + @JsonAnySetter + public MonitorConfigPolicyAttributeResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyAttributeResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,14 @@ public boolean equals(Object o) { MonitorConfigPolicyAttributeResponse monitorConfigPolicyAttributeResponse = (MonitorConfigPolicyAttributeResponse) o; return Objects.equals(this.policy, monitorConfigPolicyAttributeResponse.policy) - && Objects.equals(this.policyType, monitorConfigPolicyAttributeResponse.policyType); + && Objects.equals(this.policyType, monitorConfigPolicyAttributeResponse.policyType) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyAttributeResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(policy, policyType); + return Objects.hash(policy, policyType, additionalProperties); } @Override @@ -100,6 +152,9 @@ public String toString() { sb.append("class MonitorConfigPolicyAttributeResponse {\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateData.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateData.java index a72c67296b9..67361f1aace 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A monitor configuration policy data. */ @@ -89,6 +93,52 @@ public void setType(MonitorConfigPolicyResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyCreateData + */ + @JsonAnySetter + public MonitorConfigPolicyCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,12 +150,14 @@ public boolean equals(Object o) { } MonitorConfigPolicyCreateData monitorConfigPolicyCreateData = (MonitorConfigPolicyCreateData) o; return Objects.equals(this.attributes, monitorConfigPolicyCreateData.attributes) - && Objects.equals(this.type, monitorConfigPolicyCreateData.type); + && Objects.equals(this.type, monitorConfigPolicyCreateData.type) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -114,6 +166,9 @@ public String toString() { sb.append("class MonitorConfigPolicyCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateRequest.java index 668665b9d46..cb4ffd8e7e4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request for creating a monitor configuration policy. */ @@ -53,6 +57,52 @@ public void setData(MonitorConfigPolicyCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyCreateRequest + */ + @JsonAnySetter + public MonitorConfigPolicyCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } MonitorConfigPolicyCreateRequest monitorConfigPolicyCreateRequest = (MonitorConfigPolicyCreateRequest) o; - return Objects.equals(this.data, monitorConfigPolicyCreateRequest.data); + return Objects.equals(this.data, monitorConfigPolicyCreateRequest.data) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorConfigPolicyCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditData.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditData.java index 3e50a2c2d9f..961cfccc566 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A monitor configuration policy data. */ @@ -115,6 +119,52 @@ public void setType(MonitorConfigPolicyResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyEditData + */ + @JsonAnySetter + public MonitorConfigPolicyEditData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyEditData object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,14 @@ public boolean equals(Object o) { MonitorConfigPolicyEditData monitorConfigPolicyEditData = (MonitorConfigPolicyEditData) o; return Objects.equals(this.attributes, monitorConfigPolicyEditData.attributes) && Objects.equals(this.id, monitorConfigPolicyEditData.id) - && Objects.equals(this.type, monitorConfigPolicyEditData.type); + && Objects.equals(this.type, monitorConfigPolicyEditData.type) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyEditData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -142,6 +194,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditRequest.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditRequest.java index c2356e0983a..0dc85944171 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyEditRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request for editing a monitor configuration policy. */ @@ -52,6 +56,52 @@ public void setData(MonitorConfigPolicyEditData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyEditRequest + */ + @JsonAnySetter + public MonitorConfigPolicyEditRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyEditRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } MonitorConfigPolicyEditRequest monitorConfigPolicyEditRequest = (MonitorConfigPolicyEditRequest) o; - return Objects.equals(this.data, monitorConfigPolicyEditRequest.data); + return Objects.equals(this.data, monitorConfigPolicyEditRequest.data) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyEditRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorConfigPolicyEditRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyListResponse.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyListResponse.java index 92392fe38c2..881f209876d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response for retrieving all monitor configuration policies. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyListResponse + */ + @JsonAnySetter + public MonitorConfigPolicyListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } MonitorConfigPolicyListResponse monitorConfigPolicyListResponse = (MonitorConfigPolicyListResponse) o; - return Objects.equals(this.data, monitorConfigPolicyListResponse.data); + return Objects.equals(this.data, monitorConfigPolicyListResponse.data) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorConfigPolicyListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponse.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponse.java index 636c4db789c..7ce38e7b79f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response for retrieving a monitor configuration policy. */ @@ -43,6 +47,52 @@ public void setData(MonitorConfigPolicyResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyResponse + */ + @JsonAnySetter + public MonitorConfigPolicyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } MonitorConfigPolicyResponse monitorConfigPolicyResponse = (MonitorConfigPolicyResponse) o; - return Objects.equals(this.data, monitorConfigPolicyResponse.data); + return Objects.equals(this.data, monitorConfigPolicyResponse.data) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitorConfigPolicyResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponseData.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponseData.java index 0ca2a6296b3..ac88b97b543 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A monitor configuration policy data. */ @@ -101,6 +105,52 @@ public void setType(MonitorConfigPolicyResourceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyResponseData + */ + @JsonAnySetter + public MonitorConfigPolicyResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,14 @@ public boolean equals(Object o) { (MonitorConfigPolicyResponseData) o; return Objects.equals(this.attributes, monitorConfigPolicyResponseData.attributes) && Objects.equals(this.id, monitorConfigPolicyResponseData.id) - && Objects.equals(this.type, monitorConfigPolicyResponseData.type); + && Objects.equals(this.type, monitorConfigPolicyResponseData.type) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -129,6 +181,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicy.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicy.java index 0d807c91629..5d295718c55 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicy.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicy.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Tag attributes of a monitor configuration policy. */ @@ -104,6 +108,52 @@ public void setValidTagValues(List validTagValues) { this.validTagValues = validTagValues; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyTagPolicy + */ + @JsonAnySetter + public MonitorConfigPolicyTagPolicy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyTagPolicy object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,12 +166,14 @@ public boolean equals(Object o) { MonitorConfigPolicyTagPolicy monitorConfigPolicyTagPolicy = (MonitorConfigPolicyTagPolicy) o; return Objects.equals(this.tagKey, monitorConfigPolicyTagPolicy.tagKey) && Objects.equals(this.tagKeyRequired, monitorConfigPolicyTagPolicy.tagKeyRequired) - && Objects.equals(this.validTagValues, monitorConfigPolicyTagPolicy.validTagValues); + && Objects.equals(this.validTagValues, monitorConfigPolicyTagPolicy.validTagValues) + && Objects.equals( + this.additionalProperties, monitorConfigPolicyTagPolicy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tagKey, tagKeyRequired, validTagValues); + return Objects.hash(tagKey, tagKeyRequired, validTagValues, additionalProperties); } @Override @@ -131,6 +183,9 @@ public String toString() { sb.append(" tagKey: ").append(toIndentedString(tagKey)).append("\n"); sb.append(" tagKeyRequired: ").append(toIndentedString(tagKeyRequired)).append("\n"); sb.append(" validTagValues: ").append(toIndentedString(validTagValues)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicyCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicyCreateRequest.java index f1c06db5932..72ae79940a9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicyCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorConfigPolicyTagPolicyCreateRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Tag attributes of a monitor configuration policy. */ @@ -113,6 +117,52 @@ public void setValidTagValues(List validTagValues) { this.validTagValues = validTagValues; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorConfigPolicyTagPolicyCreateRequest + */ + @JsonAnySetter + public MonitorConfigPolicyTagPolicyCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorConfigPolicyTagPolicyCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +178,15 @@ public boolean equals(Object o) { && Objects.equals( this.tagKeyRequired, monitorConfigPolicyTagPolicyCreateRequest.tagKeyRequired) && Objects.equals( - this.validTagValues, monitorConfigPolicyTagPolicyCreateRequest.validTagValues); + this.validTagValues, monitorConfigPolicyTagPolicyCreateRequest.validTagValues) + && Objects.equals( + this.additionalProperties, + monitorConfigPolicyTagPolicyCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tagKey, tagKeyRequired, validTagValues); + return Objects.hash(tagKey, tagKeyRequired, validTagValues, additionalProperties); } @Override @@ -143,6 +196,9 @@ public String toString() { sb.append(" tagKey: ").append(toIndentedString(tagKey)).append("\n"); sb.append(" tagKeyRequired: ").append(toIndentedString(tagKeyRequired)).append("\n"); sb.append(" validTagValues: ").append(toIndentedString(validTagValues)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorType.java b/src/main/java/com/datadog/api/client/v2/model/MonitorType.java index d8a8db01869..29816ae0c6f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorType.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorType.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes from the monitor that triggered the event. */ @@ -312,6 +316,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MonitorType + */ + @JsonAnySetter + public MonitorType putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MonitorType object is equal to o. */ @Override public boolean equals(Object o) { @@ -332,7 +382,8 @@ public boolean equals(Object o) { && Objects.equals(this.query, monitorType.query) && Objects.equals(this.tags, monitorType.tags) && Objects.equals(this.templatedName, monitorType.templatedName) - && Objects.equals(this.type, monitorType.type); + && Objects.equals(this.type, monitorType.type) + && Objects.equals(this.additionalProperties, monitorType.additionalProperties); } @Override @@ -348,7 +399,8 @@ public int hashCode() { query, tags, templatedName, - type); + type, + additionalProperties); } @Override @@ -366,6 +418,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" templatedName: ").append(toIndentedString(templatedName)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequest.java b/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequest.java index d3c19a75ad8..2b79df3d8e6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new mute finding request. */ @@ -52,6 +56,52 @@ public void setData(MuteFindingRequestData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MuteFindingRequest + */ + @JsonAnySetter + public MuteFindingRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MuteFindingRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } MuteFindingRequest muteFindingRequest = (MuteFindingRequest) o; - return Objects.equals(this.data, muteFindingRequest.data); + return Objects.equals(this.data, muteFindingRequest.data) + && Objects.equals(this.additionalProperties, muteFindingRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MuteFindingRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequestData.java b/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequestData.java index 5643d8d06f2..e175c9e1b0a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteFindingRequestData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object containing the new mute properties of the finding. */ @@ -112,6 +116,52 @@ public void setType(FindingType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MuteFindingRequestData + */ + @JsonAnySetter + public MuteFindingRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MuteFindingRequestData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { MuteFindingRequestData muteFindingRequestData = (MuteFindingRequestData) o; return Objects.equals(this.attributes, muteFindingRequestData.attributes) && Objects.equals(this.id, muteFindingRequestData.id) - && Objects.equals(this.type, muteFindingRequestData.type); + && Objects.equals(this.type, muteFindingRequestData.type) + && Objects.equals(this.additionalProperties, muteFindingRequestData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponse.java b/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponse.java index eef9d06bf28..3226e4ead54 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The expected response schema. */ @@ -52,6 +56,52 @@ public void setData(MuteFindingResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MuteFindingResponse + */ + @JsonAnySetter + public MuteFindingResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MuteFindingResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } MuteFindingResponse muteFindingResponse = (MuteFindingResponse) o; - return Objects.equals(this.data, muteFindingResponse.data); + return Objects.equals(this.data, muteFindingResponse.data) + && Objects.equals(this.additionalProperties, muteFindingResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MuteFindingResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseAttributes.java index 6ad296fda9a..5edce4e8283 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The JSON:API attributes of the finding. */ @@ -264,6 +268,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MuteFindingResponseAttributes + */ + @JsonAnySetter + public MuteFindingResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MuteFindingResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -284,7 +334,9 @@ public boolean equals(Object o) { && Objects.equals(this.resourceType, muteFindingResponseAttributes.resourceType) && Objects.equals(this.rule, muteFindingResponseAttributes.rule) && Objects.equals(this.status, muteFindingResponseAttributes.status) - && Objects.equals(this.tags, muteFindingResponseAttributes.tags); + && Objects.equals(this.tags, muteFindingResponseAttributes.tags) + && Objects.equals( + this.additionalProperties, muteFindingResponseAttributes.additionalProperties); } @Override @@ -298,7 +350,8 @@ public int hashCode() { resourceType, rule, status, - tags); + tags, + additionalProperties); } @Override @@ -318,6 +371,9 @@ public String toString() { sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseData.java b/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseData.java index 373057864a4..ec4318ffdf2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MuteFindingResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data object containing the updated finding. */ @@ -99,6 +103,52 @@ public void setType(FindingType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MuteFindingResponseData + */ + @JsonAnySetter + public MuteFindingResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this MuteFindingResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { MuteFindingResponseData muteFindingResponseData = (MuteFindingResponseData) o; return Objects.equals(this.attributes, muteFindingResponseData.attributes) && Objects.equals(this.id, muteFindingResponseData.id) - && Objects.equals(this.type, muteFindingResponseData.type); + && Objects.equals(this.type, muteFindingResponseData.type) + && Objects.equals(this.additionalProperties, muteFindingResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUser.java b/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUser.java index de9c136cab1..1173dfcb40a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUser.java +++ b/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUser.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to user. */ @@ -58,6 +62,52 @@ public void setData(NullableRelationshipToUserData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NullableRelationshipToUser + */ + @JsonAnySetter + public NullableRelationshipToUser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NullableRelationshipToUser object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { return false; } NullableRelationshipToUser nullableRelationshipToUser = (NullableRelationshipToUser) o; - return Objects.equals(this.data, nullableRelationshipToUser.data); + return Objects.equals(this.data, nullableRelationshipToUser.data) + && Objects.equals( + this.additionalProperties, nullableRelationshipToUser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NullableRelationshipToUser {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUserData.java b/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUserData.java index 5a5f5edd5fd..949a42cb8bb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUserData.java +++ b/src/main/java/com/datadog/api/client/v2/model/NullableRelationshipToUserData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to user object. */ @@ -83,6 +87,52 @@ public void setType(UsersType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NullableRelationshipToUserData + */ + @JsonAnySetter + public NullableRelationshipToUserData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this NullableRelationshipToUserData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { NullableRelationshipToUserData nullableRelationshipToUserData = (NullableRelationshipToUserData) o; return Objects.equals(this.id, nullableRelationshipToUserData.id) - && Objects.equals(this.type, nullableRelationshipToUserData.type); + && Objects.equals(this.type, nullableRelationshipToUserData.type) + && Objects.equals( + this.additionalProperties, nullableRelationshipToUserData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class NullableRelationshipToUserData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCap.java b/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCap.java index 36f9dd5468c..ae6ae406664 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCap.java +++ b/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCap.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** On-demand concurrency cap. */ @@ -43,6 +47,52 @@ public void setAttributes(OnDemandConcurrencyCapAttributes attributes) { this.attributes = attributes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OnDemandConcurrencyCap + */ + @JsonAnySetter + public OnDemandConcurrencyCap putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OnDemandConcurrencyCap object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } OnDemandConcurrencyCap onDemandConcurrencyCap = (OnDemandConcurrencyCap) o; - return Objects.equals(this.attributes, onDemandConcurrencyCap.attributes); + return Objects.equals(this.attributes, onDemandConcurrencyCap.attributes) + && Objects.equals(this.additionalProperties, onDemandConcurrencyCap.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes); + return Objects.hash(attributes, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OnDemandConcurrencyCap {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapAttributes.java b/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapAttributes.java index 55cf6732bfb..2a640704dd6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** On-demand concurrency cap attributes. */ @@ -42,6 +46,52 @@ public void setOnDemandConcurrencyCap(Double onDemandConcurrencyCap) { this.onDemandConcurrencyCap = onDemandConcurrencyCap; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OnDemandConcurrencyCapAttributes + */ + @JsonAnySetter + public OnDemandConcurrencyCapAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OnDemandConcurrencyCapAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { OnDemandConcurrencyCapAttributes onDemandConcurrencyCapAttributes = (OnDemandConcurrencyCapAttributes) o; return Objects.equals( - this.onDemandConcurrencyCap, onDemandConcurrencyCapAttributes.onDemandConcurrencyCap); + this.onDemandConcurrencyCap, onDemandConcurrencyCapAttributes.onDemandConcurrencyCap) + && Objects.equals( + this.additionalProperties, onDemandConcurrencyCapAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(onDemandConcurrencyCap); + return Objects.hash(onDemandConcurrencyCap, additionalProperties); } @Override @@ -69,6 +121,9 @@ public String toString() { sb.append(" onDemandConcurrencyCap: ") .append(toIndentedString(onDemandConcurrencyCap)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapResponse.java b/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapResponse.java index 9c275115569..21bc39bfe89 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/OnDemandConcurrencyCapResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** On-demand concurrency cap response. */ @@ -43,6 +47,52 @@ public void setData(OnDemandConcurrencyCap data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OnDemandConcurrencyCapResponse + */ + @JsonAnySetter + public OnDemandConcurrencyCapResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OnDemandConcurrencyCapResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } OnDemandConcurrencyCapResponse onDemandConcurrencyCapResponse = (OnDemandConcurrencyCapResponse) o; - return Objects.equals(this.data, onDemandConcurrencyCapResponse.data); + return Objects.equals(this.data, onDemandConcurrencyCapResponse.data) + && Objects.equals( + this.additionalProperties, onDemandConcurrencyCapResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OnDemandConcurrencyCapResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateAttributes.java index 3d1eef65ed4..7b2c16c1c01 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The Opsgenie service attributes for a create request. */ @@ -135,6 +139,52 @@ public void setRegion(OpsgenieServiceRegionType region) { this.region = region; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceCreateAttributes + */ + @JsonAnySetter + public OpsgenieServiceCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -149,12 +199,14 @@ public boolean equals(Object o) { return Objects.equals(this.customUrl, opsgenieServiceCreateAttributes.customUrl) && Objects.equals(this.name, opsgenieServiceCreateAttributes.name) && Objects.equals(this.opsgenieApiKey, opsgenieServiceCreateAttributes.opsgenieApiKey) - && Objects.equals(this.region, opsgenieServiceCreateAttributes.region); + && Objects.equals(this.region, opsgenieServiceCreateAttributes.region) + && Objects.equals( + this.additionalProperties, opsgenieServiceCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customUrl, name, opsgenieApiKey, region); + return Objects.hash(customUrl, name, opsgenieApiKey, region, additionalProperties); } @Override @@ -165,6 +217,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" opsgenieApiKey: ").append(toIndentedString(opsgenieApiKey)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateData.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateData.java index 4aca1f59aa0..4c06d2abdda 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Opsgenie service data for a create request. */ @@ -86,6 +90,52 @@ public void setType(OpsgenieServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceCreateData + */ + @JsonAnySetter + public OpsgenieServiceCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,14 @@ public boolean equals(Object o) { } OpsgenieServiceCreateData opsgenieServiceCreateData = (OpsgenieServiceCreateData) o; return Objects.equals(this.attributes, opsgenieServiceCreateData.attributes) - && Objects.equals(this.type, opsgenieServiceCreateData.type); + && Objects.equals(this.type, opsgenieServiceCreateData.type) + && Objects.equals( + this.additionalProperties, opsgenieServiceCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +163,9 @@ public String toString() { sb.append("class OpsgenieServiceCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateRequest.java index 9bc2e1a08ef..880544d3ce2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create request for an Opsgenie service. */ @@ -52,6 +56,52 @@ public void setData(OpsgenieServiceCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceCreateRequest + */ + @JsonAnySetter + public OpsgenieServiceCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } OpsgenieServiceCreateRequest opsgenieServiceCreateRequest = (OpsgenieServiceCreateRequest) o; - return Objects.equals(this.data, opsgenieServiceCreateRequest.data); + return Objects.equals(this.data, opsgenieServiceCreateRequest.data) + && Objects.equals( + this.additionalProperties, opsgenieServiceCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OpsgenieServiceCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponse.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponse.java index 3cec4e407a8..d6a387fae84 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response of an Opsgenie service. */ @@ -52,6 +56,52 @@ public void setData(OpsgenieServiceResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceResponse + */ + @JsonAnySetter + public OpsgenieServiceResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } OpsgenieServiceResponse opsgenieServiceResponse = (OpsgenieServiceResponse) o; - return Objects.equals(this.data, opsgenieServiceResponse.data); + return Objects.equals(this.data, opsgenieServiceResponse.data) + && Objects.equals(this.additionalProperties, opsgenieServiceResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OpsgenieServiceResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseAttributes.java index f8552a99e11..52c3cad7c26 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -109,6 +113,52 @@ public void setRegion(OpsgenieServiceRegionType region) { this.region = region; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceResponseAttributes + */ + @JsonAnySetter + public OpsgenieServiceResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { (OpsgenieServiceResponseAttributes) o; return Objects.equals(this.customUrl, opsgenieServiceResponseAttributes.customUrl) && Objects.equals(this.name, opsgenieServiceResponseAttributes.name) - && Objects.equals(this.region, opsgenieServiceResponseAttributes.region); + && Objects.equals(this.region, opsgenieServiceResponseAttributes.region) + && Objects.equals( + this.additionalProperties, opsgenieServiceResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customUrl, name, region); + return Objects.hash(customUrl, name, region, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" customUrl: ").append(toIndentedString(customUrl)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseData.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseData.java index 636dc8c5852..494f5939bc4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Opsgenie service data from a response. */ @@ -112,6 +116,52 @@ public void setType(OpsgenieServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceResponseData + */ + @JsonAnySetter + public OpsgenieServiceResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { OpsgenieServiceResponseData opsgenieServiceResponseData = (OpsgenieServiceResponseData) o; return Objects.equals(this.attributes, opsgenieServiceResponseData.attributes) && Objects.equals(this.id, opsgenieServiceResponseData.id) - && Objects.equals(this.type, opsgenieServiceResponseData.type); + && Objects.equals(this.type, opsgenieServiceResponseData.type) + && Objects.equals( + this.additionalProperties, opsgenieServiceResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateAttributes.java index 875b9726a21..7b1bd3655db 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -134,6 +138,52 @@ public void setRegion(OpsgenieServiceRegionType region) { this.region = region; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceUpdateAttributes + */ + @JsonAnySetter + public OpsgenieServiceUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,14 @@ public boolean equals(Object o) { return Objects.equals(this.customUrl, opsgenieServiceUpdateAttributes.customUrl) && Objects.equals(this.name, opsgenieServiceUpdateAttributes.name) && Objects.equals(this.opsgenieApiKey, opsgenieServiceUpdateAttributes.opsgenieApiKey) - && Objects.equals(this.region, opsgenieServiceUpdateAttributes.region); + && Objects.equals(this.region, opsgenieServiceUpdateAttributes.region) + && Objects.equals( + this.additionalProperties, opsgenieServiceUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(customUrl, name, opsgenieApiKey, region); + return Objects.hash(customUrl, name, opsgenieApiKey, region, additionalProperties); } @Override @@ -164,6 +216,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" opsgenieApiKey: ").append(toIndentedString(opsgenieApiKey)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateData.java index 9f70694c4fb..965c93d344d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Opsgenie service for an update request. */ @@ -112,6 +116,52 @@ public void setType(OpsgenieServiceType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceUpdateData + */ + @JsonAnySetter + public OpsgenieServiceUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,14 @@ public boolean equals(Object o) { OpsgenieServiceUpdateData opsgenieServiceUpdateData = (OpsgenieServiceUpdateData) o; return Objects.equals(this.attributes, opsgenieServiceUpdateData.attributes) && Objects.equals(this.id, opsgenieServiceUpdateData.id) - && Objects.equals(this.type, opsgenieServiceUpdateData.type); + && Objects.equals(this.type, opsgenieServiceUpdateData.type) + && Objects.equals( + this.additionalProperties, opsgenieServiceUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateRequest.java index b157983b433..8b83846e67a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServiceUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update request for an Opsgenie service. */ @@ -52,6 +56,52 @@ public void setData(OpsgenieServiceUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServiceUpdateRequest + */ + @JsonAnySetter + public OpsgenieServiceUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServiceUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } OpsgenieServiceUpdateRequest opsgenieServiceUpdateRequest = (OpsgenieServiceUpdateRequest) o; - return Objects.equals(this.data, opsgenieServiceUpdateRequest.data); + return Objects.equals(this.data, opsgenieServiceUpdateRequest.data) + && Objects.equals( + this.additionalProperties, opsgenieServiceUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OpsgenieServiceUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServicesResponse.java b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServicesResponse.java index 2e9a2de644c..db23158cfff 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OpsgenieServicesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/OpsgenieServicesResponse.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with a list of Opsgenie services. */ @@ -62,6 +66,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OpsgenieServicesResponse + */ + @JsonAnySetter + public OpsgenieServicesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OpsgenieServicesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,13 @@ public boolean equals(Object o) { return false; } OpsgenieServicesResponse opsgenieServicesResponse = (OpsgenieServicesResponse) o; - return Objects.equals(this.data, opsgenieServicesResponse.data); + return Objects.equals(this.data, opsgenieServicesResponse.data) + && Objects.equals(this.additionalProperties, opsgenieServicesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -85,6 +136,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OpsgenieServicesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Organization.java b/src/main/java/com/datadog/api/client/v2/model/Organization.java index 9c08c9a2a1d..0218308a581 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Organization.java +++ b/src/main/java/com/datadog/api/client/v2/model/Organization.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Organization object. */ @@ -108,6 +112,52 @@ public void setType(OrganizationsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Organization + */ + @JsonAnySetter + public Organization putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Organization object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { Organization organization = (Organization) o; return Objects.equals(this.attributes, organization.attributes) && Objects.equals(this.id, organization.id) - && Objects.equals(this.type, organization.type); + && Objects.equals(this.type, organization.type) + && Objects.equals(this.additionalProperties, organization.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/OrganizationAttributes.java b/src/main/java/com/datadog/api/client/v2/model/OrganizationAttributes.java index 565582b6e91..e0653a48ddc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OrganizationAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/OrganizationAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the organization. */ @@ -220,6 +224,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return OrganizationAttributes + */ + @JsonAnySetter + public OrganizationAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this OrganizationAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -237,12 +287,22 @@ public boolean equals(Object o) { && Objects.equals(this.name, organizationAttributes.name) && Objects.equals(this.publicId, organizationAttributes.publicId) && Objects.equals(this.sharing, organizationAttributes.sharing) - && Objects.equals(this.url, organizationAttributes.url); + && Objects.equals(this.url, organizationAttributes.url) + && Objects.equals(this.additionalProperties, organizationAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, description, disabled, modifiedAt, name, publicId, sharing, url); + return Objects.hash( + createdAt, + description, + disabled, + modifiedAt, + name, + publicId, + sharing, + url, + additionalProperties); } @Override @@ -257,6 +317,9 @@ public String toString() { sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" sharing: ").append(toIndentedString(sharing)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Pagination.java b/src/main/java/com/datadog/api/client/v2/model/Pagination.java index d3557871637..c1bf717069c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Pagination.java +++ b/src/main/java/com/datadog/api/client/v2/model/Pagination.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Pagination object. */ @@ -69,6 +73,52 @@ public void setTotalFilteredCount(Long totalFilteredCount) { this.totalFilteredCount = totalFilteredCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Pagination + */ + @JsonAnySetter + public Pagination putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Pagination object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,13 @@ public boolean equals(Object o) { } Pagination pagination = (Pagination) o; return Objects.equals(this.totalCount, pagination.totalCount) - && Objects.equals(this.totalFilteredCount, pagination.totalFilteredCount); + && Objects.equals(this.totalFilteredCount, pagination.totalFilteredCount) + && Objects.equals(this.additionalProperties, pagination.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount, totalFilteredCount); + return Objects.hash(totalCount, totalFilteredCount, additionalProperties); } @Override @@ -94,6 +145,9 @@ public String toString() { sb.append("class Pagination {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" totalFilteredCount: ").append(toIndentedString(totalFilteredCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PartialAPIKey.java b/src/main/java/com/datadog/api/client/v2/model/PartialAPIKey.java index a61778bd800..4aa0eb3a226 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PartialAPIKey.java +++ b/src/main/java/com/datadog/api/client/v2/model/PartialAPIKey.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Partial Datadog API key. */ @@ -125,6 +129,52 @@ public void setType(APIKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PartialAPIKey + */ + @JsonAnySetter + public PartialAPIKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PartialAPIKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, partialApiKey.attributes) && Objects.equals(this.id, partialApiKey.id) && Objects.equals(this.relationships, partialApiKey.relationships) - && Objects.equals(this.type, partialApiKey.type); + && Objects.equals(this.type, partialApiKey.type) + && Objects.equals(this.additionalProperties, partialApiKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -154,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PartialAPIKeyAttributes.java b/src/main/java/com/datadog/api/client/v2/model/PartialAPIKeyAttributes.java index 84ac10f344a..c992939fbca 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PartialAPIKeyAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/PartialAPIKeyAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of a partial API key. */ @@ -92,6 +96,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PartialAPIKeyAttributes + */ + @JsonAnySetter + public PartialAPIKeyAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PartialAPIKeyAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -105,12 +155,13 @@ public boolean equals(Object o) { return Objects.equals(this.createdAt, partialApiKeyAttributes.createdAt) && Objects.equals(this.last4, partialApiKeyAttributes.last4) && Objects.equals(this.modifiedAt, partialApiKeyAttributes.modifiedAt) - && Objects.equals(this.name, partialApiKeyAttributes.name); + && Objects.equals(this.name, partialApiKeyAttributes.name) + && Objects.equals(this.additionalProperties, partialApiKeyAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, last4, modifiedAt, name); + return Objects.hash(createdAt, last4, modifiedAt, name, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" last4: ").append(toIndentedString(last4)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKey.java b/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKey.java index 4a377aab6f3..790d74b9940 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKey.java +++ b/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKey.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Partial Datadog application key. */ @@ -125,6 +129,52 @@ public void setType(ApplicationKeysType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PartialApplicationKey + */ + @JsonAnySetter + public PartialApplicationKey putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PartialApplicationKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, partialApplicationKey.attributes) && Objects.equals(this.id, partialApplicationKey.id) && Objects.equals(this.relationships, partialApplicationKey.relationships) - && Objects.equals(this.type, partialApplicationKey.type); + && Objects.equals(this.type, partialApplicationKey.type) + && Objects.equals(this.additionalProperties, partialApplicationKey.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -154,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyAttributes.java b/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyAttributes.java index e93a94d24d3..5f9876261b1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -127,6 +131,52 @@ public void setScopes(List scopes) { this.scopes = JsonNullable.>of(scopes); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PartialApplicationKeyAttributes + */ + @JsonAnySetter + public PartialApplicationKeyAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PartialApplicationKeyAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -141,12 +191,14 @@ public boolean equals(Object o) { return Objects.equals(this.createdAt, partialApplicationKeyAttributes.createdAt) && Objects.equals(this.last4, partialApplicationKeyAttributes.last4) && Objects.equals(this.name, partialApplicationKeyAttributes.name) - && Objects.equals(this.scopes, partialApplicationKeyAttributes.scopes); + && Objects.equals(this.scopes, partialApplicationKeyAttributes.scopes) + && Objects.equals( + this.additionalProperties, partialApplicationKeyAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, last4, name, scopes); + return Objects.hash(createdAt, last4, name, scopes, additionalProperties); } @Override @@ -157,6 +209,9 @@ public String toString() { sb.append(" last4: ").append(toIndentedString(last4)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyResponse.java b/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyResponse.java index 44a8dbd415c..d6808deffa0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/PartialApplicationKeyResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response for retrieving a partial application key. */ @@ -85,6 +89,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PartialApplicationKeyResponse + */ + @JsonAnySetter + public PartialApplicationKeyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PartialApplicationKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { } PartialApplicationKeyResponse partialApplicationKeyResponse = (PartialApplicationKeyResponse) o; return Objects.equals(this.data, partialApplicationKeyResponse.data) - && Objects.equals(this.included, partialApplicationKeyResponse.included); + && Objects.equals(this.included, partialApplicationKeyResponse.included) + && Objects.equals( + this.additionalProperties, partialApplicationKeyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class PartialApplicationKeyResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Permission.java b/src/main/java/com/datadog/api/client/v2/model/Permission.java index d98715bba21..16d2db35d8b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Permission.java +++ b/src/main/java/com/datadog/api/client/v2/model/Permission.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Permission object. */ @@ -108,6 +112,52 @@ public void setType(PermissionsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Permission + */ + @JsonAnySetter + public Permission putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Permission object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,12 +170,13 @@ public boolean equals(Object o) { Permission permission = (Permission) o; return Objects.equals(this.attributes, permission.attributes) && Objects.equals(this.id, permission.id) - && Objects.equals(this.type, permission.type); + && Objects.equals(this.type, permission.type) + && Objects.equals(this.additionalProperties, permission.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -135,6 +186,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PermissionAttributes.java b/src/main/java/com/datadog/api/client/v2/model/PermissionAttributes.java index 786c584a757..efd13649ea1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PermissionAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/PermissionAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of a permission. */ @@ -195,6 +199,52 @@ public void setRestricted(Boolean restricted) { this.restricted = restricted; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PermissionAttributes + */ + @JsonAnySetter + public PermissionAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PermissionAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -211,13 +261,21 @@ public boolean equals(Object o) { && Objects.equals(this.displayType, permissionAttributes.displayType) && Objects.equals(this.groupName, permissionAttributes.groupName) && Objects.equals(this.name, permissionAttributes.name) - && Objects.equals(this.restricted, permissionAttributes.restricted); + && Objects.equals(this.restricted, permissionAttributes.restricted) + && Objects.equals(this.additionalProperties, permissionAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - created, description, displayName, displayType, groupName, name, restricted); + created, + description, + displayName, + displayType, + groupName, + name, + restricted, + additionalProperties); } @Override @@ -231,6 +289,9 @@ public String toString() { sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" restricted: ").append(toIndentedString(restricted)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/PermissionsResponse.java b/src/main/java/com/datadog/api/client/v2/model/PermissionsResponse.java index 3cbca453d91..726b49ae68f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PermissionsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/PermissionsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Payload with API-returned permissions. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return PermissionsResponse + */ + @JsonAnySetter + public PermissionsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this PermissionsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } PermissionsResponse permissionsResponse = (PermissionsResponse) o; - return Objects.equals(this.data, permissionsResponse.data); + return Objects.equals(this.data, permissionsResponse.data) + && Objects.equals(this.additionalProperties, permissionsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PermissionsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMeta.java b/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMeta.java index e644a05f0ba..efd4a7992c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response metadata object. */ @@ -43,6 +47,52 @@ public void setPage(ProcessSummariesMetaPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ProcessSummariesMeta + */ + @JsonAnySetter + public ProcessSummariesMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ProcessSummariesMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } ProcessSummariesMeta processSummariesMeta = (ProcessSummariesMeta) o; - return Objects.equals(this.page, processSummariesMeta.page); + return Objects.equals(this.page, processSummariesMeta.page) + && Objects.equals(this.additionalProperties, processSummariesMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessSummariesMeta {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMetaPage.java b/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMetaPage.java index d82e915bdc0..f85a121dd2d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMetaPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesMetaPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes. */ @@ -70,6 +74,52 @@ public void setSize(Integer size) { this.size = size; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ProcessSummariesMetaPage + */ + @JsonAnySetter + public ProcessSummariesMetaPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ProcessSummariesMetaPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } ProcessSummariesMetaPage processSummariesMetaPage = (ProcessSummariesMetaPage) o; return Objects.equals(this.after, processSummariesMetaPage.after) - && Objects.equals(this.size, processSummariesMetaPage.size); + && Objects.equals(this.size, processSummariesMetaPage.size) + && Objects.equals(this.additionalProperties, processSummariesMetaPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after, size); + return Objects.hash(after, size, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class ProcessSummariesMetaPage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesResponse.java b/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesResponse.java index a2f1a829069..d0db55e6c19 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessSummariesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List of process summaries. */ @@ -84,6 +88,52 @@ public void setMeta(ProcessSummariesMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ProcessSummariesResponse + */ + @JsonAnySetter + public ProcessSummariesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ProcessSummariesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,13 @@ public boolean equals(Object o) { } ProcessSummariesResponse processSummariesResponse = (ProcessSummariesResponse) o; return Objects.equals(this.data, processSummariesResponse.data) - && Objects.equals(this.meta, processSummariesResponse.meta); + && Objects.equals(this.meta, processSummariesResponse.meta) + && Objects.equals(this.additionalProperties, processSummariesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -109,6 +160,9 @@ public String toString() { sb.append("class ProcessSummariesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessSummary.java b/src/main/java/com/datadog/api/client/v2/model/ProcessSummary.java index 7589c9b44d2..fd9b51cb6f5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessSummary.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessSummary.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Process summary object. */ @@ -99,6 +103,52 @@ public void setType(ProcessSummaryType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ProcessSummary + */ + @JsonAnySetter + public ProcessSummary putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ProcessSummary object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { ProcessSummary processSummary = (ProcessSummary) o; return Objects.equals(this.attributes, processSummary.attributes) && Objects.equals(this.id, processSummary.id) - && Objects.equals(this.type, processSummary.type); + && Objects.equals(this.type, processSummary.type) + && Objects.equals(this.additionalProperties, processSummary.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessSummaryAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ProcessSummaryAttributes.java index d3e040e257b..f9deaaf5aa4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessSummaryAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessSummaryAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes for a process summary. */ @@ -229,6 +233,52 @@ public void setUser(String user) { this.user = user; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ProcessSummaryAttributes + */ + @JsonAnySetter + public ProcessSummaryAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ProcessSummaryAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -246,12 +296,14 @@ public boolean equals(Object o) { && Objects.equals(this.start, processSummaryAttributes.start) && Objects.equals(this.tags, processSummaryAttributes.tags) && Objects.equals(this.timestamp, processSummaryAttributes.timestamp) - && Objects.equals(this.user, processSummaryAttributes.user); + && Objects.equals(this.user, processSummaryAttributes.user) + && Objects.equals(this.additionalProperties, processSummaryAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cmdline, host, pid, ppid, start, tags, timestamp, user); + return Objects.hash( + cmdline, host, pid, ppid, start, tags, timestamp, user, additionalProperties); } @Override @@ -266,6 +318,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/QueryFormula.java b/src/main/java/com/datadog/api/client/v2/model/QueryFormula.java index ada3711fb1e..48a5e1f8965 100644 --- a/src/main/java/com/datadog/api/client/v2/model/QueryFormula.java +++ b/src/main/java/com/datadog/api/client/v2/model/QueryFormula.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A formula for calculation based on one or more queries. */ @@ -75,6 +79,52 @@ public void setLimit(FormulaLimit limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return QueryFormula + */ + @JsonAnySetter + public QueryFormula putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this QueryFormula object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,13 @@ public boolean equals(Object o) { } QueryFormula queryFormula = (QueryFormula) o; return Objects.equals(this.formula, queryFormula.formula) - && Objects.equals(this.limit, queryFormula.limit); + && Objects.equals(this.limit, queryFormula.limit) + && Objects.equals(this.additionalProperties, queryFormula.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formula, limit); + return Objects.hash(formula, limit, additionalProperties); } @Override @@ -100,6 +151,9 @@ public String toString() { sb.append("class QueryFormula {\n"); sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseries.java b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseries.java index 1f6349ba320..6c0076e2b51 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseries.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseries.java @@ -6,9 +6,13 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A timeseries array. */ @@ -19,6 +23,52 @@ public class RUMAggregateBucketValueTimeseries extends ArrayList { @JsonIgnore public boolean unparsed = false; + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMAggregateBucketValueTimeseries + */ + @JsonAnySetter + public RUMAggregateBucketValueTimeseries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMAggregateBucketValueTimeseries object is equal to o. */ @Override public boolean equals(Object o) { @@ -33,7 +83,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(super.hashCode()); + return Objects.hash(additionalProperties, super.hashCode()); } @Override @@ -41,6 +91,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMAggregateBucketValueTimeseries {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseriesPoint.java b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseriesPoint.java index 7733980c9d4..8f1c8f9801e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseriesPoint.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateBucketValueTimeseriesPoint.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A timeseries point. */ @@ -70,6 +74,52 @@ public void setValue(Double value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMAggregateBucketValueTimeseriesPoint + */ + @JsonAnySetter + public RUMAggregateBucketValueTimeseriesPoint putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMAggregateBucketValueTimeseriesPoint object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { RUMAggregateBucketValueTimeseriesPoint rumAggregateBucketValueTimeseriesPoint = (RUMAggregateBucketValueTimeseriesPoint) o; return Objects.equals(this.time, rumAggregateBucketValueTimeseriesPoint.time) - && Objects.equals(this.value, rumAggregateBucketValueTimeseriesPoint.value); + && Objects.equals(this.value, rumAggregateBucketValueTimeseriesPoint.value) + && Objects.equals( + this.additionalProperties, rumAggregateBucketValueTimeseriesPoint.additionalProperties); } @Override public int hashCode() { - return Objects.hash(time, value); + return Objects.hash(time, value, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class RUMAggregateBucketValueTimeseriesPoint {\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateRequest.java index f8c3d31521d..cb4b653230b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateRequest.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -177,6 +181,52 @@ public void setPage(RUMQueryPageOptions page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMAggregateRequest + */ + @JsonAnySetter + public RUMAggregateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMAggregateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -191,12 +241,13 @@ public boolean equals(Object o) { && Objects.equals(this.filter, rumAggregateRequest.filter) && Objects.equals(this.groupBy, rumAggregateRequest.groupBy) && Objects.equals(this.options, rumAggregateRequest.options) - && Objects.equals(this.page, rumAggregateRequest.page); + && Objects.equals(this.page, rumAggregateRequest.page) + && Objects.equals(this.additionalProperties, rumAggregateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy, options, page); + return Objects.hash(compute, filter, groupBy, options, page, additionalProperties); } @Override @@ -208,6 +259,9 @@ public String toString() { sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateSort.java b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateSort.java index fdc93a2dc70..0ddf9a93708 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMAggregateSort.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMAggregateSort.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A sort rule. */ @@ -131,6 +135,52 @@ public void setType(RUMAggregateSortType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMAggregateSort + */ + @JsonAnySetter + public RUMAggregateSort putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMAggregateSort object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, rumAggregateSort.aggregation) && Objects.equals(this.metric, rumAggregateSort.metric) && Objects.equals(this.order, rumAggregateSort.order) - && Objects.equals(this.type, rumAggregateSort.type); + && Objects.equals(this.type, rumAggregateSort.type) + && Objects.equals(this.additionalProperties, rumAggregateSort.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, metric, order, type); + return Objects.hash(aggregation, metric, order, type, additionalProperties); } @Override @@ -160,6 +211,9 @@ public String toString() { sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMAggregationBucketsResponse.java b/src/main/java/com/datadog/api/client/v2/model/RUMAggregationBucketsResponse.java index 11006312016..4780c7314b0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMAggregationBucketsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMAggregationBucketsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The query results. */ @@ -56,6 +60,52 @@ public void setBuckets(List buckets) { this.buckets = buckets; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMAggregationBucketsResponse + */ + @JsonAnySetter + public RUMAggregationBucketsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMAggregationBucketsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } RUMAggregationBucketsResponse rumAggregationBucketsResponse = (RUMAggregationBucketsResponse) o; - return Objects.equals(this.buckets, rumAggregationBucketsResponse.buckets); + return Objects.equals(this.buckets, rumAggregationBucketsResponse.buckets) + && Objects.equals( + this.additionalProperties, rumAggregationBucketsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(buckets); + return Objects.hash(buckets, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMAggregationBucketsResponse {\n"); sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMAnalyticsAggregateResponse.java b/src/main/java/com/datadog/api/client/v2/model/RUMAnalyticsAggregateResponse.java index 7cb0388b852..9fe86c4691f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMAnalyticsAggregateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMAnalyticsAggregateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response object for the RUM events aggregate API endpoint. */ @@ -97,6 +101,52 @@ public void setMeta(RUMResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMAnalyticsAggregateResponse + */ + @JsonAnySetter + public RUMAnalyticsAggregateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMAnalyticsAggregateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -109,12 +159,14 @@ public boolean equals(Object o) { RUMAnalyticsAggregateResponse rumAnalyticsAggregateResponse = (RUMAnalyticsAggregateResponse) o; return Objects.equals(this.data, rumAnalyticsAggregateResponse.data) && Objects.equals(this.links, rumAnalyticsAggregateResponse.links) - && Objects.equals(this.meta, rumAnalyticsAggregateResponse.meta); + && Objects.equals(this.meta, rumAnalyticsAggregateResponse.meta) + && Objects.equals( + this.additionalProperties, rumAnalyticsAggregateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -124,6 +176,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplication.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplication.java index 6179c80b569..c732aa4383a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplication.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplication.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application. */ @@ -112,6 +116,52 @@ public void setType(RUMApplicationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplication + */ + @JsonAnySetter + public RUMApplication putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplication object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { RUMApplication rumApplication = (RUMApplication) o; return Objects.equals(this.attributes, rumApplication.attributes) && Objects.equals(this.id, rumApplication.id) - && Objects.equals(this.type, rumApplication.type); + && Objects.equals(this.type, rumApplication.type) + && Objects.equals(this.additionalProperties, rumApplication.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationAttributes.java index 02c66826868..de8fa81ee37 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application attributes. */ @@ -313,6 +317,52 @@ public void setUpdatedByHandle(String updatedByHandle) { this.updatedByHandle = updatedByHandle; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationAttributes + */ + @JsonAnySetter + public RUMApplicationAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -333,7 +383,8 @@ public boolean equals(Object o) { && Objects.equals(this.orgId, rumApplicationAttributes.orgId) && Objects.equals(this.type, rumApplicationAttributes.type) && Objects.equals(this.updatedAt, rumApplicationAttributes.updatedAt) - && Objects.equals(this.updatedByHandle, rumApplicationAttributes.updatedByHandle); + && Objects.equals(this.updatedByHandle, rumApplicationAttributes.updatedByHandle) + && Objects.equals(this.additionalProperties, rumApplicationAttributes.additionalProperties); } @Override @@ -349,7 +400,8 @@ public int hashCode() { orgId, type, updatedAt, - updatedByHandle); + updatedByHandle, + additionalProperties); } @Override @@ -367,6 +419,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" updatedByHandle: ").append(toIndentedString(updatedByHandle)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreate.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreate.java index a02c2d9f3d7..c159add9031 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application creation. */ @@ -86,6 +90,52 @@ public void setType(RUMApplicationCreateType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationCreate + */ + @JsonAnySetter + public RUMApplicationCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } RUMApplicationCreate rumApplicationCreate = (RUMApplicationCreate) o; return Objects.equals(this.attributes, rumApplicationCreate.attributes) - && Objects.equals(this.type, rumApplicationCreate.type); + && Objects.equals(this.type, rumApplicationCreate.type) + && Objects.equals(this.additionalProperties, rumApplicationCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class RUMApplicationCreate {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateAttributes.java index 5c9dcb4bd73..08f785b780a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application creation attributes. */ @@ -78,6 +82,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationCreateAttributes + */ + @JsonAnySetter + public RUMApplicationCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -90,12 +140,14 @@ public boolean equals(Object o) { RUMApplicationCreateAttributes rumApplicationCreateAttributes = (RUMApplicationCreateAttributes) o; return Objects.equals(this.name, rumApplicationCreateAttributes.name) - && Objects.equals(this.type, rumApplicationCreateAttributes.type); + && Objects.equals(this.type, rumApplicationCreateAttributes.type) + && Objects.equals( + this.additionalProperties, rumApplicationCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type); + return Objects.hash(name, type, additionalProperties); } @Override @@ -104,6 +156,9 @@ public String toString() { sb.append("class RUMApplicationCreateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateRequest.java index 96c2ba2ef7a..b2a6c09c71e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application creation request attributes. */ @@ -52,6 +56,52 @@ public void setData(RUMApplicationCreate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationCreateRequest + */ + @JsonAnySetter + public RUMApplicationCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } RUMApplicationCreateRequest rumApplicationCreateRequest = (RUMApplicationCreateRequest) o; - return Objects.equals(this.data, rumApplicationCreateRequest.data); + return Objects.equals(this.data, rumApplicationCreateRequest.data) + && Objects.equals( + this.additionalProperties, rumApplicationCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMApplicationCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationList.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationList.java index da51bbe4504..fb8a65176f2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationList.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationList.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application list. */ @@ -86,6 +90,52 @@ public void setType(RUMApplicationListType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationList + */ + @JsonAnySetter + public RUMApplicationList putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationList object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } RUMApplicationList rumApplicationList = (RUMApplicationList) o; return Objects.equals(this.attributes, rumApplicationList.attributes) - && Objects.equals(this.type, rumApplicationList.type); + && Objects.equals(this.type, rumApplicationList.type) + && Objects.equals(this.additionalProperties, rumApplicationList.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class RUMApplicationList {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationListAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationListAttributes.java index 7e36b4b4d74..a4f213767cd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationListAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationListAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application list attributes. */ @@ -287,6 +291,52 @@ public void setUpdatedByHandle(String updatedByHandle) { this.updatedByHandle = updatedByHandle; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationListAttributes + */ + @JsonAnySetter + public RUMApplicationListAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationListAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -306,7 +356,9 @@ public boolean equals(Object o) { && Objects.equals(this.orgId, rumApplicationListAttributes.orgId) && Objects.equals(this.type, rumApplicationListAttributes.type) && Objects.equals(this.updatedAt, rumApplicationListAttributes.updatedAt) - && Objects.equals(this.updatedByHandle, rumApplicationListAttributes.updatedByHandle); + && Objects.equals(this.updatedByHandle, rumApplicationListAttributes.updatedByHandle) + && Objects.equals( + this.additionalProperties, rumApplicationListAttributes.additionalProperties); } @Override @@ -321,7 +373,8 @@ public int hashCode() { orgId, type, updatedAt, - updatedByHandle); + updatedByHandle, + additionalProperties); } @Override @@ -338,6 +391,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" updatedByHandle: ").append(toIndentedString(updatedByHandle)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationResponse.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationResponse.java index e55145c9eae..eb0b22204a3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application response. */ @@ -43,6 +47,52 @@ public void setData(RUMApplication data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationResponse + */ + @JsonAnySetter + public RUMApplicationResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RUMApplicationResponse rumApplicationResponse = (RUMApplicationResponse) o; - return Objects.equals(this.data, rumApplicationResponse.data); + return Objects.equals(this.data, rumApplicationResponse.data) + && Objects.equals(this.additionalProperties, rumApplicationResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMApplicationResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdate.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdate.java index c7af51796d1..da323b7048b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdate.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application update. */ @@ -109,6 +113,52 @@ public void setType(RUMApplicationUpdateType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationUpdate + */ + @JsonAnySetter + public RUMApplicationUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationUpdate object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { RUMApplicationUpdate rumApplicationUpdate = (RUMApplicationUpdate) o; return Objects.equals(this.attributes, rumApplicationUpdate.attributes) && Objects.equals(this.id, rumApplicationUpdate.id) - && Objects.equals(this.type, rumApplicationUpdate.type); + && Objects.equals(this.type, rumApplicationUpdate.type) + && Objects.equals(this.additionalProperties, rumApplicationUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateAttributes.java index 92ba38917f0..3f3946c971a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application update attributes. */ @@ -70,6 +74,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationUpdateAttributes + */ + @JsonAnySetter + public RUMApplicationUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { RUMApplicationUpdateAttributes rumApplicationUpdateAttributes = (RUMApplicationUpdateAttributes) o; return Objects.equals(this.name, rumApplicationUpdateAttributes.name) - && Objects.equals(this.type, rumApplicationUpdateAttributes.type); + && Objects.equals(this.type, rumApplicationUpdateAttributes.type) + && Objects.equals( + this.additionalProperties, rumApplicationUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type); + return Objects.hash(name, type, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class RUMApplicationUpdateAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateRequest.java index 0de1f829431..014426d7d0b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** RUM application update request. */ @@ -52,6 +56,52 @@ public void setData(RUMApplicationUpdate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationUpdateRequest + */ + @JsonAnySetter + public RUMApplicationUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } RUMApplicationUpdateRequest rumApplicationUpdateRequest = (RUMApplicationUpdateRequest) o; - return Objects.equals(this.data, rumApplicationUpdateRequest.data); + return Objects.equals(this.data, rumApplicationUpdateRequest.data) + && Objects.equals( + this.additionalProperties, rumApplicationUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMApplicationUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationsResponse.java b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationsResponse.java index af2da35893b..7f11cba7e6e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMApplicationsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMApplicationsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** RUM applications response. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMApplicationsResponse + */ + @JsonAnySetter + public RUMApplicationsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMApplicationsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } RUMApplicationsResponse rumApplicationsResponse = (RUMApplicationsResponse) o; - return Objects.equals(this.data, rumApplicationsResponse.data); + return Objects.equals(this.data, rumApplicationsResponse.data) + && Objects.equals(this.additionalProperties, rumApplicationsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMApplicationsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMBucketResponse.java b/src/main/java/com/datadog/api/client/v2/model/RUMBucketResponse.java index de6f7b29eee..8186a9b5da7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMBucketResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMBucketResponse.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -84,6 +86,52 @@ public void setComputes(Map computes) { this.computes = computes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMBucketResponse + */ + @JsonAnySetter + public RUMBucketResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMBucketResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +143,13 @@ public boolean equals(Object o) { } RUMBucketResponse rumBucketResponse = (RUMBucketResponse) o; return Objects.equals(this.by, rumBucketResponse.by) - && Objects.equals(this.computes, rumBucketResponse.computes); + && Objects.equals(this.computes, rumBucketResponse.computes) + && Objects.equals(this.additionalProperties, rumBucketResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(by, computes); + return Objects.hash(by, computes, additionalProperties); } @Override @@ -109,6 +158,9 @@ public String toString() { sb.append("class RUMBucketResponse {\n"); sb.append(" by: ").append(toIndentedString(by)).append("\n"); sb.append(" computes: ").append(toIndentedString(computes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMCompute.java b/src/main/java/com/datadog/api/client/v2/model/RUMCompute.java index c931048fa12..8e149149da2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A compute rule to compute metrics or timeseries. */ @@ -137,6 +141,52 @@ public void setType(RUMComputeType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMCompute + */ + @JsonAnySetter + public RUMCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -150,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.aggregation, rumCompute.aggregation) && Objects.equals(this.interval, rumCompute.interval) && Objects.equals(this.metric, rumCompute.metric) - && Objects.equals(this.type, rumCompute.type); + && Objects.equals(this.type, rumCompute.type) + && Objects.equals(this.additionalProperties, rumCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, interval, metric, type); + return Objects.hash(aggregation, interval, metric, type, additionalProperties); } @Override @@ -166,6 +217,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMEvent.java b/src/main/java/com/datadog/api/client/v2/model/RUMEvent.java index 94cafa65d6c..623a57e7fe8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMEvent.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMEvent.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object description of a RUM event after being processed and stored by Datadog. */ @@ -99,6 +103,52 @@ public void setType(RUMEventType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMEvent + */ + @JsonAnySetter + public RUMEvent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMEvent object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { RUMEvent rumEvent = (RUMEvent) o; return Objects.equals(this.attributes, rumEvent.attributes) && Objects.equals(this.id, rumEvent.id) - && Objects.equals(this.type, rumEvent.type); + && Objects.equals(this.type, rumEvent.type) + && Objects.equals(this.additionalProperties, rumEvent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMEventAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RUMEventAttributes.java index c2efe1ba6db..152e54c4bbd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMEventAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMEventAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -141,6 +143,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMEventAttributes + */ + @JsonAnySetter + public RUMEventAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMEventAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +202,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, rumEventAttributes.attributes) && Objects.equals(this.service, rumEventAttributes.service) && Objects.equals(this.tags, rumEventAttributes.tags) - && Objects.equals(this.timestamp, rumEventAttributes.timestamp); + && Objects.equals(this.timestamp, rumEventAttributes.timestamp) + && Objects.equals(this.additionalProperties, rumEventAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, service, tags, timestamp); + return Objects.hash(attributes, service, tags, timestamp, additionalProperties); } @Override @@ -170,6 +219,9 @@ public String toString() { sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMEventsResponse.java b/src/main/java/com/datadog/api/client/v2/model/RUMEventsResponse.java index a9f0559443a..f4ea7cb26a0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMEventsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMEventsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response object with all events matching the request and pagination information. */ @@ -110,6 +114,52 @@ public void setMeta(RUMResponseMetadata meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMEventsResponse + */ + @JsonAnySetter + public RUMEventsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMEventsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { RUMEventsResponse rumEventsResponse = (RUMEventsResponse) o; return Objects.equals(this.data, rumEventsResponse.data) && Objects.equals(this.links, rumEventsResponse.links) - && Objects.equals(this.meta, rumEventsResponse.meta); + && Objects.equals(this.meta, rumEventsResponse.meta) + && Objects.equals(this.additionalProperties, rumEventsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/RUMGroupBy.java index 05b12bd6c1e..5f2200efedc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group-by rule. */ @@ -181,6 +185,52 @@ public void setTotal(RUMGroupByTotal total) { this.total = total; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMGroupBy + */ + @JsonAnySetter + public RUMGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -196,12 +246,13 @@ public boolean equals(Object o) { && Objects.equals(this.limit, rumGroupBy.limit) && Objects.equals(this.missing, rumGroupBy.missing) && Objects.equals(this.sort, rumGroupBy.sort) - && Objects.equals(this.total, rumGroupBy.total); + && Objects.equals(this.total, rumGroupBy.total) + && Objects.equals(this.additionalProperties, rumGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(facet, histogram, limit, missing, sort, total); + return Objects.hash(facet, histogram, limit, missing, sort, total, additionalProperties); } @Override @@ -214,6 +265,9 @@ public String toString() { sb.append(" missing: ").append(toIndentedString(missing)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMGroupByHistogram.java b/src/main/java/com/datadog/api/client/v2/model/RUMGroupByHistogram.java index 6f14f9dfdcf..dd9f63d588b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMGroupByHistogram.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMGroupByHistogram.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -109,6 +113,52 @@ public void setMin(Double min) { this.min = min; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMGroupByHistogram + */ + @JsonAnySetter + public RUMGroupByHistogram putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMGroupByHistogram object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { RUMGroupByHistogram rumGroupByHistogram = (RUMGroupByHistogram) o; return Objects.equals(this.interval, rumGroupByHistogram.interval) && Objects.equals(this.max, rumGroupByHistogram.max) - && Objects.equals(this.min, rumGroupByHistogram.min); + && Objects.equals(this.min, rumGroupByHistogram.min) + && Objects.equals(this.additionalProperties, rumGroupByHistogram.additionalProperties); } @Override public int hashCode() { - return Objects.hash(interval, max, min); + return Objects.hash(interval, max, min, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMQueryFilter.java b/src/main/java/com/datadog/api/client/v2/model/RUMQueryFilter.java index 51040572e66..57b9cb86025 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMQueryFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMQueryFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The search and filter query settings. */ @@ -100,6 +104,52 @@ public void setTo(String to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMQueryFilter + */ + @JsonAnySetter + public RUMQueryFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMQueryFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -112,12 +162,13 @@ public boolean equals(Object o) { RUMQueryFilter rumQueryFilter = (RUMQueryFilter) o; return Objects.equals(this.from, rumQueryFilter.from) && Objects.equals(this.query, rumQueryFilter.query) - && Objects.equals(this.to, rumQueryFilter.to); + && Objects.equals(this.to, rumQueryFilter.to) + && Objects.equals(this.additionalProperties, rumQueryFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, query, to); + return Objects.hash(from, query, to, additionalProperties); } @Override @@ -127,6 +178,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMQueryOptions.java b/src/main/java/com/datadog/api/client/v2/model/RUMQueryOptions.java index c3f304af5fd..4ac87618d8f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMQueryOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMQueryOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -73,6 +77,52 @@ public void setTimezone(String timezone) { this.timezone = timezone; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMQueryOptions + */ + @JsonAnySetter + public RUMQueryOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMQueryOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } RUMQueryOptions rumQueryOptions = (RUMQueryOptions) o; return Objects.equals(this.timeOffset, rumQueryOptions.timeOffset) - && Objects.equals(this.timezone, rumQueryOptions.timezone); + && Objects.equals(this.timezone, rumQueryOptions.timezone) + && Objects.equals(this.additionalProperties, rumQueryOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timeOffset, timezone); + return Objects.hash(timeOffset, timezone, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class RUMQueryOptions {\n"); sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMQueryPageOptions.java b/src/main/java/com/datadog/api/client/v2/model/RUMQueryPageOptions.java index 1bd2cb0823a..fcc54d2992f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMQueryPageOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMQueryPageOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes for listing events. */ @@ -69,6 +73,52 @@ public void setLimit(Integer limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMQueryPageOptions + */ + @JsonAnySetter + public RUMQueryPageOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMQueryPageOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,13 @@ public boolean equals(Object o) { } RUMQueryPageOptions rumQueryPageOptions = (RUMQueryPageOptions) o; return Objects.equals(this.cursor, rumQueryPageOptions.cursor) - && Objects.equals(this.limit, rumQueryPageOptions.limit); + && Objects.equals(this.limit, rumQueryPageOptions.limit) + && Objects.equals(this.additionalProperties, rumQueryPageOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor, limit); + return Objects.hash(cursor, limit, additionalProperties); } @Override @@ -94,6 +145,9 @@ public String toString() { sb.append("class RUMQueryPageOptions {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMResponseLinks.java b/src/main/java/com/datadog/api/client/v2/model/RUMResponseLinks.java index f2b245d6f55..be24cd714aa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Links attributes. */ @@ -43,6 +47,52 @@ public void setNext(String next) { this.next = next; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMResponseLinks + */ + @JsonAnySetter + public RUMResponseLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RUMResponseLinks rumResponseLinks = (RUMResponseLinks) o; - return Objects.equals(this.next, rumResponseLinks.next); + return Objects.equals(this.next, rumResponseLinks.next) + && Objects.equals(this.additionalProperties, rumResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(next); + return Objects.hash(next, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMResponseLinks {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMResponseMetadata.java b/src/main/java/com/datadog/api/client/v2/model/RUMResponseMetadata.java index e1b1a90bccb..ce6f604101c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMResponseMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMResponseMetadata.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The metadata associated with a request. */ @@ -164,6 +168,52 @@ public void setWarnings(List warnings) { this.warnings = warnings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMResponseMetadata + */ + @JsonAnySetter + public RUMResponseMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMResponseMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -178,12 +228,13 @@ public boolean equals(Object o) { && Objects.equals(this.page, rumResponseMetadata.page) && Objects.equals(this.requestId, rumResponseMetadata.requestId) && Objects.equals(this.status, rumResponseMetadata.status) - && Objects.equals(this.warnings, rumResponseMetadata.warnings); + && Objects.equals(this.warnings, rumResponseMetadata.warnings) + && Objects.equals(this.additionalProperties, rumResponseMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(elapsed, page, requestId, status, warnings); + return Objects.hash(elapsed, page, requestId, status, warnings, additionalProperties); } @Override @@ -195,6 +246,9 @@ public String toString() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMResponsePage.java b/src/main/java/com/datadog/api/client/v2/model/RUMResponsePage.java index 104a3163e2e..0b5a2112b7c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMResponsePage.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMResponsePage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes. */ @@ -43,6 +47,52 @@ public void setAfter(String after) { this.after = after; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMResponsePage + */ + @JsonAnySetter + public RUMResponsePage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMResponsePage object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RUMResponsePage rumResponsePage = (RUMResponsePage) o; - return Objects.equals(this.after, rumResponsePage.after); + return Objects.equals(this.after, rumResponsePage.after) + && Objects.equals(this.additionalProperties, rumResponsePage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after); + return Objects.hash(after, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RUMResponsePage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMSearchEventsRequest.java b/src/main/java/com/datadog/api/client/v2/model/RUMSearchEventsRequest.java index f5269b95f04..1719b48f439 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMSearchEventsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMSearchEventsRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The request for a RUM events list. */ @@ -127,6 +131,52 @@ public void setSort(RUMSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMSearchEventsRequest + */ + @JsonAnySetter + public RUMSearchEventsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMSearchEventsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,12 +190,13 @@ public boolean equals(Object o) { return Objects.equals(this.filter, rumSearchEventsRequest.filter) && Objects.equals(this.options, rumSearchEventsRequest.options) && Objects.equals(this.page, rumSearchEventsRequest.page) - && Objects.equals(this.sort, rumSearchEventsRequest.sort); + && Objects.equals(this.sort, rumSearchEventsRequest.sort) + && Objects.equals(this.additionalProperties, rumSearchEventsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, options, page, sort); + return Objects.hash(filter, options, page, sort, additionalProperties); } @Override @@ -156,6 +207,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RUMWarning.java b/src/main/java/com/datadog/api/client/v2/model/RUMWarning.java index e7aa2eda19c..a1c4d2d466d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RUMWarning.java +++ b/src/main/java/com/datadog/api/client/v2/model/RUMWarning.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A warning message indicating something that went wrong with the query. */ @@ -94,6 +98,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RUMWarning + */ + @JsonAnySetter + public RUMWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RUMWarning object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { RUMWarning rumWarning = (RUMWarning) o; return Objects.equals(this.code, rumWarning.code) && Objects.equals(this.detail, rumWarning.detail) - && Objects.equals(this.title, rumWarning.title); + && Objects.equals(this.title, rumWarning.title) + && Objects.equals(this.additionalProperties, rumWarning.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, detail, title); + return Objects.hash(code, detail, title, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachment.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachment.java index 2c9d7899035..188f085954c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachment.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachment.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A relationship reference for attachments. */ @@ -63,6 +67,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToIncidentAttachment + */ + @JsonAnySetter + public RelationshipToIncidentAttachment putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToIncidentAttachment object is equal to o. */ @Override public boolean equals(Object o) { @@ -74,12 +124,14 @@ public boolean equals(Object o) { } RelationshipToIncidentAttachment relationshipToIncidentAttachment = (RelationshipToIncidentAttachment) o; - return Objects.equals(this.data, relationshipToIncidentAttachment.data); + return Objects.equals(this.data, relationshipToIncidentAttachment.data) + && Objects.equals( + this.additionalProperties, relationshipToIncidentAttachment.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -87,6 +139,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToIncidentAttachment {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachmentData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachmentData.java index 21318b0badd..d39f7af15a5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachmentData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentAttachmentData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The attachment relationship data. */ @@ -83,6 +87,52 @@ public void setType(IncidentAttachmentType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToIncidentAttachmentData + */ + @JsonAnySetter + public RelationshipToIncidentAttachmentData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToIncidentAttachmentData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { RelationshipToIncidentAttachmentData relationshipToIncidentAttachmentData = (RelationshipToIncidentAttachmentData) o; return Objects.equals(this.id, relationshipToIncidentAttachmentData.id) - && Objects.equals(this.type, relationshipToIncidentAttachmentData.type); + && Objects.equals(this.type, relationshipToIncidentAttachmentData.type) + && Objects.equals( + this.additionalProperties, relationshipToIncidentAttachmentData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class RelationshipToIncidentAttachmentData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadataData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadataData.java index b53437d57d2..091a424b931 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadataData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadataData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A relationship reference for an integration metadata object. */ @@ -85,6 +89,53 @@ public void setType(IncidentIntegrationMetadataType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToIncidentIntegrationMetadataData + */ + @JsonAnySetter + public RelationshipToIncidentIntegrationMetadataData putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToIncidentIntegrationMetadataData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +148,15 @@ public boolean equals(Object o) { RelationshipToIncidentIntegrationMetadataData relationshipToIncidentIntegrationMetadataData = (RelationshipToIncidentIntegrationMetadataData) o; return Objects.equals(this.id, relationshipToIncidentIntegrationMetadataData.id) - && Objects.equals(this.type, relationshipToIncidentIntegrationMetadataData.type); + && Objects.equals(this.type, relationshipToIncidentIntegrationMetadataData.type) + && Objects.equals( + this.additionalProperties, + relationshipToIncidentIntegrationMetadataData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -111,6 +165,9 @@ public String toString() { sb.append("class RelationshipToIncidentIntegrationMetadataData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadatas.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadatas.java index 49c312783ff..c5be770a7ec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadatas.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentIntegrationMetadatas.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** A relationship reference for multiple integration metadata objects. */ @@ -64,6 +68,53 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToIncidentIntegrationMetadatas + */ + @JsonAnySetter + public RelationshipToIncidentIntegrationMetadatas putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToIncidentIntegrationMetadatas object is equal to o. */ @Override public boolean equals(Object o) { @@ -75,12 +126,15 @@ public boolean equals(Object o) { } RelationshipToIncidentIntegrationMetadatas relationshipToIncidentIntegrationMetadatas = (RelationshipToIncidentIntegrationMetadatas) o; - return Objects.equals(this.data, relationshipToIncidentIntegrationMetadatas.data); + return Objects.equals(this.data, relationshipToIncidentIntegrationMetadatas.data) + && Objects.equals( + this.additionalProperties, + relationshipToIncidentIntegrationMetadatas.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -88,6 +142,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToIncidentIntegrationMetadatas {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortem.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortem.java index 7b5f2ab1283..571c673ea71 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortem.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortem.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A relationship reference for postmortems. */ @@ -53,6 +57,52 @@ public void setData(RelationshipToIncidentPostmortemData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToIncidentPostmortem + */ + @JsonAnySetter + public RelationshipToIncidentPostmortem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToIncidentPostmortem object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } RelationshipToIncidentPostmortem relationshipToIncidentPostmortem = (RelationshipToIncidentPostmortem) o; - return Objects.equals(this.data, relationshipToIncidentPostmortem.data); + return Objects.equals(this.data, relationshipToIncidentPostmortem.data) + && Objects.equals( + this.additionalProperties, relationshipToIncidentPostmortem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToIncidentPostmortem {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortemData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortemData.java index 0469354770e..2dc5b1ef6bc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortemData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToIncidentPostmortemData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The postmortem relationship data. */ @@ -83,6 +87,52 @@ public void setType(IncidentPostmortemType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToIncidentPostmortemData + */ + @JsonAnySetter + public RelationshipToIncidentPostmortemData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToIncidentPostmortemData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { RelationshipToIncidentPostmortemData relationshipToIncidentPostmortemData = (RelationshipToIncidentPostmortemData) o; return Objects.equals(this.id, relationshipToIncidentPostmortemData.id) - && Objects.equals(this.type, relationshipToIncidentPostmortemData.type); + && Objects.equals(this.type, relationshipToIncidentPostmortemData.type) + && Objects.equals( + this.additionalProperties, relationshipToIncidentPostmortemData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class RelationshipToIncidentPostmortemData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganization.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganization.java index fc3faf1f3e3..6b838e1c10f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganization.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganization.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to an organization. */ @@ -53,6 +57,52 @@ public void setData(RelationshipToOrganizationData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToOrganization + */ + @JsonAnySetter + public RelationshipToOrganization putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToOrganization object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } RelationshipToOrganization relationshipToOrganization = (RelationshipToOrganization) o; - return Objects.equals(this.data, relationshipToOrganization.data); + return Objects.equals(this.data, relationshipToOrganization.data) + && Objects.equals( + this.additionalProperties, relationshipToOrganization.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToOrganization {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizationData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizationData.java index 413d671fd87..5192d5b71a3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizationData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizationData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to organization object. */ @@ -83,6 +87,52 @@ public void setType(OrganizationsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToOrganizationData + */ + @JsonAnySetter + public RelationshipToOrganizationData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToOrganizationData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { RelationshipToOrganizationData relationshipToOrganizationData = (RelationshipToOrganizationData) o; return Objects.equals(this.id, relationshipToOrganizationData.id) - && Objects.equals(this.type, relationshipToOrganizationData.type); + && Objects.equals(this.type, relationshipToOrganizationData.type) + && Objects.equals( + this.additionalProperties, relationshipToOrganizationData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class RelationshipToOrganizationData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizations.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizations.java index 99464540fc7..85c3a6ae9c7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizations.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToOrganizations.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Relationship to organizations. */ @@ -62,6 +66,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToOrganizations + */ + @JsonAnySetter + public RelationshipToOrganizations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToOrganizations object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,14 @@ public boolean equals(Object o) { return false; } RelationshipToOrganizations relationshipToOrganizations = (RelationshipToOrganizations) o; - return Objects.equals(this.data, relationshipToOrganizations.data); + return Objects.equals(this.data, relationshipToOrganizations.data) + && Objects.equals( + this.additionalProperties, relationshipToOrganizations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -85,6 +137,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToOrganizations {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermission.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermission.java index 2071808900d..915c8031199 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermission.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermission.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to a permissions object. */ @@ -43,6 +47,52 @@ public void setData(RelationshipToPermissionData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToPermission + */ + @JsonAnySetter + public RelationshipToPermission putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToPermission object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RelationshipToPermission relationshipToPermission = (RelationshipToPermission) o; - return Objects.equals(this.data, relationshipToPermission.data); + return Objects.equals(this.data, relationshipToPermission.data) + && Objects.equals(this.additionalProperties, relationshipToPermission.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToPermission {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissionData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissionData.java index 5b5950a3718..6f1c1c5cd40 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissionData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissionData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to permission object. */ @@ -73,6 +77,52 @@ public void setType(PermissionsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToPermissionData + */ + @JsonAnySetter + public RelationshipToPermissionData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToPermissionData object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,14 @@ public boolean equals(Object o) { } RelationshipToPermissionData relationshipToPermissionData = (RelationshipToPermissionData) o; return Objects.equals(this.id, relationshipToPermissionData.id) - && Objects.equals(this.type, relationshipToPermissionData.type); + && Objects.equals(this.type, relationshipToPermissionData.type) + && Objects.equals( + this.additionalProperties, relationshipToPermissionData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -98,6 +150,9 @@ public String toString() { sb.append("class RelationshipToPermissionData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissions.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissions.java index b435b097ad8..d2ffcc3d5cf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissions.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToPermissions.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Relationship to multiple permissions objects. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToPermissions + */ + @JsonAnySetter + public RelationshipToPermissions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToPermissions object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } RelationshipToPermissions relationshipToPermissions = (RelationshipToPermissions) o; - return Objects.equals(this.data, relationshipToPermissions.data); + return Objects.equals(this.data, relationshipToPermissions.data) + && Objects.equals( + this.additionalProperties, relationshipToPermissions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToPermissions {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToRole.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToRole.java index 73185b7f522..fdeeddf3748 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToRole.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToRole.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to role. */ @@ -43,6 +47,52 @@ public void setData(RelationshipToRoleData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToRole + */ + @JsonAnySetter + public RelationshipToRole putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToRole object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RelationshipToRole relationshipToRole = (RelationshipToRole) o; - return Objects.equals(this.data, relationshipToRole.data); + return Objects.equals(this.data, relationshipToRole.data) + && Objects.equals(this.additionalProperties, relationshipToRole.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToRole {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoleData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoleData.java index c14c7c7601a..59c8e3a4a26 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoleData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoleData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to role object. */ @@ -73,6 +77,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToRoleData + */ + @JsonAnySetter + public RelationshipToRoleData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToRoleData object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } RelationshipToRoleData relationshipToRoleData = (RelationshipToRoleData) o; return Objects.equals(this.id, relationshipToRoleData.id) - && Objects.equals(this.type, relationshipToRoleData.type); + && Objects.equals(this.type, relationshipToRoleData.type) + && Objects.equals(this.additionalProperties, relationshipToRoleData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class RelationshipToRoleData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoles.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoles.java index f91e8c5d1ad..e252ea40955 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoles.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToRoles.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Relationship to roles. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToRoles + */ + @JsonAnySetter + public RelationshipToRoles putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToRoles object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } RelationshipToRoles relationshipToRoles = (RelationshipToRoles) o; - return Objects.equals(this.data, relationshipToRoles.data); + return Objects.equals(this.data, relationshipToRoles.data) + && Objects.equals(this.additionalProperties, relationshipToRoles.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToRoles {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttribute.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttribute.java index 5abdd0898f6..d6ef855e773 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttribute.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttribute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** AuthN Mapping relationship to SAML Assertion Attribute. */ @@ -53,6 +57,52 @@ public void setData(RelationshipToSAMLAssertionAttributeData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToSAMLAssertionAttribute + */ + @JsonAnySetter + public RelationshipToSAMLAssertionAttribute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToSAMLAssertionAttribute object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } RelationshipToSAMLAssertionAttribute relationshipToSamlAssertionAttribute = (RelationshipToSAMLAssertionAttribute) o; - return Objects.equals(this.data, relationshipToSamlAssertionAttribute.data); + return Objects.equals(this.data, relationshipToSamlAssertionAttribute.data) + && Objects.equals( + this.additionalProperties, relationshipToSamlAssertionAttribute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToSAMLAssertionAttribute {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttributeData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttributeData.java index 597f9734eda..67a2e3d94cc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttributeData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToSAMLAssertionAttributeData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data of AuthN Mapping relationship to SAML Assertion Attribute. */ @@ -83,6 +87,52 @@ public void setType(SAMLAssertionAttributesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToSAMLAssertionAttributeData + */ + @JsonAnySetter + public RelationshipToSAMLAssertionAttributeData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToSAMLAssertionAttributeData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,15 @@ public boolean equals(Object o) { RelationshipToSAMLAssertionAttributeData relationshipToSamlAssertionAttributeData = (RelationshipToSAMLAssertionAttributeData) o; return Objects.equals(this.id, relationshipToSamlAssertionAttributeData.id) - && Objects.equals(this.type, relationshipToSamlAssertionAttributeData.type); + && Objects.equals(this.type, relationshipToSamlAssertionAttributeData.type) + && Objects.equals( + this.additionalProperties, + relationshipToSamlAssertionAttributeData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +162,9 @@ public String toString() { sb.append("class RelationshipToSAMLAssertionAttributeData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinkData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinkData.java index 1aa90e95216..be986211c99 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinkData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinkData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship between a link and a team */ @@ -83,6 +87,52 @@ public void setType(TeamLinkType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToTeamLinkData + */ + @JsonAnySetter + public RelationshipToTeamLinkData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToTeamLinkData object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,14 @@ public boolean equals(Object o) { } RelationshipToTeamLinkData relationshipToTeamLinkData = (RelationshipToTeamLinkData) o; return Objects.equals(this.id, relationshipToTeamLinkData.id) - && Objects.equals(this.type, relationshipToTeamLinkData.type); + && Objects.equals(this.type, relationshipToTeamLinkData.type) + && Objects.equals( + this.additionalProperties, relationshipToTeamLinkData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -108,6 +160,9 @@ public String toString() { sb.append("class RelationshipToTeamLinkData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinks.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinks.java index d004568a6f8..7b94645e07d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToTeamLinks.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Relationship between a team and a team link */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToTeamLinks + */ + @JsonAnySetter + public RelationshipToTeamLinks putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToTeamLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } RelationshipToTeamLinks relationshipToTeamLinks = (RelationshipToTeamLinks) o; - return Objects.equals(this.data, relationshipToTeamLinks.data); + return Objects.equals(this.data, relationshipToTeamLinks.data) + && Objects.equals(this.additionalProperties, relationshipToTeamLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToTeamLinks {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUser.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUser.java index 2bffa6acfd0..ae904b4b689 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUser.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUser.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to user. */ @@ -52,6 +56,52 @@ public void setData(RelationshipToUserData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUser + */ + @JsonAnySetter + public RelationshipToUser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUser object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } RelationshipToUser relationshipToUser = (RelationshipToUser) o; - return Objects.equals(this.data, relationshipToUser.data); + return Objects.equals(this.data, relationshipToUser.data) + && Objects.equals(this.additionalProperties, relationshipToUser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToUser {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserData.java index 4a4a99e9081..5934f9a81d8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship to user object. */ @@ -83,6 +87,52 @@ public void setType(UsersType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUserData + */ + @JsonAnySetter + public RelationshipToUserData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUserData object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } RelationshipToUserData relationshipToUserData = (RelationshipToUserData) o; return Objects.equals(this.id, relationshipToUserData.id) - && Objects.equals(this.type, relationshipToUserData.type); + && Objects.equals(this.type, relationshipToUserData.type) + && Objects.equals(this.additionalProperties, relationshipToUserData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class RelationshipToUserData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermission.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermission.java index 8744e55b332..ad8a8d230c1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermission.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermission.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship between a user team permission and a team */ @@ -43,6 +47,52 @@ public void setData(RelationshipToUserTeamPermissionData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUserTeamPermission + */ + @JsonAnySetter + public RelationshipToUserTeamPermission putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUserTeamPermission object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } RelationshipToUserTeamPermission relationshipToUserTeamPermission = (RelationshipToUserTeamPermission) o; - return Objects.equals(this.data, relationshipToUserTeamPermission.data); + return Objects.equals(this.data, relationshipToUserTeamPermission.data) + && Objects.equals( + this.additionalProperties, relationshipToUserTeamPermission.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToUserTeamPermission {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermissionData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermissionData.java index dd42b0a2190..e84e07cbaf0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermissionData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamPermissionData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Related user team permission data */ @@ -83,6 +87,52 @@ public void setType(UserTeamPermissionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUserTeamPermissionData + */ + @JsonAnySetter + public RelationshipToUserTeamPermissionData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUserTeamPermissionData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { RelationshipToUserTeamPermissionData relationshipToUserTeamPermissionData = (RelationshipToUserTeamPermissionData) o; return Objects.equals(this.id, relationshipToUserTeamPermissionData.id) - && Objects.equals(this.type, relationshipToUserTeamPermissionData.type); + && Objects.equals(this.type, relationshipToUserTeamPermissionData.type) + && Objects.equals( + this.additionalProperties, relationshipToUserTeamPermissionData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class RelationshipToUserTeamPermissionData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUser.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUser.java index a1ce67ffb66..f6f84a9109d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUser.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUser.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship between team membership and user */ @@ -53,6 +57,52 @@ public void setData(RelationshipToUserTeamUserData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUserTeamUser + */ + @JsonAnySetter + public RelationshipToUserTeamUser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUserTeamUser object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { return false; } RelationshipToUserTeamUser relationshipToUserTeamUser = (RelationshipToUserTeamUser) o; - return Objects.equals(this.data, relationshipToUserTeamUser.data); + return Objects.equals(this.data, relationshipToUserTeamUser.data) + && Objects.equals( + this.additionalProperties, relationshipToUserTeamUser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToUserTeamUser {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUserData.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUserData.java index b507eeefd4d..e52da53473d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUserData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUserTeamUserData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A user's relationship with a team */ @@ -83,6 +87,52 @@ public void setType(UserTeamUserType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUserTeamUserData + */ + @JsonAnySetter + public RelationshipToUserTeamUserData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUserTeamUserData object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,14 @@ public boolean equals(Object o) { RelationshipToUserTeamUserData relationshipToUserTeamUserData = (RelationshipToUserTeamUserData) o; return Objects.equals(this.id, relationshipToUserTeamUserData.id) - && Objects.equals(this.type, relationshipToUserTeamUserData.type); + && Objects.equals(this.type, relationshipToUserTeamUserData.type) + && Objects.equals( + this.additionalProperties, relationshipToUserTeamUserData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -109,6 +161,9 @@ public String toString() { sb.append("class RelationshipToUserTeamUserData {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUsers.java b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUsers.java index 8f1d696d51c..22a10f3a7c8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RelationshipToUsers.java +++ b/src/main/java/com/datadog/api/client/v2/model/RelationshipToUsers.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Relationship to users. */ @@ -62,6 +66,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RelationshipToUsers + */ + @JsonAnySetter + public RelationshipToUsers putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RelationshipToUsers object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,13 @@ public boolean equals(Object o) { return false; } RelationshipToUsers relationshipToUsers = (RelationshipToUsers) o; - return Objects.equals(this.data, relationshipToUsers.data); + return Objects.equals(this.data, relationshipToUsers.data) + && Objects.equals(this.additionalProperties, relationshipToUsers.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -85,6 +136,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelationshipToUsers {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ResponseMetaAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ResponseMetaAttributes.java index ef9b480dce3..18288594abd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ResponseMetaAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ResponseMetaAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing meta attributes of response. */ @@ -43,6 +47,52 @@ public void setPage(Pagination page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ResponseMetaAttributes + */ + @JsonAnySetter + public ResponseMetaAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ResponseMetaAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } ResponseMetaAttributes responseMetaAttributes = (ResponseMetaAttributes) o; - return Objects.equals(this.page, responseMetaAttributes.page); + return Objects.equals(this.page, responseMetaAttributes.page) + && Objects.equals(this.additionalProperties, responseMetaAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseMetaAttributes {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicy.java b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicy.java index c10155ca9bd..ee27bef8f09 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicy.java +++ b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Restriction policy object. */ @@ -113,6 +117,52 @@ public void setType(RestrictionPolicyType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RestrictionPolicy + */ + @JsonAnySetter + public RestrictionPolicy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RestrictionPolicy object is equal to o. */ @Override public boolean equals(Object o) { @@ -125,12 +175,13 @@ public boolean equals(Object o) { RestrictionPolicy restrictionPolicy = (RestrictionPolicy) o; return Objects.equals(this.attributes, restrictionPolicy.attributes) && Objects.equals(this.id, restrictionPolicy.id) - && Objects.equals(this.type, restrictionPolicy.type); + && Objects.equals(this.type, restrictionPolicy.type) + && Objects.equals(this.additionalProperties, restrictionPolicy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -140,6 +191,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyAttributes.java index a110d80b5a4..28e808dc730 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Restriction policy attributes. */ @@ -62,6 +66,52 @@ public void setBindings(List bindings) { this.bindings = bindings; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RestrictionPolicyAttributes + */ + @JsonAnySetter + public RestrictionPolicyAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RestrictionPolicyAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -72,12 +122,14 @@ public boolean equals(Object o) { return false; } RestrictionPolicyAttributes restrictionPolicyAttributes = (RestrictionPolicyAttributes) o; - return Objects.equals(this.bindings, restrictionPolicyAttributes.bindings); + return Objects.equals(this.bindings, restrictionPolicyAttributes.bindings) + && Objects.equals( + this.additionalProperties, restrictionPolicyAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(bindings); + return Objects.hash(bindings, additionalProperties); } @Override @@ -85,6 +137,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestrictionPolicyAttributes {\n"); sb.append(" bindings: ").append(toIndentedString(bindings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyBinding.java b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyBinding.java index 01f2811cc28..0c585c0aab2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyBinding.java +++ b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyBinding.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Specifies which principals are associated with a relation. */ @@ -87,6 +91,52 @@ public void setRelation(String relation) { this.relation = relation; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RestrictionPolicyBinding + */ + @JsonAnySetter + public RestrictionPolicyBinding putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RestrictionPolicyBinding object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } RestrictionPolicyBinding restrictionPolicyBinding = (RestrictionPolicyBinding) o; return Objects.equals(this.principals, restrictionPolicyBinding.principals) - && Objects.equals(this.relation, restrictionPolicyBinding.relation); + && Objects.equals(this.relation, restrictionPolicyBinding.relation) + && Objects.equals(this.additionalProperties, restrictionPolicyBinding.additionalProperties); } @Override public int hashCode() { - return Objects.hash(principals, relation); + return Objects.hash(principals, relation, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class RestrictionPolicyBinding {\n"); sb.append(" principals: ").append(toIndentedString(principals)).append("\n"); sb.append(" relation: ").append(toIndentedString(relation)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyResponse.java b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyResponse.java index 26fc4aa7eb8..f3f3ac9464a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing information about a single restriction policy. */ @@ -52,6 +56,52 @@ public void setData(RestrictionPolicy data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RestrictionPolicyResponse + */ + @JsonAnySetter + public RestrictionPolicyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RestrictionPolicyResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } RestrictionPolicyResponse restrictionPolicyResponse = (RestrictionPolicyResponse) o; - return Objects.equals(this.data, restrictionPolicyResponse.data); + return Objects.equals(this.data, restrictionPolicyResponse.data) + && Objects.equals( + this.additionalProperties, restrictionPolicyResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestrictionPolicyResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyUpdateRequest.java index 1dc2c57a1c6..98bfb537692 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RestrictionPolicyUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update request for a restriction policy. */ @@ -52,6 +56,52 @@ public void setData(RestrictionPolicy data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RestrictionPolicyUpdateRequest + */ + @JsonAnySetter + public RestrictionPolicyUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RestrictionPolicyUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } RestrictionPolicyUpdateRequest restrictionPolicyUpdateRequest = (RestrictionPolicyUpdateRequest) o; - return Objects.equals(this.data, restrictionPolicyUpdateRequest.data); + return Objects.equals(this.data, restrictionPolicyUpdateRequest.data) + && Objects.equals( + this.additionalProperties, restrictionPolicyUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestrictionPolicyUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Role.java b/src/main/java/com/datadog/api/client/v2/model/Role.java index fda0115f533..41119205acd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Role.java +++ b/src/main/java/com/datadog/api/client/v2/model/Role.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Role object returned by the API. */ @@ -133,6 +137,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Role + */ + @JsonAnySetter + public Role putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Role object is equal to o. */ @Override public boolean equals(Object o) { @@ -146,12 +196,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, role.attributes) && Objects.equals(this.id, role.id) && Objects.equals(this.relationships, role.relationships) - && Objects.equals(this.type, role.type); + && Objects.equals(this.type, role.type) + && Objects.equals(this.additionalProperties, role.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -162,6 +213,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RoleAttributes.java index 48361f53635..880ceb236e5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the role. */ @@ -93,6 +97,52 @@ public Long getUserCount() { return userCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleAttributes + */ + @JsonAnySetter + public RoleAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { return Objects.equals(this.createdAt, roleAttributes.createdAt) && Objects.equals(this.modifiedAt, roleAttributes.modifiedAt) && Objects.equals(this.name, roleAttributes.name) - && Objects.equals(this.userCount, roleAttributes.userCount); + && Objects.equals(this.userCount, roleAttributes.userCount) + && Objects.equals(this.additionalProperties, roleAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, modifiedAt, name, userCount); + return Objects.hash(createdAt, modifiedAt, name, userCount, additionalProperties); } @Override @@ -122,6 +173,9 @@ public String toString() { sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleClone.java b/src/main/java/com/datadog/api/client/v2/model/RoleClone.java index 6ee76c72d53..e90ecb53cd2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleClone.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleClone.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data for the clone role request. */ @@ -83,6 +87,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleClone + */ + @JsonAnySetter + public RoleClone putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleClone object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } RoleClone roleClone = (RoleClone) o; return Objects.equals(this.attributes, roleClone.attributes) - && Objects.equals(this.type, roleClone.type); + && Objects.equals(this.type, roleClone.type) + && Objects.equals(this.additionalProperties, roleClone.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class RoleClone {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCloneAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RoleCloneAttributes.java index 25fac3cfd45..6b118d3b557 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCloneAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCloneAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes required to create a new role by cloning an existing one. */ @@ -50,6 +54,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCloneAttributes + */ + @JsonAnySetter + public RoleCloneAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCloneAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -60,12 +110,13 @@ public boolean equals(Object o) { return false; } RoleCloneAttributes roleCloneAttributes = (RoleCloneAttributes) o; - return Objects.equals(this.name, roleCloneAttributes.name); + return Objects.equals(this.name, roleCloneAttributes.name) + && Objects.equals(this.additionalProperties, roleCloneAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, additionalProperties); } @Override @@ -73,6 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleCloneAttributes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCloneRequest.java b/src/main/java/com/datadog/api/client/v2/model/RoleCloneRequest.java index bf0747cd9bd..a6b4df621c5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCloneRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCloneRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request to create a role by cloning an existing role. */ @@ -52,6 +56,52 @@ public void setData(RoleClone data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCloneRequest + */ + @JsonAnySetter + public RoleCloneRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCloneRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } RoleCloneRequest roleCloneRequest = (RoleCloneRequest) o; - return Objects.equals(this.data, roleCloneRequest.data); + return Objects.equals(this.data, roleCloneRequest.data) + && Objects.equals(this.additionalProperties, roleCloneRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleCloneRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RoleCreateAttributes.java index 3dbb06a8c3a..97fab133973 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCreateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the created role. */ @@ -85,6 +89,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCreateAttributes + */ + @JsonAnySetter + public RoleCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { RoleCreateAttributes roleCreateAttributes = (RoleCreateAttributes) o; return Objects.equals(this.createdAt, roleCreateAttributes.createdAt) && Objects.equals(this.modifiedAt, roleCreateAttributes.modifiedAt) - && Objects.equals(this.name, roleCreateAttributes.name); + && Objects.equals(this.name, roleCreateAttributes.name) + && Objects.equals(this.additionalProperties, roleCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, modifiedAt, name); + return Objects.hash(createdAt, modifiedAt, name, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCreateData.java b/src/main/java/com/datadog/api/client/v2/model/RoleCreateData.java index 665050a1adf..ba54dfbfd56 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the creation of a role. */ @@ -110,6 +114,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCreateData + */ + @JsonAnySetter + public RoleCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { RoleCreateData roleCreateData = (RoleCreateData) o; return Objects.equals(this.attributes, roleCreateData.attributes) && Objects.equals(this.relationships, roleCreateData.relationships) - && Objects.equals(this.type, roleCreateData.type); + && Objects.equals(this.type, roleCreateData.type) + && Objects.equals(this.additionalProperties, roleCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RoleCreateRequest.java index 4071b8fe4c7..64a7272c438 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create a role. */ @@ -52,6 +56,52 @@ public void setData(RoleCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCreateRequest + */ + @JsonAnySetter + public RoleCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } RoleCreateRequest roleCreateRequest = (RoleCreateRequest) o; - return Objects.equals(this.data, roleCreateRequest.data); + return Objects.equals(this.data, roleCreateRequest.data) + && Objects.equals(this.additionalProperties, roleCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponse.java b/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponse.java index 8ff7c4b6eec..044f49660c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing information about a created role. */ @@ -43,6 +47,52 @@ public void setData(RoleCreateResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCreateResponse + */ + @JsonAnySetter + public RoleCreateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCreateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RoleCreateResponse roleCreateResponse = (RoleCreateResponse) o; - return Objects.equals(this.data, roleCreateResponse.data); + return Objects.equals(this.data, roleCreateResponse.data) + && Objects.equals(this.additionalProperties, roleCreateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleCreateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponseData.java b/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponseData.java index 5a81c6d752b..00464948047 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleCreateResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Role object returned by the API. */ @@ -134,6 +138,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleCreateResponseData + */ + @JsonAnySetter + public RoleCreateResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleCreateResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -147,12 +197,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, roleCreateResponseData.attributes) && Objects.equals(this.id, roleCreateResponseData.id) && Objects.equals(this.relationships, roleCreateResponseData.relationships) - && Objects.equals(this.type, roleCreateResponseData.type); + && Objects.equals(this.type, roleCreateResponseData.type) + && Objects.equals(this.additionalProperties, roleCreateResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -163,6 +214,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleRelationships.java b/src/main/java/com/datadog/api/client/v2/model/RoleRelationships.java index 72f54bda8df..2887b3e38fa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of the role object. */ @@ -71,6 +75,52 @@ public void setUsers(RelationshipToUsers users) { this.users = users; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleRelationships + */ + @JsonAnySetter + public RoleRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } RoleRelationships roleRelationships = (RoleRelationships) o; return Objects.equals(this.permissions, roleRelationships.permissions) - && Objects.equals(this.users, roleRelationships.users); + && Objects.equals(this.users, roleRelationships.users) + && Objects.equals(this.additionalProperties, roleRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(permissions, users); + return Objects.hash(permissions, users, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class RoleRelationships {\n"); sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleResponse.java b/src/main/java/com/datadog/api/client/v2/model/RoleResponse.java index 42840bb0f07..7c7ef671637 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing information about a single role. */ @@ -43,6 +47,52 @@ public void setData(Role data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleResponse + */ + @JsonAnySetter + public RoleResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RoleResponse roleResponse = (RoleResponse) o; - return Objects.equals(this.data, roleResponse.data); + return Objects.equals(this.data, roleResponse.data) + && Objects.equals(this.additionalProperties, roleResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleResponseRelationships.java b/src/main/java/com/datadog/api/client/v2/model/RoleResponseRelationships.java index ad6f09bf996..5a7c1394b91 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleResponseRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleResponseRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of the role object returned by the API. */ @@ -43,6 +47,52 @@ public void setPermissions(RelationshipToPermissions permissions) { this.permissions = permissions; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleResponseRelationships + */ + @JsonAnySetter + public RoleResponseRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleResponseRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } RoleResponseRelationships roleResponseRelationships = (RoleResponseRelationships) o; - return Objects.equals(this.permissions, roleResponseRelationships.permissions); + return Objects.equals(this.permissions, roleResponseRelationships.permissions) + && Objects.equals( + this.additionalProperties, roleResponseRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(permissions); + return Objects.hash(permissions, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleResponseRelationships {\n"); sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java index abf427cbb39..c27adebd569 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the role. */ @@ -77,6 +81,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleUpdateAttributes + */ + @JsonAnySetter + public RoleUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { RoleUpdateAttributes roleUpdateAttributes = (RoleUpdateAttributes) o; return Objects.equals(this.createdAt, roleUpdateAttributes.createdAt) && Objects.equals(this.modifiedAt, roleUpdateAttributes.modifiedAt) - && Objects.equals(this.name, roleUpdateAttributes.name); + && Objects.equals(this.name, roleUpdateAttributes.name) + && Objects.equals(this.additionalProperties, roleUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, modifiedAt, name); + return Objects.hash(createdAt, modifiedAt, name, additionalProperties); } @Override @@ -104,6 +155,9 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateData.java index 2875f04dbef..7d4b0fbb37e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the update of a role. */ @@ -138,6 +142,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleUpdateData + */ + @JsonAnySetter + public RoleUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, roleUpdateData.attributes) && Objects.equals(this.id, roleUpdateData.id) && Objects.equals(this.relationships, roleUpdateData.relationships) - && Objects.equals(this.type, roleUpdateData.type); + && Objects.equals(this.type, roleUpdateData.type) + && Objects.equals(this.additionalProperties, roleUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -167,6 +218,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateRequest.java index d246bbadd33..e1e2d741ba4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update a role. */ @@ -52,6 +56,52 @@ public void setData(RoleUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleUpdateRequest + */ + @JsonAnySetter + public RoleUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } RoleUpdateRequest roleUpdateRequest = (RoleUpdateRequest) o; - return Objects.equals(this.data, roleUpdateRequest.data); + return Objects.equals(this.data, roleUpdateRequest.data) + && Objects.equals(this.additionalProperties, roleUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponse.java b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponse.java index 77288b86079..03c4a700517 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response containing information about an updated role. */ @@ -43,6 +47,52 @@ public void setData(RoleUpdateResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleUpdateResponse + */ + @JsonAnySetter + public RoleUpdateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } RoleUpdateResponse roleUpdateResponse = (RoleUpdateResponse) o; - return Objects.equals(this.data, roleUpdateResponse.data); + return Objects.equals(this.data, roleUpdateResponse.data) + && Objects.equals(this.additionalProperties, roleUpdateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RoleUpdateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponseData.java b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponseData.java index 29ca8eb68b1..cf46b6a6f72 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateResponseData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Role object returned by the API. */ @@ -134,6 +138,52 @@ public void setType(RolesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RoleUpdateResponseData + */ + @JsonAnySetter + public RoleUpdateResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RoleUpdateResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -147,12 +197,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, roleUpdateResponseData.attributes) && Objects.equals(this.id, roleUpdateResponseData.id) && Objects.equals(this.relationships, roleUpdateResponseData.relationships) - && Objects.equals(this.type, roleUpdateResponseData.type); + && Objects.equals(this.type, roleUpdateResponseData.type) + && Objects.equals(this.additionalProperties, roleUpdateResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -163,6 +214,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RolesResponse.java b/src/main/java/com/datadog/api/client/v2/model/RolesResponse.java index b921dabb7c7..4710c187f3d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RolesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/RolesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing information about multiple roles. */ @@ -81,6 +85,52 @@ public void setMeta(ResponseMetaAttributes meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RolesResponse + */ + @JsonAnySetter + public RolesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this RolesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,13 @@ public boolean equals(Object o) { } RolesResponse rolesResponse = (RolesResponse) o; return Objects.equals(this.data, rolesResponse.data) - && Objects.equals(this.meta, rolesResponse.meta); + && Objects.equals(this.meta, rolesResponse.meta) + && Objects.equals(this.additionalProperties, rolesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -106,6 +157,9 @@ public String toString() { sb.append("class RolesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttribute.java b/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttribute.java index c9d0027e3d1..ec45a4a7d77 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttribute.java +++ b/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttribute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** SAML assertion attribute. */ @@ -109,6 +113,52 @@ public void setType(SAMLAssertionAttributesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SAMLAssertionAttribute + */ + @JsonAnySetter + public SAMLAssertionAttribute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SAMLAssertionAttribute object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { SAMLAssertionAttribute samlAssertionAttribute = (SAMLAssertionAttribute) o; return Objects.equals(this.attributes, samlAssertionAttribute.attributes) && Objects.equals(this.id, samlAssertionAttribute.id) - && Objects.equals(this.type, samlAssertionAttribute.type); + && Objects.equals(this.type, samlAssertionAttribute.type) + && Objects.equals(this.additionalProperties, samlAssertionAttribute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttributeAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttributeAttributes.java index cbc9005e017..67d294f15cb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttributeAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SAMLAssertionAttributeAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Key/Value pair of attributes used in SAML assertion attributes. */ @@ -69,6 +73,52 @@ public void setAttributeValue(String attributeValue) { this.attributeValue = attributeValue; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SAMLAssertionAttributeAttributes + */ + @JsonAnySetter + public SAMLAssertionAttributeAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SAMLAssertionAttributeAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { SAMLAssertionAttributeAttributes samlAssertionAttributeAttributes = (SAMLAssertionAttributeAttributes) o; return Objects.equals(this.attributeKey, samlAssertionAttributeAttributes.attributeKey) - && Objects.equals(this.attributeValue, samlAssertionAttributeAttributes.attributeValue); + && Objects.equals(this.attributeValue, samlAssertionAttributeAttributes.attributeValue) + && Objects.equals( + this.additionalProperties, samlAssertionAttributeAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributeKey, attributeValue); + return Objects.hash(attributeKey, attributeValue, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class SAMLAssertionAttributeAttributes {\n"); sb.append(" attributeKey: ").append(toIndentedString(attributeKey)).append("\n"); sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryRequest.java b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryRequest.java index d772a304603..66a0845ff36 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A wrapper request around one scalar query to be executed. */ @@ -52,6 +56,52 @@ public void setData(ScalarFormulaRequest data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarFormulaQueryRequest + */ + @JsonAnySetter + public ScalarFormulaQueryRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarFormulaQueryRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } ScalarFormulaQueryRequest scalarFormulaQueryRequest = (ScalarFormulaQueryRequest) o; - return Objects.equals(this.data, scalarFormulaQueryRequest.data); + return Objects.equals(this.data, scalarFormulaQueryRequest.data) + && Objects.equals( + this.additionalProperties, scalarFormulaQueryRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScalarFormulaQueryRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryResponse.java b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryResponse.java index 47e8f011a68..70db9dfbc04 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaQueryResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A message containing one or more responses to scalar queries. */ @@ -70,6 +74,52 @@ public void setErrors(String errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarFormulaQueryResponse + */ + @JsonAnySetter + public ScalarFormulaQueryResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarFormulaQueryResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { } ScalarFormulaQueryResponse scalarFormulaQueryResponse = (ScalarFormulaQueryResponse) o; return Objects.equals(this.data, scalarFormulaQueryResponse.data) - && Objects.equals(this.errors, scalarFormulaQueryResponse.errors); + && Objects.equals(this.errors, scalarFormulaQueryResponse.errors) + && Objects.equals( + this.additionalProperties, scalarFormulaQueryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class ScalarFormulaQueryResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequest.java b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequest.java index 54dee999a89..9be557298f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single scalar query to be executed. */ @@ -86,6 +90,52 @@ public void setType(ScalarFormulaRequestType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarFormulaRequest + */ + @JsonAnySetter + public ScalarFormulaRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarFormulaRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } ScalarFormulaRequest scalarFormulaRequest = (ScalarFormulaRequest) o; return Objects.equals(this.attributes, scalarFormulaRequest.attributes) - && Objects.equals(this.type, scalarFormulaRequest.type); + && Objects.equals(this.type, scalarFormulaRequest.type) + && Objects.equals(this.additionalProperties, scalarFormulaRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class ScalarFormulaRequest {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequestAttributes.java index 150e016dfa4..cc30b524653 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a scalar formula request. */ @@ -152,6 +156,52 @@ public void setTo(Long to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarFormulaRequestAttributes + */ + @JsonAnySetter + public ScalarFormulaRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarFormulaRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -166,12 +216,14 @@ public boolean equals(Object o) { return Objects.equals(this.formulas, scalarFormulaRequestAttributes.formulas) && Objects.equals(this.from, scalarFormulaRequestAttributes.from) && Objects.equals(this.queries, scalarFormulaRequestAttributes.queries) - && Objects.equals(this.to, scalarFormulaRequestAttributes.to); + && Objects.equals(this.to, scalarFormulaRequestAttributes.to) + && Objects.equals( + this.additionalProperties, scalarFormulaRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formulas, from, queries, to); + return Objects.hash(formulas, from, queries, to, additionalProperties); } @Override @@ -182,6 +234,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaResponseAtrributes.java b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaResponseAtrributes.java index 0a918797eb9..c5de622722d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaResponseAtrributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarFormulaResponseAtrributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a scalar response. */ @@ -57,6 +61,52 @@ public void setColumns(List columns) { this.columns = columns; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarFormulaResponseAtrributes + */ + @JsonAnySetter + public ScalarFormulaResponseAtrributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarFormulaResponseAtrributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -68,12 +118,14 @@ public boolean equals(Object o) { } ScalarFormulaResponseAtrributes scalarFormulaResponseAtrributes = (ScalarFormulaResponseAtrributes) o; - return Objects.equals(this.columns, scalarFormulaResponseAtrributes.columns); + return Objects.equals(this.columns, scalarFormulaResponseAtrributes.columns) + && Objects.equals( + this.additionalProperties, scalarFormulaResponseAtrributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(columns); + return Objects.hash(columns, additionalProperties); } @Override @@ -81,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScalarFormulaResponseAtrributes {\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarMeta.java b/src/main/java/com/datadog/api/client/v2/model/ScalarMeta.java index a55a82faaa5..73921636801 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarMeta.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Metadata for the resulting numerical values. */ @@ -59,6 +63,52 @@ public void setUnit(List unit) { this.unit = unit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarMeta + */ + @JsonAnySetter + public ScalarMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -69,12 +119,13 @@ public boolean equals(Object o) { return false; } ScalarMeta scalarMeta = (ScalarMeta) o; - return Objects.equals(this.unit, scalarMeta.unit); + return Objects.equals(this.unit, scalarMeta.unit) + && Objects.equals(this.additionalProperties, scalarMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(unit); + return Objects.hash(unit, additionalProperties); } @Override @@ -82,6 +133,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScalarMeta {\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScalarResponse.java b/src/main/java/com/datadog/api/client/v2/model/ScalarResponse.java index 1340454209b..3f36ffc7cee 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScalarResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScalarResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A message containing the response to a scalar query. */ @@ -71,6 +75,52 @@ public void setType(ScalarFormulaResponseType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ScalarResponse + */ + @JsonAnySetter + public ScalarResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ScalarResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } ScalarResponse scalarResponse = (ScalarResponse) o; return Objects.equals(this.attributes, scalarResponse.attributes) - && Objects.equals(this.type, scalarResponse.type); + && Objects.equals(this.type, scalarResponse.type) + && Objects.equals(this.additionalProperties, scalarResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class ScalarResponse {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilter.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilter.java index d423b1cc306..1c21fd54957 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The security filter's properties. */ @@ -99,6 +103,52 @@ public void setType(SecurityFilterType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilter + */ + @JsonAnySetter + public SecurityFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { SecurityFilter securityFilter = (SecurityFilter) o; return Objects.equals(this.attributes, securityFilter.attributes) && Objects.equals(this.id, securityFilter.id) - && Objects.equals(this.type, securityFilter.type); + && Objects.equals(this.type, securityFilter.type) + && Objects.equals(this.additionalProperties, securityFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterAttributes.java index 6a0af5016f6..accf7cdce7c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a security filter. */ @@ -215,6 +219,52 @@ public void setVersion(Integer version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterAttributes + */ + @JsonAnySetter + public SecurityFilterAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -231,13 +281,21 @@ public boolean equals(Object o) { && Objects.equals(this.isEnabled, securityFilterAttributes.isEnabled) && Objects.equals(this.name, securityFilterAttributes.name) && Objects.equals(this.query, securityFilterAttributes.query) - && Objects.equals(this.version, securityFilterAttributes.version); + && Objects.equals(this.version, securityFilterAttributes.version) + && Objects.equals(this.additionalProperties, securityFilterAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - exclusionFilters, filteredDataType, isBuiltin, isEnabled, name, query, version); + exclusionFilters, + filteredDataType, + isBuiltin, + isEnabled, + name, + query, + version, + additionalProperties); } @Override @@ -251,6 +309,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateAttributes.java index 1b953cb65c0..afd3674fb35 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object containing the attributes of the security filter to be created. */ @@ -177,6 +181,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterCreateAttributes + */ + @JsonAnySetter + public SecurityFilterCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -192,12 +242,15 @@ public boolean equals(Object o) { && Objects.equals(this.filteredDataType, securityFilterCreateAttributes.filteredDataType) && Objects.equals(this.isEnabled, securityFilterCreateAttributes.isEnabled) && Objects.equals(this.name, securityFilterCreateAttributes.name) - && Objects.equals(this.query, securityFilterCreateAttributes.query); + && Objects.equals(this.query, securityFilterCreateAttributes.query) + && Objects.equals( + this.additionalProperties, securityFilterCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(exclusionFilters, filteredDataType, isEnabled, name, query); + return Objects.hash( + exclusionFilters, filteredDataType, isEnabled, name, query, additionalProperties); } @Override @@ -209,6 +262,9 @@ public String toString() { sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateData.java index 8ab33faff98..e25fa641ab8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object for a single security filter. */ @@ -86,6 +90,52 @@ public void setType(SecurityFilterType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterCreateData + */ + @JsonAnySetter + public SecurityFilterCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } SecurityFilterCreateData securityFilterCreateData = (SecurityFilterCreateData) o; return Objects.equals(this.attributes, securityFilterCreateData.attributes) - && Objects.equals(this.type, securityFilterCreateData.type); + && Objects.equals(this.type, securityFilterCreateData.type) + && Objects.equals(this.additionalProperties, securityFilterCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class SecurityFilterCreateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateRequest.java index 842d80c0adb..1763de62bb8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request object that includes the security filter that you would like to create. */ @@ -52,6 +56,52 @@ public void setData(SecurityFilterCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterCreateRequest + */ + @JsonAnySetter + public SecurityFilterCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } SecurityFilterCreateRequest securityFilterCreateRequest = (SecurityFilterCreateRequest) o; - return Objects.equals(this.data, securityFilterCreateRequest.data); + return Objects.equals(this.data, securityFilterCreateRequest.data) + && Objects.equals( + this.additionalProperties, securityFilterCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityFilterCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilter.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilter.java index 34a131de0f2..a92a343ea84 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilter.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Exclusion filter for the security filter. */ @@ -78,6 +82,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterExclusionFilter + */ + @JsonAnySetter + public SecurityFilterExclusionFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterExclusionFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,14 @@ public boolean equals(Object o) { } SecurityFilterExclusionFilter securityFilterExclusionFilter = (SecurityFilterExclusionFilter) o; return Objects.equals(this.name, securityFilterExclusionFilter.name) - && Objects.equals(this.query, securityFilterExclusionFilter.query); + && Objects.equals(this.query, securityFilterExclusionFilter.query) + && Objects.equals( + this.additionalProperties, securityFilterExclusionFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, query); + return Objects.hash(name, query, additionalProperties); } @Override @@ -103,6 +155,9 @@ public String toString() { sb.append("class SecurityFilterExclusionFilter {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilterResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilterResponse.java index f8b2e1543e6..b9730017a34 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilterResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterExclusionFilterResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single exclusion filter. */ @@ -69,6 +73,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterExclusionFilterResponse + */ + @JsonAnySetter + public SecurityFilterExclusionFilterResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterExclusionFilterResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { SecurityFilterExclusionFilterResponse securityFilterExclusionFilterResponse = (SecurityFilterExclusionFilterResponse) o; return Objects.equals(this.name, securityFilterExclusionFilterResponse.name) - && Objects.equals(this.query, securityFilterExclusionFilterResponse.query); + && Objects.equals(this.query, securityFilterExclusionFilterResponse.query) + && Objects.equals( + this.additionalProperties, securityFilterExclusionFilterResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, query); + return Objects.hash(name, query, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class SecurityFilterExclusionFilterResponse {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterMeta.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterMeta.java index b19f2c08307..55063a4b8be 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Optional metadata associated to the response. */ @@ -42,6 +46,52 @@ public void setWarning(String warning) { this.warning = warning; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterMeta + */ + @JsonAnySetter + public SecurityFilterMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } SecurityFilterMeta securityFilterMeta = (SecurityFilterMeta) o; - return Objects.equals(this.warning, securityFilterMeta.warning); + return Objects.equals(this.warning, securityFilterMeta.warning) + && Objects.equals(this.additionalProperties, securityFilterMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(warning); + return Objects.hash(warning, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityFilterMeta {\n"); sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterResponse.java index 82def234887..4e13d87eb05 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response object which includes a single security filter. */ @@ -71,6 +75,52 @@ public void setMeta(SecurityFilterMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterResponse + */ + @JsonAnySetter + public SecurityFilterResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,13 @@ public boolean equals(Object o) { } SecurityFilterResponse securityFilterResponse = (SecurityFilterResponse) o; return Objects.equals(this.data, securityFilterResponse.data) - && Objects.equals(this.meta, securityFilterResponse.meta); + && Objects.equals(this.meta, securityFilterResponse.meta) + && Objects.equals(this.additionalProperties, securityFilterResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -96,6 +147,9 @@ public String toString() { sb.append("class SecurityFilterResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateAttributes.java index cf775fd0310..38e609787aa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The security filters properties to be updated. */ @@ -190,6 +194,52 @@ public void setVersion(Integer version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterUpdateAttributes + */ + @JsonAnySetter + public SecurityFilterUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -206,12 +256,15 @@ public boolean equals(Object o) { && Objects.equals(this.isEnabled, securityFilterUpdateAttributes.isEnabled) && Objects.equals(this.name, securityFilterUpdateAttributes.name) && Objects.equals(this.query, securityFilterUpdateAttributes.query) - && Objects.equals(this.version, securityFilterUpdateAttributes.version); + && Objects.equals(this.version, securityFilterUpdateAttributes.version) + && Objects.equals( + this.additionalProperties, securityFilterUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(exclusionFilters, filteredDataType, isEnabled, name, query, version); + return Objects.hash( + exclusionFilters, filteredDataType, isEnabled, name, query, version, additionalProperties); } @Override @@ -224,6 +277,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateData.java index b53ac716d69..49419c8d95c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new security filter properties. */ @@ -86,6 +90,52 @@ public void setType(SecurityFilterType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterUpdateData + */ + @JsonAnySetter + public SecurityFilterUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } SecurityFilterUpdateData securityFilterUpdateData = (SecurityFilterUpdateData) o; return Objects.equals(this.attributes, securityFilterUpdateData.attributes) - && Objects.equals(this.type, securityFilterUpdateData.type); + && Objects.equals(this.type, securityFilterUpdateData.type) + && Objects.equals(this.additionalProperties, securityFilterUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class SecurityFilterUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateRequest.java index e0f8d278689..473a81d9c3a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFilterUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new security filter body. */ @@ -52,6 +56,52 @@ public void setData(SecurityFilterUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFilterUpdateRequest + */ + @JsonAnySetter + public SecurityFilterUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFilterUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } SecurityFilterUpdateRequest securityFilterUpdateRequest = (SecurityFilterUpdateRequest) o; - return Objects.equals(this.data, securityFilterUpdateRequest.data); + return Objects.equals(this.data, securityFilterUpdateRequest.data) + && Objects.equals( + this.additionalProperties, securityFilterUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityFilterUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityFiltersResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityFiltersResponse.java index 43f114816f2..9e62c5420a6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityFiltersResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityFiltersResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** All the available security filters objects. */ @@ -84,6 +88,52 @@ public void setMeta(SecurityFilterMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityFiltersResponse + */ + @JsonAnySetter + public SecurityFiltersResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityFiltersResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,12 +145,13 @@ public boolean equals(Object o) { } SecurityFiltersResponse securityFiltersResponse = (SecurityFiltersResponse) o; return Objects.equals(this.data, securityFiltersResponse.data) - && Objects.equals(this.meta, securityFiltersResponse.meta); + && Objects.equals(this.meta, securityFiltersResponse.meta) + && Objects.equals(this.additionalProperties, securityFiltersResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -109,6 +160,9 @@ public String toString() { sb.append("class SecurityFiltersResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringFilter.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringFilter.java index 5270489a538..da4fb3b59d0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The rule's suppression filter. */ @@ -73,6 +77,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringFilter + */ + @JsonAnySetter + public SecurityMonitoringFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,13 @@ public boolean equals(Object o) { } SecurityMonitoringFilter securityMonitoringFilter = (SecurityMonitoringFilter) o; return Objects.equals(this.action, securityMonitoringFilter.action) - && Objects.equals(this.query, securityMonitoringFilter.query); + && Objects.equals(this.query, securityMonitoringFilter.query) + && Objects.equals(this.additionalProperties, securityMonitoringFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(action, query); + return Objects.hash(action, query, additionalProperties); } @Override @@ -98,6 +149,9 @@ public String toString() { sb.append("class SecurityMonitoringFilter {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringListRulesResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringListRulesResponse.java index c72fcb7fadf..faf0f457c02 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringListRulesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringListRulesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List of rules. */ @@ -84,6 +88,52 @@ public void setMeta(ResponseMetaAttributes meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringListRulesResponse + */ + @JsonAnySetter + public SecurityMonitoringListRulesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringListRulesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { SecurityMonitoringListRulesResponse securityMonitoringListRulesResponse = (SecurityMonitoringListRulesResponse) o; return Objects.equals(this.data, securityMonitoringListRulesResponse.data) - && Objects.equals(this.meta, securityMonitoringListRulesResponse.meta); + && Objects.equals(this.meta, securityMonitoringListRulesResponse.meta) + && Objects.equals( + this.additionalProperties, securityMonitoringListRulesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class SecurityMonitoringListRulesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java index 79976723f98..9142e5554ad 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Case when signal is generated. */ @@ -135,6 +139,52 @@ public void setStatus(SecurityMonitoringRuleSeverity status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringRuleCase + */ + @JsonAnySetter + public SecurityMonitoringRuleCase putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringRuleCase object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,14 @@ public boolean equals(Object o) { return Objects.equals(this.condition, securityMonitoringRuleCase.condition) && Objects.equals(this.name, securityMonitoringRuleCase.name) && Objects.equals(this.notifications, securityMonitoringRuleCase.notifications) - && Objects.equals(this.status, securityMonitoringRuleCase.status); + && Objects.equals(this.status, securityMonitoringRuleCase.status) + && Objects.equals( + this.additionalProperties, securityMonitoringRuleCase.additionalProperties); } @Override public int hashCode() { - return Objects.hash(condition, name, notifications, status); + return Objects.hash(condition, name, notifications, status, additionalProperties); } @Override @@ -164,6 +216,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java index 2aa0e99ad1c..a1bfbb64061 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Case when signal is generated. */ @@ -145,6 +149,52 @@ public void setStatus(SecurityMonitoringRuleSeverity status) { this.status = status; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringRuleCaseCreate + */ + @JsonAnySetter + public SecurityMonitoringRuleCaseCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringRuleCaseCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -159,12 +209,14 @@ public boolean equals(Object o) { return Objects.equals(this.condition, securityMonitoringRuleCaseCreate.condition) && Objects.equals(this.name, securityMonitoringRuleCaseCreate.name) && Objects.equals(this.notifications, securityMonitoringRuleCaseCreate.notifications) - && Objects.equals(this.status, securityMonitoringRuleCaseCreate.status); + && Objects.equals(this.status, securityMonitoringRuleCaseCreate.status) + && Objects.equals( + this.additionalProperties, securityMonitoringRuleCaseCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(condition, name, notifications, status); + return Objects.hash(condition, name, notifications, status, additionalProperties); } @Override @@ -175,6 +227,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleImpossibleTravelOptions.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleImpossibleTravelOptions.java index fb8ec19704f..de83b58d14c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleImpossibleTravelOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleImpossibleTravelOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options on impossible travel rules. */ @@ -47,6 +51,53 @@ public void setBaselineUserLocations(Boolean baselineUserLocations) { this.baselineUserLocations = baselineUserLocations; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringRuleImpossibleTravelOptions + */ + @JsonAnySetter + public SecurityMonitoringRuleImpossibleTravelOptions putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringRuleImpossibleTravelOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -59,13 +110,16 @@ public boolean equals(Object o) { SecurityMonitoringRuleImpossibleTravelOptions securityMonitoringRuleImpossibleTravelOptions = (SecurityMonitoringRuleImpossibleTravelOptions) o; return Objects.equals( - this.baselineUserLocations, - securityMonitoringRuleImpossibleTravelOptions.baselineUserLocations); + this.baselineUserLocations, + securityMonitoringRuleImpossibleTravelOptions.baselineUserLocations) + && Objects.equals( + this.additionalProperties, + securityMonitoringRuleImpossibleTravelOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(baselineUserLocations); + return Objects.hash(baselineUserLocations, additionalProperties); } @Override @@ -75,6 +129,9 @@ public String toString() { sb.append(" baselineUserLocations: ") .append(toIndentedString(baselineUserLocations)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleNewValueOptions.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleNewValueOptions.java index a0775b00927..ae3c36fe54a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleNewValueOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleNewValueOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options on new value rules. */ @@ -148,6 +152,52 @@ public void setLearningThreshold( this.learningThreshold = learningThreshold; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringRuleNewValueOptions + */ + @JsonAnySetter + public SecurityMonitoringRuleNewValueOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringRuleNewValueOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -164,12 +214,15 @@ public boolean equals(Object o) { this.learningDuration, securityMonitoringRuleNewValueOptions.learningDuration) && Objects.equals(this.learningMethod, securityMonitoringRuleNewValueOptions.learningMethod) && Objects.equals( - this.learningThreshold, securityMonitoringRuleNewValueOptions.learningThreshold); + this.learningThreshold, securityMonitoringRuleNewValueOptions.learningThreshold) + && Objects.equals( + this.additionalProperties, securityMonitoringRuleNewValueOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(forgetAfter, learningDuration, learningMethod, learningThreshold); + return Objects.hash( + forgetAfter, learningDuration, learningMethod, learningThreshold, additionalProperties); } @Override @@ -180,6 +233,9 @@ public String toString() { sb.append(" learningDuration: ").append(toIndentedString(learningDuration)).append("\n"); sb.append(" learningMethod: ").append(toIndentedString(learningMethod)).append("\n"); sb.append(" learningThreshold: ").append(toIndentedString(learningThreshold)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleOptions.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleOptions.java index ed13840e242..9fe4258b7c7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleOptions.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Options on rules. */ @@ -288,6 +292,52 @@ public void setNewValueOptions(SecurityMonitoringRuleNewValueOptions newValueOpt this.newValueOptions = newValueOptions; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringRuleOptions + */ + @JsonAnySetter + public SecurityMonitoringRuleOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringRuleOptions object is equal to o. */ @Override public boolean equals(Object o) { @@ -311,7 +361,9 @@ public boolean equals(Object o) { this.impossibleTravelOptions, securityMonitoringRuleOptions.impossibleTravelOptions) && Objects.equals(this.keepAlive, securityMonitoringRuleOptions.keepAlive) && Objects.equals(this.maxSignalDuration, securityMonitoringRuleOptions.maxSignalDuration) - && Objects.equals(this.newValueOptions, securityMonitoringRuleOptions.newValueOptions); + && Objects.equals(this.newValueOptions, securityMonitoringRuleOptions.newValueOptions) + && Objects.equals( + this.additionalProperties, securityMonitoringRuleOptions.additionalProperties); } @Override @@ -325,7 +377,8 @@ public int hashCode() { impossibleTravelOptions, keepAlive, maxSignalDuration, - newValueOptions); + newValueOptions, + additionalProperties); } @Override @@ -349,6 +402,9 @@ public String toString() { sb.append(" keepAlive: ").append(toIndentedString(keepAlive)).append("\n"); sb.append(" maxSignalDuration: ").append(toIndentedString(maxSignalDuration)).append("\n"); sb.append(" newValueOptions: ").append(toIndentedString(newValueOptions)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java index 85851651398..792ca36f14b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Update an existing rule. */ @@ -345,6 +349,52 @@ public void setVersion(Integer version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringRuleUpdatePayload + */ + @JsonAnySetter + public SecurityMonitoringRuleUpdatePayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringRuleUpdatePayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -369,7 +419,9 @@ public boolean equals(Object o) { && Objects.equals(this.options, securityMonitoringRuleUpdatePayload.options) && Objects.equals(this.queries, securityMonitoringRuleUpdatePayload.queries) && Objects.equals(this.tags, securityMonitoringRuleUpdatePayload.tags) - && Objects.equals(this.version, securityMonitoringRuleUpdatePayload.version); + && Objects.equals(this.version, securityMonitoringRuleUpdatePayload.version) + && Objects.equals( + this.additionalProperties, securityMonitoringRuleUpdatePayload.additionalProperties); } @Override @@ -385,7 +437,8 @@ public int hashCode() { options, queries, tags, - version); + version, + additionalProperties); } @Override @@ -405,6 +458,9 @@ public String toString() { sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignal.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignal.java index 53a20b385a5..eea4d3e2453 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignal.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignal.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object description of a security signal. */ @@ -99,6 +103,52 @@ public void setType(SecurityMonitoringSignalType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignal + */ + @JsonAnySetter + public SecurityMonitoringSignal putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignal object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { SecurityMonitoringSignal securityMonitoringSignal = (SecurityMonitoringSignal) o; return Objects.equals(this.attributes, securityMonitoringSignal.attributes) && Objects.equals(this.id, securityMonitoringSignal.id) - && Objects.equals(this.type, securityMonitoringSignal.type); + && Objects.equals(this.type, securityMonitoringSignal.type) + && Objects.equals(this.additionalProperties, securityMonitoringSignal.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateAttributes.java index 44c2377eb0b..3b81744dc17 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes describing the new assignee of a security signal. */ @@ -81,6 +85,53 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalAssigneeUpdateAttributes + */ + @JsonAnySetter + public SecurityMonitoringSignalAssigneeUpdateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalAssigneeUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +145,15 @@ public boolean equals(Object o) { securityMonitoringSignalAssigneeUpdateAttributes = (SecurityMonitoringSignalAssigneeUpdateAttributes) o; return Objects.equals(this.assignee, securityMonitoringSignalAssigneeUpdateAttributes.assignee) - && Objects.equals(this.version, securityMonitoringSignalAssigneeUpdateAttributes.version); + && Objects.equals(this.version, securityMonitoringSignalAssigneeUpdateAttributes.version) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalAssigneeUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(assignee, version); + return Objects.hash(assignee, version, additionalProperties); } @Override @@ -108,6 +162,9 @@ public String toString() { sb.append("class SecurityMonitoringSignalAssigneeUpdateAttributes {\n"); sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateData.java index e3e7a3dd48c..104f010152d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data containing the patch for changing the assignee of a signal. */ @@ -54,6 +58,53 @@ public void setAttributes(SecurityMonitoringSignalAssigneeUpdateAttributes attri this.attributes = attributes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalAssigneeUpdateData + */ + @JsonAnySetter + public SecurityMonitoringSignalAssigneeUpdateData putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalAssigneeUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalAssigneeUpdateData securityMonitoringSignalAssigneeUpdateData = (SecurityMonitoringSignalAssigneeUpdateData) o; - return Objects.equals(this.attributes, securityMonitoringSignalAssigneeUpdateData.attributes); + return Objects.equals(this.attributes, securityMonitoringSignalAssigneeUpdateData.attributes) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalAssigneeUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes); + return Objects.hash(attributes, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalAssigneeUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateRequest.java index 514bdf54589..f67437e7522 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAssigneeUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request body for changing the assignee of a given security monitoring signal. */ @@ -54,6 +58,53 @@ public void setData(SecurityMonitoringSignalAssigneeUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalAssigneeUpdateRequest + */ + @JsonAnySetter + public SecurityMonitoringSignalAssigneeUpdateRequest putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalAssigneeUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalAssigneeUpdateRequest securityMonitoringSignalAssigneeUpdateRequest = (SecurityMonitoringSignalAssigneeUpdateRequest) o; - return Objects.equals(this.data, securityMonitoringSignalAssigneeUpdateRequest.data); + return Objects.equals(this.data, securityMonitoringSignalAssigneeUpdateRequest.data) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalAssigneeUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalAssigneeUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAttributes.java index cb9b43f2f01..4ef236da7d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalAttributes.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -140,6 +142,52 @@ public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalAttributes + */ + @JsonAnySetter + public SecurityMonitoringSignalAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +202,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, securityMonitoringSignalAttributes.attributes) && Objects.equals(this.message, securityMonitoringSignalAttributes.message) && Objects.equals(this.tags, securityMonitoringSignalAttributes.tags) - && Objects.equals(this.timestamp, securityMonitoringSignalAttributes.timestamp); + && Objects.equals(this.timestamp, securityMonitoringSignalAttributes.timestamp) + && Objects.equals( + this.additionalProperties, securityMonitoringSignalAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, message, tags, timestamp); + return Objects.hash(attributes, message, tags, timestamp, additionalProperties); } @Override @@ -170,6 +220,9 @@ public String toString() { sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateAttributes.java index a975dc8f773..d4cd91f8d93 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes describing the new list of related signals for a security signal. */ @@ -85,6 +89,53 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalIncidentsUpdateAttributes + */ + @JsonAnySetter + public SecurityMonitoringSignalIncidentsUpdateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalIncidentsUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -99,12 +150,15 @@ public boolean equals(Object o) { (SecurityMonitoringSignalIncidentsUpdateAttributes) o; return Objects.equals( this.incidentIds, securityMonitoringSignalIncidentsUpdateAttributes.incidentIds) - && Objects.equals(this.version, securityMonitoringSignalIncidentsUpdateAttributes.version); + && Objects.equals(this.version, securityMonitoringSignalIncidentsUpdateAttributes.version) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalIncidentsUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(incidentIds, version); + return Objects.hash(incidentIds, version, additionalProperties); } @Override @@ -113,6 +167,9 @@ public String toString() { sb.append("class SecurityMonitoringSignalIncidentsUpdateAttributes {\n"); sb.append(" incidentIds: ").append(toIndentedString(incidentIds)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateData.java index f0dc069b0b5..99e86ebc646 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data containing the patch for changing the related incidents of a signal. */ @@ -54,6 +58,53 @@ public void setAttributes(SecurityMonitoringSignalIncidentsUpdateAttributes attr this.attributes = attributes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalIncidentsUpdateData + */ + @JsonAnySetter + public SecurityMonitoringSignalIncidentsUpdateData putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalIncidentsUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalIncidentsUpdateData securityMonitoringSignalIncidentsUpdateData = (SecurityMonitoringSignalIncidentsUpdateData) o; - return Objects.equals(this.attributes, securityMonitoringSignalIncidentsUpdateData.attributes); + return Objects.equals(this.attributes, securityMonitoringSignalIncidentsUpdateData.attributes) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalIncidentsUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes); + return Objects.hash(attributes, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalIncidentsUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateRequest.java index 2b81e96d725..04846c6a06f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalIncidentsUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request body for changing the related incidents of a given security monitoring signal. */ @@ -54,6 +58,53 @@ public void setData(SecurityMonitoringSignalIncidentsUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalIncidentsUpdateRequest + */ + @JsonAnySetter + public SecurityMonitoringSignalIncidentsUpdateRequest putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalIncidentsUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalIncidentsUpdateRequest securityMonitoringSignalIncidentsUpdateRequest = (SecurityMonitoringSignalIncidentsUpdateRequest) o; - return Objects.equals(this.data, securityMonitoringSignalIncidentsUpdateRequest.data); + return Objects.equals(this.data, securityMonitoringSignalIncidentsUpdateRequest.data) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalIncidentsUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalIncidentsUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequest.java index a79eda51f0d..cfc5ab5c1f3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The request for a security signal list. */ @@ -101,6 +105,52 @@ public void setSort(SecurityMonitoringSignalsSort sort) { this.sort = sort; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalListRequest + */ + @JsonAnySetter + public SecurityMonitoringSignalListRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalListRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,14 @@ public boolean equals(Object o) { (SecurityMonitoringSignalListRequest) o; return Objects.equals(this.filter, securityMonitoringSignalListRequest.filter) && Objects.equals(this.page, securityMonitoringSignalListRequest.page) - && Objects.equals(this.sort, securityMonitoringSignalListRequest.sort); + && Objects.equals(this.sort, securityMonitoringSignalListRequest.sort) + && Objects.equals( + this.additionalProperties, securityMonitoringSignalListRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filter, page, sort); + return Objects.hash(filter, page, sort, additionalProperties); } @Override @@ -129,6 +181,9 @@ public String toString() { sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestFilter.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestFilter.java index 1e3982b81a0..17071a0db70 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestFilter.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Search filters for listing security signals. */ @@ -95,6 +99,52 @@ public void setTo(OffsetDateTime to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalListRequestFilter + */ + @JsonAnySetter + public SecurityMonitoringSignalListRequestFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalListRequestFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,12 +158,15 @@ public boolean equals(Object o) { (SecurityMonitoringSignalListRequestFilter) o; return Objects.equals(this.from, securityMonitoringSignalListRequestFilter.from) && Objects.equals(this.query, securityMonitoringSignalListRequestFilter.query) - && Objects.equals(this.to, securityMonitoringSignalListRequestFilter.to); + && Objects.equals(this.to, securityMonitoringSignalListRequestFilter.to) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalListRequestFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(from, query, to); + return Objects.hash(from, query, to, additionalProperties); } @Override @@ -123,6 +176,9 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestPage.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestPage.java index 491e9d43ef0..7f7be301241 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalListRequestPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The paging attributes for listing security signals. */ @@ -69,6 +73,52 @@ public void setLimit(Integer limit) { this.limit = limit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalListRequestPage + */ + @JsonAnySetter + public SecurityMonitoringSignalListRequestPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalListRequestPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,15 @@ public boolean equals(Object o) { SecurityMonitoringSignalListRequestPage securityMonitoringSignalListRequestPage = (SecurityMonitoringSignalListRequestPage) o; return Objects.equals(this.cursor, securityMonitoringSignalListRequestPage.cursor) - && Objects.equals(this.limit, securityMonitoringSignalListRequestPage.limit); + && Objects.equals(this.limit, securityMonitoringSignalListRequestPage.limit) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalListRequestPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(cursor, limit); + return Objects.hash(cursor, limit, additionalProperties); } @Override @@ -95,6 +148,9 @@ public String toString() { sb.append("class SecurityMonitoringSignalListRequestPage {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleCreatePayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleCreatePayload.java index 9ff32090209..24d8deeb038 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleCreatePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleCreatePayload.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Create a new signal correlation rule. */ @@ -336,6 +340,52 @@ public void setType(SecurityMonitoringSignalRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalRuleCreatePayload + */ + @JsonAnySetter + public SecurityMonitoringSignalRuleCreatePayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalRuleCreatePayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -357,13 +407,26 @@ public boolean equals(Object o) { && Objects.equals(this.options, securityMonitoringSignalRuleCreatePayload.options) && Objects.equals(this.queries, securityMonitoringSignalRuleCreatePayload.queries) && Objects.equals(this.tags, securityMonitoringSignalRuleCreatePayload.tags) - && Objects.equals(this.type, securityMonitoringSignalRuleCreatePayload.type); + && Objects.equals(this.type, securityMonitoringSignalRuleCreatePayload.type) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalRuleCreatePayload.additionalProperties); } @Override public int hashCode() { return Objects.hash( - cases, filters, hasExtendedTitle, isEnabled, message, name, options, queries, tags, type); + cases, + filters, + hasExtendedTitle, + isEnabled, + message, + name, + options, + queries, + tags, + type, + additionalProperties); } @Override @@ -380,6 +443,9 @@ public String toString() { sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleQuery.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleQuery.java index a9e5f3c178d..f6d778f3c64 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Query for matching rule on signals. */ @@ -201,6 +205,52 @@ public void setRuleId(String ruleId) { this.ruleId = ruleId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalRuleQuery + */ + @JsonAnySetter + public SecurityMonitoringSignalRuleQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalRuleQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -219,13 +269,21 @@ public boolean equals(Object o) { this.correlatedQueryIndex, securityMonitoringSignalRuleQuery.correlatedQueryIndex) && Objects.equals(this.metrics, securityMonitoringSignalRuleQuery.metrics) && Objects.equals(this.name, securityMonitoringSignalRuleQuery.name) - && Objects.equals(this.ruleId, securityMonitoringSignalRuleQuery.ruleId); + && Objects.equals(this.ruleId, securityMonitoringSignalRuleQuery.ruleId) + && Objects.equals( + this.additionalProperties, securityMonitoringSignalRuleQuery.additionalProperties); } @Override public int hashCode() { return Objects.hash( - aggregation, correlatedByFields, correlatedQueryIndex, metrics, name, ruleId); + aggregation, + correlatedByFields, + correlatedQueryIndex, + metrics, + name, + ruleId, + additionalProperties); } @Override @@ -240,6 +298,9 @@ public String toString() { sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponse.java index b96f60a45e3..49b03b5e441 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Rule. */ @@ -522,6 +526,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalRuleResponse + */ + @JsonAnySetter + public SecurityMonitoringSignalRuleResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalRuleResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -553,7 +603,9 @@ public boolean equals(Object o) { && Objects.equals(this.tags, securityMonitoringSignalRuleResponse.tags) && Objects.equals(this.type, securityMonitoringSignalRuleResponse.type) && Objects.equals(this.updateAuthorId, securityMonitoringSignalRuleResponse.updateAuthorId) - && Objects.equals(this.version, securityMonitoringSignalRuleResponse.version); + && Objects.equals(this.version, securityMonitoringSignalRuleResponse.version) + && Objects.equals( + this.additionalProperties, securityMonitoringSignalRuleResponse.additionalProperties); } @Override @@ -576,7 +628,8 @@ public int hashCode() { tags, type, updateAuthorId, - version); + version, + additionalProperties); } @Override @@ -601,6 +654,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updateAuthorId: ").append(toIndentedString(updateAuthorId)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponseQuery.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponseQuery.java index 898b504a266..fb483f2aae6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponseQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalRuleResponseQuery.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Query for matching rule on signals. */ @@ -220,6 +224,52 @@ public void setRuleId(String ruleId) { this.ruleId = ruleId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalRuleResponseQuery + */ + @JsonAnySetter + public SecurityMonitoringSignalRuleResponseQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalRuleResponseQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -241,7 +291,10 @@ public boolean equals(Object o) { this.defaultRuleId, securityMonitoringSignalRuleResponseQuery.defaultRuleId) && Objects.equals(this.metrics, securityMonitoringSignalRuleResponseQuery.metrics) && Objects.equals(this.name, securityMonitoringSignalRuleResponseQuery.name) - && Objects.equals(this.ruleId, securityMonitoringSignalRuleResponseQuery.ruleId); + && Objects.equals(this.ruleId, securityMonitoringSignalRuleResponseQuery.ruleId) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalRuleResponseQuery.additionalProperties); } @Override @@ -253,7 +306,8 @@ public int hashCode() { defaultRuleId, metrics, name, - ruleId); + ruleId, + additionalProperties); } @Override @@ -269,6 +323,9 @@ public String toString() { sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateAttributes.java index edd11bac2a9..a1e777800e3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes describing the change of state of a security signal. */ @@ -138,6 +142,53 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalStateUpdateAttributes + */ + @JsonAnySetter + public SecurityMonitoringSignalStateUpdateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalStateUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,12 +205,15 @@ public boolean equals(Object o) { && Objects.equals( this.archiveReason, securityMonitoringSignalStateUpdateAttributes.archiveReason) && Objects.equals(this.state, securityMonitoringSignalStateUpdateAttributes.state) - && Objects.equals(this.version, securityMonitoringSignalStateUpdateAttributes.version); + && Objects.equals(this.version, securityMonitoringSignalStateUpdateAttributes.version) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalStateUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(archiveComment, archiveReason, state, version); + return Objects.hash(archiveComment, archiveReason, state, version, additionalProperties); } @Override @@ -170,6 +224,9 @@ public String toString() { sb.append(" archiveReason: ").append(toIndentedString(archiveReason)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateData.java index e9f77f91ad5..084889c66da 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data containing the patch for changing the state of a signal. */ @@ -54,6 +58,52 @@ public void setAttributes(SecurityMonitoringSignalStateUpdateAttributes attribut this.attributes = attributes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalStateUpdateData + */ + @JsonAnySetter + public SecurityMonitoringSignalStateUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalStateUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +115,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalStateUpdateData securityMonitoringSignalStateUpdateData = (SecurityMonitoringSignalStateUpdateData) o; - return Objects.equals(this.attributes, securityMonitoringSignalStateUpdateData.attributes); + return Objects.equals(this.attributes, securityMonitoringSignalStateUpdateData.attributes) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalStateUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes); + return Objects.hash(attributes, additionalProperties); } @Override @@ -78,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalStateUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateRequest.java index bc41a733974..ab23f499a72 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalStateUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request body for changing the state of a given security monitoring signal. */ @@ -54,6 +58,53 @@ public void setData(SecurityMonitoringSignalStateUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalStateUpdateRequest + */ + @JsonAnySetter + public SecurityMonitoringSignalStateUpdateRequest putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalStateUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalStateUpdateRequest securityMonitoringSignalStateUpdateRequest = (SecurityMonitoringSignalStateUpdateRequest) o; - return Objects.equals(this.data, securityMonitoringSignalStateUpdateRequest.data); + return Objects.equals(this.data, securityMonitoringSignalStateUpdateRequest.data) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalStateUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalStateUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageAttributes.java index 1befc7a9a15..af12cbed0f6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes describing a triage state update operation over a security signal. */ @@ -280,6 +284,52 @@ public void setStateUpdateUser(SecurityMonitoringTriageUser stateUpdateUser) { this.stateUpdateUser = stateUpdateUser; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalTriageAttributes + */ + @JsonAnySetter + public SecurityMonitoringSignalTriageAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalTriageAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -307,7 +357,10 @@ public boolean equals(Object o) { this.stateUpdateTimestamp, securityMonitoringSignalTriageAttributes.stateUpdateTimestamp) && Objects.equals( - this.stateUpdateUser, securityMonitoringSignalTriageAttributes.stateUpdateUser); + this.stateUpdateUser, securityMonitoringSignalTriageAttributes.stateUpdateUser) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalTriageAttributes.additionalProperties); } @Override @@ -321,7 +374,8 @@ public int hashCode() { incidentIds, state, stateUpdateTimestamp, - stateUpdateUser); + stateUpdateUser, + additionalProperties); } @Override @@ -341,6 +395,9 @@ public String toString() { .append(toIndentedString(stateUpdateTimestamp)) .append("\n"); sb.append(" stateUpdateUser: ").append(toIndentedString(stateUpdateUser)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateData.java index 580a2a5401b..fe2e8ff076d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data containing the updated triage attributes of the signal. */ @@ -44,6 +48,52 @@ public void setAttributes(SecurityMonitoringSignalTriageAttributes attributes) { this.attributes = attributes; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalTriageUpdateData + */ + @JsonAnySetter + public SecurityMonitoringSignalTriageUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalTriageUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalTriageUpdateData securityMonitoringSignalTriageUpdateData = (SecurityMonitoringSignalTriageUpdateData) o; - return Objects.equals(this.attributes, securityMonitoringSignalTriageUpdateData.attributes); + return Objects.equals(this.attributes, securityMonitoringSignalTriageUpdateData.attributes) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalTriageUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes); + return Objects.hash(attributes, additionalProperties); } @Override @@ -68,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalTriageUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateResponse.java index 701ea4048ea..0c81fe59955 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalTriageUpdateResponse.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The response returned after all triage operations, containing the updated signal triage data. */ @@ -54,6 +58,53 @@ public void setData(SecurityMonitoringSignalTriageUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalTriageUpdateResponse + */ + @JsonAnySetter + public SecurityMonitoringSignalTriageUpdateResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalTriageUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -65,12 +116,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalTriageUpdateResponse securityMonitoringSignalTriageUpdateResponse = (SecurityMonitoringSignalTriageUpdateResponse) o; - return Objects.equals(this.data, securityMonitoringSignalTriageUpdateResponse.data); + return Objects.equals(this.data, securityMonitoringSignalTriageUpdateResponse.data) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalTriageUpdateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -78,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalTriageUpdateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponse.java index b91f0709051..1f68d574b9b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -114,6 +118,52 @@ public void setMeta(SecurityMonitoringSignalsListResponseMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalsListResponse + */ + @JsonAnySetter + public SecurityMonitoringSignalsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,12 +177,14 @@ public boolean equals(Object o) { (SecurityMonitoringSignalsListResponse) o; return Objects.equals(this.data, securityMonitoringSignalsListResponse.data) && Objects.equals(this.links, securityMonitoringSignalsListResponse.links) - && Objects.equals(this.meta, securityMonitoringSignalsListResponse.meta); + && Objects.equals(this.meta, securityMonitoringSignalsListResponse.meta) + && Objects.equals( + this.additionalProperties, securityMonitoringSignalsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, links, meta); + return Objects.hash(data, links, meta, additionalProperties); } @Override @@ -142,6 +194,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseLinks.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseLinks.java index f3fbfd1556e..2a0d29c42f9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseLinks.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseLinks.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Links attributes. */ @@ -43,6 +47,53 @@ public void setNext(String next) { this.next = next; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalsListResponseLinks + */ + @JsonAnySetter + public SecurityMonitoringSignalsListResponseLinks putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalsListResponseLinks object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +105,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalsListResponseLinks securityMonitoringSignalsListResponseLinks = (SecurityMonitoringSignalsListResponseLinks) o; - return Objects.equals(this.next, securityMonitoringSignalsListResponseLinks.next); + return Objects.equals(this.next, securityMonitoringSignalsListResponseLinks.next) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalsListResponseLinks.additionalProperties); } @Override public int hashCode() { - return Objects.hash(next); + return Objects.hash(next, additionalProperties); } @Override @@ -67,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalsListResponseLinks {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMeta.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMeta.java index 99198304664..80b7ab504fd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Meta attributes. */ @@ -44,6 +48,52 @@ public void setPage(SecurityMonitoringSignalsListResponseMetaPage page) { this.page = page; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalsListResponseMeta + */ + @JsonAnySetter + public SecurityMonitoringSignalsListResponseMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalsListResponseMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +105,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalsListResponseMeta securityMonitoringSignalsListResponseMeta = (SecurityMonitoringSignalsListResponseMeta) o; - return Objects.equals(this.page, securityMonitoringSignalsListResponseMeta.page); + return Objects.equals(this.page, securityMonitoringSignalsListResponseMeta.page) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalsListResponseMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page); + return Objects.hash(page, additionalProperties); } @Override @@ -68,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalsListResponseMeta {\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMetaPage.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMetaPage.java index 1656e5eb49d..aada5e9bc6b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMetaPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringSignalsListResponseMetaPage.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Paging attributes. */ @@ -43,6 +47,53 @@ public void setAfter(String after) { this.after = after; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringSignalsListResponseMetaPage + */ + @JsonAnySetter + public SecurityMonitoringSignalsListResponseMetaPage putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringSignalsListResponseMetaPage object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +105,15 @@ public boolean equals(Object o) { } SecurityMonitoringSignalsListResponseMetaPage securityMonitoringSignalsListResponseMetaPage = (SecurityMonitoringSignalsListResponseMetaPage) o; - return Objects.equals(this.after, securityMonitoringSignalsListResponseMetaPage.after); + return Objects.equals(this.after, securityMonitoringSignalsListResponseMetaPage.after) + && Objects.equals( + this.additionalProperties, + securityMonitoringSignalsListResponseMetaPage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(after); + return Objects.hash(after, additionalProperties); } @Override @@ -67,6 +121,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringSignalsListResponseMetaPage {\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java index 612e45f9743..f6b011f925b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Create a new rule. */ @@ -338,6 +342,53 @@ public void setType(SecurityMonitoringRuleTypeCreate type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringStandardRuleCreatePayload + */ + @JsonAnySetter + public SecurityMonitoringStandardRuleCreatePayload putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringStandardRuleCreatePayload object is equal to o. */ @Override public boolean equals(Object o) { @@ -359,13 +410,26 @@ public boolean equals(Object o) { && Objects.equals(this.options, securityMonitoringStandardRuleCreatePayload.options) && Objects.equals(this.queries, securityMonitoringStandardRuleCreatePayload.queries) && Objects.equals(this.tags, securityMonitoringStandardRuleCreatePayload.tags) - && Objects.equals(this.type, securityMonitoringStandardRuleCreatePayload.type); + && Objects.equals(this.type, securityMonitoringStandardRuleCreatePayload.type) + && Objects.equals( + this.additionalProperties, + securityMonitoringStandardRuleCreatePayload.additionalProperties); } @Override public int hashCode() { return Objects.hash( - cases, filters, hasExtendedTitle, isEnabled, message, name, options, queries, tags, type); + cases, + filters, + hasExtendedTitle, + isEnabled, + message, + name, + options, + queries, + tags, + type, + additionalProperties); } @Override @@ -382,6 +446,9 @@ public String toString() { sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleQuery.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleQuery.java index ba2fe3bc731..c26b4e9c79f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleQuery.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Query for matching rule. */ @@ -239,6 +243,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringStandardRuleQuery + */ + @JsonAnySetter + public SecurityMonitoringStandardRuleQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringStandardRuleQuery object is equal to o. */ @Override public boolean equals(Object o) { @@ -256,12 +306,22 @@ public boolean equals(Object o) { && Objects.equals(this.metric, securityMonitoringStandardRuleQuery.metric) && Objects.equals(this.metrics, securityMonitoringStandardRuleQuery.metrics) && Objects.equals(this.name, securityMonitoringStandardRuleQuery.name) - && Objects.equals(this.query, securityMonitoringStandardRuleQuery.query); + && Objects.equals(this.query, securityMonitoringStandardRuleQuery.query) + && Objects.equals( + this.additionalProperties, securityMonitoringStandardRuleQuery.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregation, distinctFields, groupByFields, metric, metrics, name, query); + return Objects.hash( + aggregation, + distinctFields, + groupByFields, + metric, + metrics, + name, + query, + additionalProperties); } @Override @@ -275,6 +335,9 @@ public String toString() { sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java index a735fd58b0f..e379a1ec17c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Rule. */ @@ -551,6 +555,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringStandardRuleResponse + */ + @JsonAnySetter + public SecurityMonitoringStandardRuleResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringStandardRuleResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -586,7 +636,9 @@ public boolean equals(Object o) { && Objects.equals(this.type, securityMonitoringStandardRuleResponse.type) && Objects.equals( this.updateAuthorId, securityMonitoringStandardRuleResponse.updateAuthorId) - && Objects.equals(this.version, securityMonitoringStandardRuleResponse.version); + && Objects.equals(this.version, securityMonitoringStandardRuleResponse.version) + && Objects.equals( + this.additionalProperties, securityMonitoringStandardRuleResponse.additionalProperties); } @Override @@ -610,7 +662,8 @@ public int hashCode() { tags, type, updateAuthorId, - version); + version, + additionalProperties); } @Override @@ -638,6 +691,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updateAuthorId: ").append(toIndentedString(updateAuthorId)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 e75ffba8e5c..97a67a869e4 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 @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -138,6 +142,52 @@ public void setUuid(String uuid) { this.uuid = uuid; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringTriageUser + */ + @JsonAnySetter + public SecurityMonitoringTriageUser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SecurityMonitoringTriageUser object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,12 +201,14 @@ public boolean equals(Object o) { return Objects.equals(this.handle, securityMonitoringTriageUser.handle) && Objects.equals(this.id, securityMonitoringTriageUser.id) && Objects.equals(this.name, securityMonitoringTriageUser.name) - && Objects.equals(this.uuid, securityMonitoringTriageUser.uuid); + && Objects.equals(this.uuid, securityMonitoringTriageUser.uuid) + && Objects.equals( + this.additionalProperties, securityMonitoringTriageUser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(handle, id, name, uuid); + return Objects.hash(handle, id, name, uuid, additionalProperties); } @Override @@ -167,6 +219,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigRequest.java index 76eaf5f0dde..a2812b0b5f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Group reorder request. */ @@ -84,6 +88,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerConfigRequest + */ + @JsonAnySetter + public SensitiveDataScannerConfigRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerConfigRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { SensitiveDataScannerConfigRequest sensitiveDataScannerConfigRequest = (SensitiveDataScannerConfigRequest) o; return Objects.equals(this.data, sensitiveDataScannerConfigRequest.data) - && Objects.equals(this.meta, sensitiveDataScannerConfigRequest.meta); + && Objects.equals(this.meta, sensitiveDataScannerConfigRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerConfigRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class SensitiveDataScannerConfigRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfiguration.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfiguration.java index 0d897b51719..49de9d65c6c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfiguration.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfiguration.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A Sensitive Data Scanner configuration. */ @@ -74,6 +78,52 @@ public void setType(SensitiveDataScannerConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerConfiguration + */ + @JsonAnySetter + public SensitiveDataScannerConfiguration putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerConfiguration object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,14 @@ public boolean equals(Object o) { SensitiveDataScannerConfiguration sensitiveDataScannerConfiguration = (SensitiveDataScannerConfiguration) o; return Objects.equals(this.id, sensitiveDataScannerConfiguration.id) - && Objects.equals(this.type, sensitiveDataScannerConfiguration.type); + && Objects.equals(this.type, sensitiveDataScannerConfiguration.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerConfiguration.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -100,6 +152,9 @@ public String toString() { sb.append("class SensitiveDataScannerConfiguration {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationData.java index fac6cd5a462..44ca59be859 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A Sensitive Data Scanner configuration data. */ @@ -43,6 +47,52 @@ public void setData(SensitiveDataScannerConfiguration data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerConfigurationData + */ + @JsonAnySetter + public SensitiveDataScannerConfigurationData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerConfigurationData object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } SensitiveDataScannerConfigurationData sensitiveDataScannerConfigurationData = (SensitiveDataScannerConfigurationData) o; - return Objects.equals(this.data, sensitiveDataScannerConfigurationData.data); + return Objects.equals(this.data, sensitiveDataScannerConfigurationData.data) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerConfigurationData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerConfigurationData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationRelationships.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationRelationships.java index 60d7687274f..db2daf41725 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerConfigurationRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of the configuration. */ @@ -44,6 +48,53 @@ public void setGroups(SensitiveDataScannerGroupList groups) { this.groups = groups; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerConfigurationRelationships + */ + @JsonAnySetter + public SensitiveDataScannerConfigurationRelationships putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerConfigurationRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -55,12 +106,15 @@ public boolean equals(Object o) { } SensitiveDataScannerConfigurationRelationships sensitiveDataScannerConfigurationRelationships = (SensitiveDataScannerConfigurationRelationships) o; - return Objects.equals(this.groups, sensitiveDataScannerConfigurationRelationships.groups); + return Objects.equals(this.groups, sensitiveDataScannerConfigurationRelationships.groups) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerConfigurationRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groups); + return Objects.hash(groups, additionalProperties); } @Override @@ -68,6 +122,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerConfigurationRelationships {\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateGroupResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateGroupResponse.java index 2994ff8c918..6eb7086938f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateGroupResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateGroupResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create group response. */ @@ -71,6 +75,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerCreateGroupResponse + */ + @JsonAnySetter + public SensitiveDataScannerCreateGroupResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerCreateGroupResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,15 @@ public boolean equals(Object o) { SensitiveDataScannerCreateGroupResponse sensitiveDataScannerCreateGroupResponse = (SensitiveDataScannerCreateGroupResponse) o; return Objects.equals(this.data, sensitiveDataScannerCreateGroupResponse.data) - && Objects.equals(this.meta, sensitiveDataScannerCreateGroupResponse.meta); + && Objects.equals(this.meta, sensitiveDataScannerCreateGroupResponse.meta) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerCreateGroupResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -97,6 +150,9 @@ public String toString() { sb.append("class SensitiveDataScannerCreateGroupResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateRuleResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateRuleResponse.java index c2dd3b105ff..0ef95192620 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateRuleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerCreateRuleResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create rule response. */ @@ -71,6 +75,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerCreateRuleResponse + */ + @JsonAnySetter + public SensitiveDataScannerCreateRuleResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerCreateRuleResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { SensitiveDataScannerCreateRuleResponse sensitiveDataScannerCreateRuleResponse = (SensitiveDataScannerCreateRuleResponse) o; return Objects.equals(this.data, sensitiveDataScannerCreateRuleResponse.data) - && Objects.equals(this.meta, sensitiveDataScannerCreateRuleResponse.meta); + && Objects.equals(this.meta, sensitiveDataScannerCreateRuleResponse.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerCreateRuleResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class SensitiveDataScannerCreateRuleResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerFilter.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerFilter.java index 3c6282455a9..80a8210ed4e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Filter for the Scanning Group. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerFilter + */ + @JsonAnySetter + public SensitiveDataScannerFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,14 @@ public boolean equals(Object o) { return false; } SensitiveDataScannerFilter sensitiveDataScannerFilter = (SensitiveDataScannerFilter) o; - return Objects.equals(this.query, sensitiveDataScannerFilter.query); + return Objects.equals(this.query, sensitiveDataScannerFilter.query) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponse.java index 815b4032b12..29163f64a0e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Get all groups response. */ @@ -113,6 +117,52 @@ public void setMeta(SensitiveDataScannerMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGetConfigResponse + */ + @JsonAnySetter + public SensitiveDataScannerGetConfigResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGetConfigResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -126,12 +176,14 @@ public boolean equals(Object o) { (SensitiveDataScannerGetConfigResponse) o; return Objects.equals(this.data, sensitiveDataScannerGetConfigResponse.data) && Objects.equals(this.included, sensitiveDataScannerGetConfigResponse.included) - && Objects.equals(this.meta, sensitiveDataScannerGetConfigResponse.meta); + && Objects.equals(this.meta, sensitiveDataScannerGetConfigResponse.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGetConfigResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -141,6 +193,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java index 76906cfaea0..787aba6464f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response data related to the scanning groups. */ @@ -102,6 +106,52 @@ public void setType(SensitiveDataScannerConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGetConfigResponseData + */ + @JsonAnySetter + public SensitiveDataScannerGetConfigResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGetConfigResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,12 +166,15 @@ public boolean equals(Object o) { return Objects.equals(this.id, sensitiveDataScannerGetConfigResponseData.id) && Objects.equals( this.relationships, sensitiveDataScannerGetConfigResponseData.relationships) - && Objects.equals(this.type, sensitiveDataScannerGetConfigResponseData.type); + && Objects.equals(this.type, sensitiveDataScannerGetConfigResponseData.type) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerGetConfigResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, relationships, type); + return Objects.hash(id, relationships, type, additionalProperties); } @Override @@ -131,6 +184,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroup.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroup.java index 87d25624902..ffa7ec3cc52 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroup.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroup.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A scanning group. */ @@ -74,6 +78,52 @@ public void setType(SensitiveDataScannerGroupType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroup + */ + @JsonAnySetter + public SensitiveDataScannerGroup putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroup object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { } SensitiveDataScannerGroup sensitiveDataScannerGroup = (SensitiveDataScannerGroup) o; return Objects.equals(this.id, sensitiveDataScannerGroup.id) - && Objects.equals(this.type, sensitiveDataScannerGroup.type); + && Objects.equals(this.type, sensitiveDataScannerGroup.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroup.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class SensitiveDataScannerGroup {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupAttributes.java index 6c7cc3397c9..c0f499cc678 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes of the Sensitive Data Scanner group. */ @@ -158,6 +162,52 @@ public void setProductList(List productList) { this.productList = productList; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupAttributes + */ + @JsonAnySetter + public SensitiveDataScannerGroupAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -173,12 +223,14 @@ public boolean equals(Object o) { && Objects.equals(this.filter, sensitiveDataScannerGroupAttributes.filter) && Objects.equals(this.isEnabled, sensitiveDataScannerGroupAttributes.isEnabled) && Objects.equals(this.name, sensitiveDataScannerGroupAttributes.name) - && Objects.equals(this.productList, sensitiveDataScannerGroupAttributes.productList); + && Objects.equals(this.productList, sensitiveDataScannerGroupAttributes.productList) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, filter, isEnabled, name, productList); + return Objects.hash(description, filter, isEnabled, name, productList, additionalProperties); } @Override @@ -190,6 +242,9 @@ public String toString() { sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" productList: ").append(toIndentedString(productList)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreate.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreate.java index 130ba935ca1..8cd07ca8c1a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the creation of a group. */ @@ -116,6 +120,52 @@ public void setType(SensitiveDataScannerGroupType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupCreate + */ + @JsonAnySetter + public SensitiveDataScannerGroupCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -129,12 +179,14 @@ public boolean equals(Object o) { (SensitiveDataScannerGroupCreate) o; return Objects.equals(this.attributes, sensitiveDataScannerGroupCreate.attributes) && Objects.equals(this.relationships, sensitiveDataScannerGroupCreate.relationships) - && Objects.equals(this.type, sensitiveDataScannerGroupCreate.type); + && Objects.equals(this.type, sensitiveDataScannerGroupCreate.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -144,6 +196,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreateRequest.java index 3025491e8cd..84a4abbe486 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupCreateRequest.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create group request. */ @@ -71,6 +75,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupCreateRequest + */ + @JsonAnySetter + public SensitiveDataScannerGroupCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { SensitiveDataScannerGroupCreateRequest sensitiveDataScannerGroupCreateRequest = (SensitiveDataScannerGroupCreateRequest) o; return Objects.equals(this.data, sensitiveDataScannerGroupCreateRequest.data) - && Objects.equals(this.meta, sensitiveDataScannerGroupCreateRequest.meta); + && Objects.equals(this.meta, sensitiveDataScannerGroupCreateRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class SensitiveDataScannerGroupCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupData.java index a06fd4f9ed2..54e33826532 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A scanning group data. */ @@ -43,6 +47,52 @@ public void setData(SensitiveDataScannerGroup data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupData + */ + @JsonAnySetter + public SensitiveDataScannerGroupData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupData object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } SensitiveDataScannerGroupData sensitiveDataScannerGroupData = (SensitiveDataScannerGroupData) o; - return Objects.equals(this.data, sensitiveDataScannerGroupData.data); + return Objects.equals(this.data, sensitiveDataScannerGroupData.data) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerGroupData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteRequest.java index b858df5cb78..77c6ce1d06b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Delete group request. */ @@ -53,6 +57,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupDeleteRequest + */ + @JsonAnySetter + public SensitiveDataScannerGroupDeleteRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupDeleteRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } SensitiveDataScannerGroupDeleteRequest sensitiveDataScannerGroupDeleteRequest = (SensitiveDataScannerGroupDeleteRequest) o; - return Objects.equals(this.meta, sensitiveDataScannerGroupDeleteRequest.meta); + return Objects.equals(this.meta, sensitiveDataScannerGroupDeleteRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupDeleteRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerGroupDeleteRequest {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteResponse.java index 54b8fb290c2..7deac464dd3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupDeleteResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Delete group response. */ @@ -43,6 +47,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupDeleteResponse + */ + @JsonAnySetter + public SensitiveDataScannerGroupDeleteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupDeleteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,15 @@ public boolean equals(Object o) { } SensitiveDataScannerGroupDeleteResponse sensitiveDataScannerGroupDeleteResponse = (SensitiveDataScannerGroupDeleteResponse) o; - return Objects.equals(this.meta, sensitiveDataScannerGroupDeleteResponse.meta); + return Objects.equals(this.meta, sensitiveDataScannerGroupDeleteResponse.meta) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerGroupDeleteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -67,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerGroupDeleteResponse {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupIncludedItem.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupIncludedItem.java index 8b287e50f60..f41dad43196 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupIncludedItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupIncludedItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A Scanning Group included item. */ @@ -128,6 +132,52 @@ public void setType(SensitiveDataScannerGroupType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupIncludedItem + */ + @JsonAnySetter + public SensitiveDataScannerGroupIncludedItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupIncludedItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -142,12 +192,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, sensitiveDataScannerGroupIncludedItem.attributes) && Objects.equals(this.id, sensitiveDataScannerGroupIncludedItem.id) && Objects.equals(this.relationships, sensitiveDataScannerGroupIncludedItem.relationships) - && Objects.equals(this.type, sensitiveDataScannerGroupIncludedItem.type); + && Objects.equals(this.type, sensitiveDataScannerGroupIncludedItem.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupIncludedItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -158,6 +210,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupItem.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupItem.java index 303ab5176fe..31ccd7ea25c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to a Sensitive Data Scanner Group. */ @@ -74,6 +78,52 @@ public void setType(SensitiveDataScannerGroupType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupItem + */ + @JsonAnySetter + public SensitiveDataScannerGroupItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { } SensitiveDataScannerGroupItem sensitiveDataScannerGroupItem = (SensitiveDataScannerGroupItem) o; return Objects.equals(this.id, sensitiveDataScannerGroupItem.id) - && Objects.equals(this.type, sensitiveDataScannerGroupItem.type); + && Objects.equals(this.type, sensitiveDataScannerGroupItem.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class SensitiveDataScannerGroupItem {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupList.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupList.java index fbfee164940..97f16226477 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupList.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupList.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List of groups, ordered. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupList + */ + @JsonAnySetter + public SensitiveDataScannerGroupList putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupList object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } SensitiveDataScannerGroupList sensitiveDataScannerGroupList = (SensitiveDataScannerGroupList) o; - return Objects.equals(this.data, sensitiveDataScannerGroupList.data); + return Objects.equals(this.data, sensitiveDataScannerGroupList.data) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupList.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerGroupList {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupRelationships.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupRelationships.java index d058d2894b5..4fbe2fa3065 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of the group. */ @@ -72,6 +76,52 @@ public void setRules(SensitiveDataScannerRuleData rules) { this.rules = rules; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupRelationships + */ + @JsonAnySetter + public SensitiveDataScannerGroupRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -84,12 +134,14 @@ public boolean equals(Object o) { SensitiveDataScannerGroupRelationships sensitiveDataScannerGroupRelationships = (SensitiveDataScannerGroupRelationships) o; return Objects.equals(this.configuration, sensitiveDataScannerGroupRelationships.configuration) - && Objects.equals(this.rules, sensitiveDataScannerGroupRelationships.rules); + && Objects.equals(this.rules, sensitiveDataScannerGroupRelationships.rules) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(configuration, rules); + return Objects.hash(configuration, rules, additionalProperties); } @Override @@ -98,6 +150,9 @@ public String toString() { sb.append("class SensitiveDataScannerGroupRelationships {\n"); sb.append(" configuration: ").append(toIndentedString(configuration)).append("\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupResponse.java index ed5830c38d2..287243b0e0b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response data related to the creation of a group. */ @@ -128,6 +132,52 @@ public void setType(SensitiveDataScannerGroupType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupResponse + */ + @JsonAnySetter + public SensitiveDataScannerGroupResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -142,12 +192,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, sensitiveDataScannerGroupResponse.attributes) && Objects.equals(this.id, sensitiveDataScannerGroupResponse.id) && Objects.equals(this.relationships, sensitiveDataScannerGroupResponse.relationships) - && Objects.equals(this.type, sensitiveDataScannerGroupResponse.type); + && Objects.equals(this.type, sensitiveDataScannerGroupResponse.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -158,6 +210,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdate.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdate.java index 3d5f468623a..0f89a9716a6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdate.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the update of a group. */ @@ -128,6 +132,52 @@ public void setType(SensitiveDataScannerGroupType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupUpdate + */ + @JsonAnySetter + public SensitiveDataScannerGroupUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupUpdate object is equal to o. */ @Override public boolean equals(Object o) { @@ -142,12 +192,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, sensitiveDataScannerGroupUpdate.attributes) && Objects.equals(this.id, sensitiveDataScannerGroupUpdate.id) && Objects.equals(this.relationships, sensitiveDataScannerGroupUpdate.relationships) - && Objects.equals(this.type, sensitiveDataScannerGroupUpdate.type); + && Objects.equals(this.type, sensitiveDataScannerGroupUpdate.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -158,6 +210,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateRequest.java index 2ce396f8592..a49befe4d45 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update group request. */ @@ -84,6 +88,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupUpdateRequest + */ + @JsonAnySetter + public SensitiveDataScannerGroupUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { SensitiveDataScannerGroupUpdateRequest sensitiveDataScannerGroupUpdateRequest = (SensitiveDataScannerGroupUpdateRequest) o; return Objects.equals(this.data, sensitiveDataScannerGroupUpdateRequest.data) - && Objects.equals(this.meta, sensitiveDataScannerGroupUpdateRequest.meta); + && Objects.equals(this.meta, sensitiveDataScannerGroupUpdateRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerGroupUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class SensitiveDataScannerGroupUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateResponse.java index decaf456e93..dd4e33c4b1e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGroupUpdateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update group response. */ @@ -43,6 +47,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerGroupUpdateResponse + */ + @JsonAnySetter + public SensitiveDataScannerGroupUpdateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerGroupUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,15 @@ public boolean equals(Object o) { } SensitiveDataScannerGroupUpdateResponse sensitiveDataScannerGroupUpdateResponse = (SensitiveDataScannerGroupUpdateResponse) o; - return Objects.equals(this.meta, sensitiveDataScannerGroupUpdateResponse.meta); + return Objects.equals(this.meta, sensitiveDataScannerGroupUpdateResponse.meta) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerGroupUpdateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -67,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerGroupUpdateResponse {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java index 4fb21fce9ae..366bf5188c1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Meta response containing information about the API. */ @@ -144,6 +148,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerMeta + */ + @JsonAnySetter + public SensitiveDataScannerMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -158,12 +208,19 @@ public boolean equals(Object o) { && Objects.equals(this.groupCountLimit, sensitiveDataScannerMeta.groupCountLimit) && Objects.equals(this.hasHighlightEnabled, sensitiveDataScannerMeta.hasHighlightEnabled) && Objects.equals(this.isPciCompliant, sensitiveDataScannerMeta.isPciCompliant) - && Objects.equals(this.version, sensitiveDataScannerMeta.version); + && Objects.equals(this.version, sensitiveDataScannerMeta.version) + && Objects.equals(this.additionalProperties, sensitiveDataScannerMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(countLimit, groupCountLimit, hasHighlightEnabled, isPciCompliant, version); + return Objects.hash( + countLimit, + groupCountLimit, + hasHighlightEnabled, + isPciCompliant, + version, + additionalProperties); } @Override @@ -177,6 +234,9 @@ public String toString() { .append("\n"); sb.append(" isPciCompliant: ").append(toIndentedString(isPciCompliant)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMetaVersionOnly.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMetaVersionOnly.java index 412d220b082..de33ca751b0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMetaVersionOnly.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMetaVersionOnly.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Meta payload containing information about the API. */ @@ -42,6 +46,52 @@ public void setVersion(Long version) { this.version = version; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerMetaVersionOnly + */ + @JsonAnySetter + public SensitiveDataScannerMetaVersionOnly putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerMetaVersionOnly object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } SensitiveDataScannerMetaVersionOnly sensitiveDataScannerMetaVersionOnly = (SensitiveDataScannerMetaVersionOnly) o; - return Objects.equals(this.version, sensitiveDataScannerMetaVersionOnly.version); + return Objects.equals(this.version, sensitiveDataScannerMetaVersionOnly.version) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerMetaVersionOnly.additionalProperties); } @Override public int hashCode() { - return Objects.hash(version); + return Objects.hash(version, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerMetaVersionOnly {\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderConfig.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderConfig.java index 9c06b47a6b9..12f9e337e9a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderConfig.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderConfig.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the reordering of scanning groups. */ @@ -101,6 +105,52 @@ public void setType(SensitiveDataScannerConfigurationType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerReorderConfig + */ + @JsonAnySetter + public SensitiveDataScannerReorderConfig putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerReorderConfig object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,14 @@ public boolean equals(Object o) { (SensitiveDataScannerReorderConfig) o; return Objects.equals(this.id, sensitiveDataScannerReorderConfig.id) && Objects.equals(this.relationships, sensitiveDataScannerReorderConfig.relationships) - && Objects.equals(this.type, sensitiveDataScannerReorderConfig.type); + && Objects.equals(this.type, sensitiveDataScannerReorderConfig.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerReorderConfig.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, relationships, type); + return Objects.hash(id, relationships, type, additionalProperties); } @Override @@ -129,6 +181,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderGroupsResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderGroupsResponse.java index 4c01bda9099..16f5024cd2e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderGroupsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerReorderGroupsResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Group reorder response. */ @@ -43,6 +47,52 @@ public void setMeta(SensitiveDataScannerMeta meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerReorderGroupsResponse + */ + @JsonAnySetter + public SensitiveDataScannerReorderGroupsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerReorderGroupsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,15 @@ public boolean equals(Object o) { } SensitiveDataScannerReorderGroupsResponse sensitiveDataScannerReorderGroupsResponse = (SensitiveDataScannerReorderGroupsResponse) o; - return Objects.equals(this.meta, sensitiveDataScannerReorderGroupsResponse.meta); + return Objects.equals(this.meta, sensitiveDataScannerReorderGroupsResponse.meta) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerReorderGroupsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -67,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerReorderGroupsResponse {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRule.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRule.java index cc105a5d32b..430a8bca534 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRule.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRule.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Rule item included in the group. */ @@ -74,6 +78,52 @@ public void setType(SensitiveDataScannerRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRule + */ + @JsonAnySetter + public SensitiveDataScannerRule putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRule object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,13 @@ public boolean equals(Object o) { } SensitiveDataScannerRule sensitiveDataScannerRule = (SensitiveDataScannerRule) o; return Objects.equals(this.id, sensitiveDataScannerRule.id) - && Objects.equals(this.type, sensitiveDataScannerRule.type); + && Objects.equals(this.type, sensitiveDataScannerRule.type) + && Objects.equals(this.additionalProperties, sensitiveDataScannerRule.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append("class SensitiveDataScannerRule {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleAttributes.java index 561dd5fa439..e69d5636889 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes of the Sensitive Data Scanner rule. */ @@ -250,6 +254,52 @@ public void setTextReplacement(SensitiveDataScannerTextReplacement textReplaceme this.textReplacement = textReplacement; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleAttributes + */ + @JsonAnySetter + public SensitiveDataScannerRuleAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -269,7 +319,9 @@ public boolean equals(Object o) { && Objects.equals(this.namespaces, sensitiveDataScannerRuleAttributes.namespaces) && Objects.equals(this.pattern, sensitiveDataScannerRuleAttributes.pattern) && Objects.equals(this.tags, sensitiveDataScannerRuleAttributes.tags) - && Objects.equals(this.textReplacement, sensitiveDataScannerRuleAttributes.textReplacement); + && Objects.equals(this.textReplacement, sensitiveDataScannerRuleAttributes.textReplacement) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleAttributes.additionalProperties); } @Override @@ -282,7 +334,8 @@ public int hashCode() { namespaces, pattern, tags, - textReplacement); + textReplacement, + additionalProperties); } @Override @@ -297,6 +350,9 @@ public String toString() { sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" textReplacement: ").append(toIndentedString(textReplacement)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreate.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreate.java index 5ab7c9c0ab5..3fe6754e707 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the creation of a rule. */ @@ -118,6 +122,52 @@ public void setType(SensitiveDataScannerRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleCreate + */ + @JsonAnySetter + public SensitiveDataScannerRuleCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -131,12 +181,14 @@ public boolean equals(Object o) { (SensitiveDataScannerRuleCreate) o; return Objects.equals(this.attributes, sensitiveDataScannerRuleCreate.attributes) && Objects.equals(this.relationships, sensitiveDataScannerRuleCreate.relationships) - && Objects.equals(this.type, sensitiveDataScannerRuleCreate.type); + && Objects.equals(this.type, sensitiveDataScannerRuleCreate.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -146,6 +198,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreateRequest.java index 343e5283741..610344eb996 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create rule request. */ @@ -84,6 +88,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleCreateRequest + */ + @JsonAnySetter + public SensitiveDataScannerRuleCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { SensitiveDataScannerRuleCreateRequest sensitiveDataScannerRuleCreateRequest = (SensitiveDataScannerRuleCreateRequest) o; return Objects.equals(this.data, sensitiveDataScannerRuleCreateRequest.data) - && Objects.equals(this.meta, sensitiveDataScannerRuleCreateRequest.meta); + && Objects.equals(this.meta, sensitiveDataScannerRuleCreateRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class SensitiveDataScannerRuleCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleData.java index e349139f341..a5438b2394e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Rules included in the group. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleData + */ + @JsonAnySetter + public SensitiveDataScannerRuleData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleData object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,14 @@ public boolean equals(Object o) { return false; } SensitiveDataScannerRuleData sensitiveDataScannerRuleData = (SensitiveDataScannerRuleData) o; - return Objects.equals(this.data, sensitiveDataScannerRuleData.data); + return Objects.equals(this.data, sensitiveDataScannerRuleData.data) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +131,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerRuleData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteRequest.java index 6574ce48130..f691566cb11 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Delete rule request. */ @@ -53,6 +57,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleDeleteRequest + */ + @JsonAnySetter + public SensitiveDataScannerRuleDeleteRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleDeleteRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,12 +114,14 @@ public boolean equals(Object o) { } SensitiveDataScannerRuleDeleteRequest sensitiveDataScannerRuleDeleteRequest = (SensitiveDataScannerRuleDeleteRequest) o; - return Objects.equals(this.meta, sensitiveDataScannerRuleDeleteRequest.meta); + return Objects.equals(this.meta, sensitiveDataScannerRuleDeleteRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleDeleteRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -77,6 +129,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerRuleDeleteRequest {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteResponse.java index 571f683bc7e..66e36a6c8c0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleDeleteResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Delete rule response. */ @@ -43,6 +47,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleDeleteResponse + */ + @JsonAnySetter + public SensitiveDataScannerRuleDeleteResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleDeleteResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } SensitiveDataScannerRuleDeleteResponse sensitiveDataScannerRuleDeleteResponse = (SensitiveDataScannerRuleDeleteResponse) o; - return Objects.equals(this.meta, sensitiveDataScannerRuleDeleteResponse.meta); + return Objects.equals(this.meta, sensitiveDataScannerRuleDeleteResponse.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleDeleteResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerRuleDeleteResponse {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleIncludedItem.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleIncludedItem.java index 6971466a8b2..b777e6e288e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleIncludedItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleIncludedItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A Scanning Rule included item. */ @@ -128,6 +132,52 @@ public void setType(SensitiveDataScannerRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleIncludedItem + */ + @JsonAnySetter + public SensitiveDataScannerRuleIncludedItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleIncludedItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -142,12 +192,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, sensitiveDataScannerRuleIncludedItem.attributes) && Objects.equals(this.id, sensitiveDataScannerRuleIncludedItem.id) && Objects.equals(this.relationships, sensitiveDataScannerRuleIncludedItem.relationships) - && Objects.equals(this.type, sensitiveDataScannerRuleIncludedItem.type); + && Objects.equals(this.type, sensitiveDataScannerRuleIncludedItem.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleIncludedItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -158,6 +210,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleRelationships.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleRelationships.java index daed797a0d9..f1472f61bdc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of a scanning rule. */ @@ -72,6 +76,52 @@ public void setStandardPattern(SensitiveDataScannerStandardPatternData standardP this.standardPattern = standardPattern; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleRelationships + */ + @JsonAnySetter + public SensitiveDataScannerRuleRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { (SensitiveDataScannerRuleRelationships) o; return Objects.equals(this.group, sensitiveDataScannerRuleRelationships.group) && Objects.equals( - this.standardPattern, sensitiveDataScannerRuleRelationships.standardPattern); + this.standardPattern, sensitiveDataScannerRuleRelationships.standardPattern) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(group, standardPattern); + return Objects.hash(group, standardPattern, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class SensitiveDataScannerRuleRelationships {\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" standardPattern: ").append(toIndentedString(standardPattern)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleResponse.java index 6e52d8c9309..087c55459ac 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response data related to the creation of a rule. */ @@ -128,6 +132,52 @@ public void setType(SensitiveDataScannerRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleResponse + */ + @JsonAnySetter + public SensitiveDataScannerRuleResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -142,12 +192,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, sensitiveDataScannerRuleResponse.attributes) && Objects.equals(this.id, sensitiveDataScannerRuleResponse.id) && Objects.equals(this.relationships, sensitiveDataScannerRuleResponse.relationships) - && Objects.equals(this.type, sensitiveDataScannerRuleResponse.type); + && Objects.equals(this.type, sensitiveDataScannerRuleResponse.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -158,6 +210,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdate.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdate.java index d004786ed4d..0fea9374bab 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdate.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data related to the update of a rule. */ @@ -127,6 +131,52 @@ public void setType(SensitiveDataScannerRuleType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleUpdate + */ + @JsonAnySetter + public SensitiveDataScannerRuleUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleUpdate object is equal to o. */ @Override public boolean equals(Object o) { @@ -141,12 +191,14 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, sensitiveDataScannerRuleUpdate.attributes) && Objects.equals(this.id, sensitiveDataScannerRuleUpdate.id) && Objects.equals(this.relationships, sensitiveDataScannerRuleUpdate.relationships) - && Objects.equals(this.type, sensitiveDataScannerRuleUpdate.type); + && Objects.equals(this.type, sensitiveDataScannerRuleUpdate.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -157,6 +209,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateRequest.java index 6941b2d8627..567f0d61352 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update rule request. */ @@ -84,6 +88,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleUpdateRequest + */ + @JsonAnySetter + public SensitiveDataScannerRuleUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,12 +146,14 @@ public boolean equals(Object o) { SensitiveDataScannerRuleUpdateRequest sensitiveDataScannerRuleUpdateRequest = (SensitiveDataScannerRuleUpdateRequest) o; return Objects.equals(this.data, sensitiveDataScannerRuleUpdateRequest.data) - && Objects.equals(this.meta, sensitiveDataScannerRuleUpdateRequest.meta); + && Objects.equals(this.meta, sensitiveDataScannerRuleUpdateRequest.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, meta); + return Objects.hash(data, meta, additionalProperties); } @Override @@ -110,6 +162,9 @@ public String toString() { sb.append("class SensitiveDataScannerRuleUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateResponse.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateResponse.java index be38a33eb90..9e37d30084e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerRuleUpdateResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update rule response. */ @@ -43,6 +47,52 @@ public void setMeta(SensitiveDataScannerMetaVersionOnly meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerRuleUpdateResponse + */ + @JsonAnySetter + public SensitiveDataScannerRuleUpdateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerRuleUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,14 @@ public boolean equals(Object o) { } SensitiveDataScannerRuleUpdateResponse sensitiveDataScannerRuleUpdateResponse = (SensitiveDataScannerRuleUpdateResponse) o; - return Objects.equals(this.meta, sensitiveDataScannerRuleUpdateResponse.meta); + return Objects.equals(this.meta, sensitiveDataScannerRuleUpdateResponse.meta) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerRuleUpdateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta); + return Objects.hash(meta, additionalProperties); } @Override @@ -67,6 +119,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerRuleUpdateResponse {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPattern.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPattern.java index 2c543062bdd..b7b9f6cdd46 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPattern.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPattern.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Data containing the standard pattern id. */ @@ -74,6 +78,52 @@ public void setType(SensitiveDataScannerStandardPatternType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerStandardPattern + */ + @JsonAnySetter + public SensitiveDataScannerStandardPattern putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerStandardPattern object is equal to o. */ @Override public boolean equals(Object o) { @@ -86,12 +136,14 @@ public boolean equals(Object o) { SensitiveDataScannerStandardPattern sensitiveDataScannerStandardPattern = (SensitiveDataScannerStandardPattern) o; return Objects.equals(this.id, sensitiveDataScannerStandardPattern.id) - && Objects.equals(this.type, sensitiveDataScannerStandardPattern.type); + && Objects.equals(this.type, sensitiveDataScannerStandardPattern.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerStandardPattern.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, type); + return Objects.hash(id, type, additionalProperties); } @Override @@ -100,6 +152,9 @@ public String toString() { sb.append("class SensitiveDataScannerStandardPattern {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java index 361965250e1..7d8b930b607 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Attributes of the Sensitive Data Scanner standard pattern. */ @@ -104,6 +108,53 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerStandardPatternAttributes + */ + @JsonAnySetter + public SensitiveDataScannerStandardPatternAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerStandardPatternAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +168,15 @@ public boolean equals(Object o) { (SensitiveDataScannerStandardPatternAttributes) o; return Objects.equals(this.name, sensitiveDataScannerStandardPatternAttributes.name) && Objects.equals(this.pattern, sensitiveDataScannerStandardPatternAttributes.pattern) - && Objects.equals(this.tags, sensitiveDataScannerStandardPatternAttributes.tags); + && Objects.equals(this.tags, sensitiveDataScannerStandardPatternAttributes.tags) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerStandardPatternAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, pattern, tags); + return Objects.hash(name, pattern, tags, additionalProperties); } @Override @@ -132,6 +186,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternData.java index a796de8e4cd..c607fde3477 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A standard pattern. */ @@ -43,6 +47,52 @@ public void setData(SensitiveDataScannerStandardPattern data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerStandardPatternData + */ + @JsonAnySetter + public SensitiveDataScannerStandardPatternData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerStandardPatternData object is equal to o. */ @Override public boolean equals(Object o) { @@ -54,12 +104,15 @@ public boolean equals(Object o) { } SensitiveDataScannerStandardPatternData sensitiveDataScannerStandardPatternData = (SensitiveDataScannerStandardPatternData) o; - return Objects.equals(this.data, sensitiveDataScannerStandardPatternData.data); + return Objects.equals(this.data, sensitiveDataScannerStandardPatternData.data) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerStandardPatternData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -67,6 +120,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerStandardPatternData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseData.java index 3be3105f339..91b389cfdbd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseData.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** List Standard patterns response data. */ @@ -58,6 +62,53 @@ public void setData(List data) this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerStandardPatternsResponseData + */ + @JsonAnySetter + public SensitiveDataScannerStandardPatternsResponseData putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerStandardPatternsResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -70,12 +121,15 @@ public boolean equals(Object o) { SensitiveDataScannerStandardPatternsResponseData sensitiveDataScannerStandardPatternsResponseData = (SensitiveDataScannerStandardPatternsResponseData) o; - return Objects.equals(this.data, sensitiveDataScannerStandardPatternsResponseData.data); + return Objects.equals(this.data, sensitiveDataScannerStandardPatternsResponseData.data) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerStandardPatternsResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -83,6 +137,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerStandardPatternsResponseData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseItem.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseItem.java index 527090b7480..9ef6b867785 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternsResponseItem.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Standard pattern item. */ @@ -102,6 +106,53 @@ public void setType(SensitiveDataScannerStandardPatternType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerStandardPatternsResponseItem + */ + @JsonAnySetter + public SensitiveDataScannerStandardPatternsResponseItem putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerStandardPatternsResponseItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -117,12 +168,15 @@ public boolean equals(Object o) { return Objects.equals( this.attributes, sensitiveDataScannerStandardPatternsResponseItem.attributes) && Objects.equals(this.id, sensitiveDataScannerStandardPatternsResponseItem.id) - && Objects.equals(this.type, sensitiveDataScannerStandardPatternsResponseItem.type); + && Objects.equals(this.type, sensitiveDataScannerStandardPatternsResponseItem.type) + && Objects.equals( + this.additionalProperties, + sensitiveDataScannerStandardPatternsResponseItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -132,6 +186,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerTextReplacement.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerTextReplacement.java index 01e0389e5d4..5948f2be063 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerTextReplacement.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerTextReplacement.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object describing how the scanned event will be replaced. */ @@ -104,6 +108,52 @@ public void setType(SensitiveDataScannerTextReplacementType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SensitiveDataScannerTextReplacement + */ + @JsonAnySetter + public SensitiveDataScannerTextReplacement putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SensitiveDataScannerTextReplacement object is equal to o. */ @Override public boolean equals(Object o) { @@ -118,12 +168,14 @@ public boolean equals(Object o) { return Objects.equals(this.numberOfChars, sensitiveDataScannerTextReplacement.numberOfChars) && Objects.equals( this.replacementString, sensitiveDataScannerTextReplacement.replacementString) - && Objects.equals(this.type, sensitiveDataScannerTextReplacement.type); + && Objects.equals(this.type, sensitiveDataScannerTextReplacement.type) + && Objects.equals( + this.additionalProperties, sensitiveDataScannerTextReplacement.additionalProperties); } @Override public int hashCode() { - return Objects.hash(numberOfChars, replacementString, type); + return Objects.hash(numberOfChars, replacementString, type, additionalProperties); } @Override @@ -133,6 +185,9 @@ public String toString() { sb.append(" numberOfChars: ").append(toIndentedString(numberOfChars)).append("\n"); sb.append(" replacementString: ").append(toIndentedString(replacementString)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateAttributes.java index 9a770ff6400..4caf3458b89 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the created user. */ @@ -129,6 +133,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceAccountCreateAttributes + */ + @JsonAnySetter + public ServiceAccountCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceAccountCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -143,12 +193,14 @@ public boolean equals(Object o) { return Objects.equals(this.email, serviceAccountCreateAttributes.email) && Objects.equals(this.name, serviceAccountCreateAttributes.name) && Objects.equals(this.serviceAccount, serviceAccountCreateAttributes.serviceAccount) - && Objects.equals(this.title, serviceAccountCreateAttributes.title); + && Objects.equals(this.title, serviceAccountCreateAttributes.title) + && Objects.equals( + this.additionalProperties, serviceAccountCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, name, serviceAccount, title); + return Objects.hash(email, name, serviceAccount, title, additionalProperties); } @Override @@ -159,6 +211,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" serviceAccount: ").append(toIndentedString(serviceAccount)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateData.java b/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateData.java index 14952e814d4..e83ccf3be8b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to create a service account User. */ @@ -112,6 +116,52 @@ public void setType(UsersType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceAccountCreateData + */ + @JsonAnySetter + public ServiceAccountCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceAccountCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { ServiceAccountCreateData serviceAccountCreateData = (ServiceAccountCreateData) o; return Objects.equals(this.attributes, serviceAccountCreateData.attributes) && Objects.equals(this.relationships, serviceAccountCreateData.relationships) - && Objects.equals(this.type, serviceAccountCreateData.type); + && Objects.equals(this.type, serviceAccountCreateData.type) + && Objects.equals(this.additionalProperties, serviceAccountCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateRequest.java index 55bb209f1db..90242253560 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceAccountCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create a service account. */ @@ -52,6 +56,52 @@ public void setData(ServiceAccountCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceAccountCreateRequest + */ + @JsonAnySetter + public ServiceAccountCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceAccountCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } ServiceAccountCreateRequest serviceAccountCreateRequest = (ServiceAccountCreateRequest) o; - return Objects.equals(this.data, serviceAccountCreateRequest.data); + return Objects.equals(this.data, serviceAccountCreateRequest.data) + && Objects.equals( + this.additionalProperties, serviceAccountCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceAccountCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionCreateResponse.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionCreateResponse.java index 194cb6c8b4a..99c4c06ea85 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionCreateResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionCreateResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Create service definitions response. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionCreateResponse + */ + @JsonAnySetter + public ServiceDefinitionCreateResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionCreateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } ServiceDefinitionCreateResponse serviceDefinitionCreateResponse = (ServiceDefinitionCreateResponse) o; - return Objects.equals(this.data, serviceDefinitionCreateResponse.data); + return Objects.equals(this.data, serviceDefinitionCreateResponse.data) + && Objects.equals( + this.additionalProperties, serviceDefinitionCreateResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceDefinitionCreateResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionData.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionData.java index 26dd593829b..65d84f95283 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionData.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service definition data. */ @@ -70,6 +74,52 @@ public void setType(String type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionData + */ + @JsonAnySetter + public ServiceDefinitionData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionData object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,13 @@ public boolean equals(Object o) { } ServiceDefinitionData serviceDefinitionData = (ServiceDefinitionData) o; return Objects.equals(this.attributes, serviceDefinitionData.attributes) - && Objects.equals(this.type, serviceDefinitionData.type); + && Objects.equals(this.type, serviceDefinitionData.type) + && Objects.equals(this.additionalProperties, serviceDefinitionData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -95,6 +146,9 @@ public String toString() { sb.append("class ServiceDefinitionData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionDataAttributes.java index 5cd3cf9b544..f0c80c885d3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionDataAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service definition attributes. */ @@ -71,6 +75,52 @@ public void setSchema(ServiceDefinitionSchema schema) { this.schema = schema; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionDataAttributes + */ + @JsonAnySetter + public ServiceDefinitionDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { ServiceDefinitionDataAttributes serviceDefinitionDataAttributes = (ServiceDefinitionDataAttributes) o; return Objects.equals(this.meta, serviceDefinitionDataAttributes.meta) - && Objects.equals(this.schema, serviceDefinitionDataAttributes.schema); + && Objects.equals(this.schema, serviceDefinitionDataAttributes.schema) + && Objects.equals( + this.additionalProperties, serviceDefinitionDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(meta, schema); + return Objects.hash(meta, schema, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class ServiceDefinitionDataAttributes {\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionGetResponse.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionGetResponse.java index 83594fc279a..7af205032d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionGetResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionGetResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Get service definition response. */ @@ -43,6 +47,52 @@ public void setData(ServiceDefinitionData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionGetResponse + */ + @JsonAnySetter + public ServiceDefinitionGetResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionGetResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } ServiceDefinitionGetResponse serviceDefinitionGetResponse = (ServiceDefinitionGetResponse) o; - return Objects.equals(this.data, serviceDefinitionGetResponse.data); + return Objects.equals(this.data, serviceDefinitionGetResponse.data) + && Objects.equals( + this.additionalProperties, serviceDefinitionGetResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceDefinitionGetResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionMeta.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionMeta.java index a8183ba5d51..452708b5bec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionMeta.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Metadata about a service definition. */ @@ -119,6 +123,52 @@ public void setLastModifiedTime(String lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionMeta + */ + @JsonAnySetter + public ServiceDefinitionMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionMeta object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,18 @@ public boolean equals(Object o) { return Objects.equals(this.githubHtmlUrl, serviceDefinitionMeta.githubHtmlUrl) && Objects.equals(this.ingestedSchemaVersion, serviceDefinitionMeta.ingestedSchemaVersion) && Objects.equals(this.ingestionSource, serviceDefinitionMeta.ingestionSource) - && Objects.equals(this.lastModifiedTime, serviceDefinitionMeta.lastModifiedTime); + && Objects.equals(this.lastModifiedTime, serviceDefinitionMeta.lastModifiedTime) + && Objects.equals(this.additionalProperties, serviceDefinitionMeta.additionalProperties); } @Override public int hashCode() { - return Objects.hash(githubHtmlUrl, ingestedSchemaVersion, ingestionSource, lastModifiedTime); + return Objects.hash( + githubHtmlUrl, + ingestedSchemaVersion, + ingestionSource, + lastModifiedTime, + additionalProperties); } @Override @@ -150,6 +206,9 @@ public String toString() { .append("\n"); sb.append(" ingestionSource: ").append(toIndentedString(ingestionSource)).append("\n"); sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1.java index ffd476fb8bd..35c1784a4f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -278,6 +280,52 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV1 + */ + @JsonAnySetter + public ServiceDefinitionV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV1 object is equal to o. */ @Override public boolean equals(Object o) { @@ -295,13 +343,22 @@ public boolean equals(Object o) { && Objects.equals(this.integrations, serviceDefinitionV1.integrations) && Objects.equals(this.org, serviceDefinitionV1.org) && Objects.equals(this.schemaVersion, serviceDefinitionV1.schemaVersion) - && Objects.equals(this.tags, serviceDefinitionV1.tags); + && Objects.equals(this.tags, serviceDefinitionV1.tags) + && Objects.equals(this.additionalProperties, serviceDefinitionV1.additionalProperties); } @Override public int hashCode() { return Objects.hash( - contact, extensions, externalResources, info, integrations, org, schemaVersion, tags); + contact, + extensions, + externalResources, + info, + integrations, + org, + schemaVersion, + tags, + additionalProperties); } @Override @@ -316,6 +373,9 @@ public String toString() { sb.append(" org: ").append(toIndentedString(org)).append("\n"); sb.append(" schemaVersion: ").append(toIndentedString(schemaVersion)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Contact.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Contact.java index fe020ea31fc..973da451fea 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Contact.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Contact.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Contact information about the service. */ @@ -69,6 +73,52 @@ public void setSlack(String slack) { this.slack = slack; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV1Contact + */ + @JsonAnySetter + public ServiceDefinitionV1Contact putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV1Contact object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,14 @@ public boolean equals(Object o) { } ServiceDefinitionV1Contact serviceDefinitionV1Contact = (ServiceDefinitionV1Contact) o; return Objects.equals(this.email, serviceDefinitionV1Contact.email) - && Objects.equals(this.slack, serviceDefinitionV1Contact.slack); + && Objects.equals(this.slack, serviceDefinitionV1Contact.slack) + && Objects.equals( + this.additionalProperties, serviceDefinitionV1Contact.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, slack); + return Objects.hash(email, slack, additionalProperties); } @Override @@ -94,6 +146,9 @@ public String toString() { sb.append("class ServiceDefinitionV1Contact {\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" slack: ").append(toIndentedString(slack)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Info.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Info.java index 94ed4aa8e1e..f99a5ed125c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Info.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Info.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Basic information about a service. */ @@ -128,6 +132,52 @@ public void setServiceTier(String serviceTier) { this.serviceTier = serviceTier; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV1Info + */ + @JsonAnySetter + public ServiceDefinitionV1Info putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV1Info object is equal to o. */ @Override public boolean equals(Object o) { @@ -141,12 +191,13 @@ public boolean equals(Object o) { return Objects.equals(this.ddService, serviceDefinitionV1Info.ddService) && Objects.equals(this.description, serviceDefinitionV1Info.description) && Objects.equals(this.displayName, serviceDefinitionV1Info.displayName) - && Objects.equals(this.serviceTier, serviceDefinitionV1Info.serviceTier); + && Objects.equals(this.serviceTier, serviceDefinitionV1Info.serviceTier) + && Objects.equals(this.additionalProperties, serviceDefinitionV1Info.additionalProperties); } @Override public int hashCode() { - return Objects.hash(ddService, description, displayName, serviceTier); + return Objects.hash(ddService, description, displayName, serviceTier, additionalProperties); } @Override @@ -157,6 +208,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); sb.append(" serviceTier: ").append(toIndentedString(serviceTier)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Integrations.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Integrations.java index 08b09d95a8a..5610b764979 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Integrations.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Integrations.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Third party integrations that Datadog supports. */ @@ -42,6 +46,52 @@ public void setPagerduty(String pagerduty) { this.pagerduty = pagerduty; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV1Integrations + */ + @JsonAnySetter + public ServiceDefinitionV1Integrations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV1Integrations object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } ServiceDefinitionV1Integrations serviceDefinitionV1Integrations = (ServiceDefinitionV1Integrations) o; - return Objects.equals(this.pagerduty, serviceDefinitionV1Integrations.pagerduty); + return Objects.equals(this.pagerduty, serviceDefinitionV1Integrations.pagerduty) + && Objects.equals( + this.additionalProperties, serviceDefinitionV1Integrations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pagerduty); + return Objects.hash(pagerduty, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceDefinitionV1Integrations {\n"); sb.append(" pagerduty: ").append(toIndentedString(pagerduty)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Org.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Org.java index 03ad32c75c4..91c573284e4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Org.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Org.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Org related information about the service. */ @@ -69,6 +73,52 @@ public void setTeam(String team) { this.team = team; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV1Org + */ + @JsonAnySetter + public ServiceDefinitionV1Org putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV1Org object is equal to o. */ @Override public boolean equals(Object o) { @@ -80,12 +130,13 @@ public boolean equals(Object o) { } ServiceDefinitionV1Org serviceDefinitionV1Org = (ServiceDefinitionV1Org) o; return Objects.equals(this.application, serviceDefinitionV1Org.application) - && Objects.equals(this.team, serviceDefinitionV1Org.team); + && Objects.equals(this.team, serviceDefinitionV1Org.team) + && Objects.equals(this.additionalProperties, serviceDefinitionV1Org.additionalProperties); } @Override public int hashCode() { - return Objects.hash(application, team); + return Objects.hash(application, team, additionalProperties); } @Override @@ -94,6 +145,9 @@ public String toString() { sb.append("class ServiceDefinitionV1Org {\n"); sb.append(" application: ").append(toIndentedString(application)).append("\n"); sb.append(" team: ").append(toIndentedString(team)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Resource.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Resource.java index 3502310c213..3cfccac68b2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Resource.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV1Resource.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service's external links. */ @@ -110,6 +114,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV1Resource + */ + @JsonAnySetter + public ServiceDefinitionV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV1Resource object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { ServiceDefinitionV1Resource serviceDefinitionV1Resource = (ServiceDefinitionV1Resource) o; return Objects.equals(this.name, serviceDefinitionV1Resource.name) && Objects.equals(this.type, serviceDefinitionV1Resource.type) - && Objects.equals(this.url, serviceDefinitionV1Resource.url); + && Objects.equals(this.url, serviceDefinitionV1Resource.url) + && Objects.equals( + this.additionalProperties, serviceDefinitionV1Resource.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, url); + return Objects.hash(name, type, url, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2.java index 54db7dac3b0..ab6fd2b85f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -379,6 +381,52 @@ public void setTeam(String team) { this.team = team; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2 + */ + @JsonAnySetter + public ServiceDefinitionV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2 object is equal to o. */ @Override public boolean equals(Object o) { @@ -399,7 +447,8 @@ public boolean equals(Object o) { && Objects.equals(this.repos, serviceDefinitionV2.repos) && Objects.equals(this.schemaVersion, serviceDefinitionV2.schemaVersion) && Objects.equals(this.tags, serviceDefinitionV2.tags) - && Objects.equals(this.team, serviceDefinitionV2.team); + && Objects.equals(this.team, serviceDefinitionV2.team) + && Objects.equals(this.additionalProperties, serviceDefinitionV2.additionalProperties); } @Override @@ -415,7 +464,8 @@ public int hashCode() { repos, schemaVersion, tags, - team); + team, + additionalProperties); } @Override @@ -433,6 +483,9 @@ public String toString() { sb.append(" schemaVersion: ").append(toIndentedString(schemaVersion)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" team: ").append(toIndentedString(team)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Doc.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Doc.java index fee781cc0ec..4a9b26f8a4a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Doc.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Doc.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service documents. */ @@ -103,6 +107,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Doc + */ + @JsonAnySetter + public ServiceDefinitionV2Doc putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Doc object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,13 @@ public boolean equals(Object o) { ServiceDefinitionV2Doc serviceDefinitionV2Doc = (ServiceDefinitionV2Doc) o; return Objects.equals(this.name, serviceDefinitionV2Doc.name) && Objects.equals(this.provider, serviceDefinitionV2Doc.provider) - && Objects.equals(this.url, serviceDefinitionV2Doc.url); + && Objects.equals(this.url, serviceDefinitionV2Doc.url) + && Objects.equals(this.additionalProperties, serviceDefinitionV2Doc.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, provider, url); + return Objects.hash(name, provider, url, additionalProperties); } @Override @@ -130,6 +181,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1.java index 5be38a386c8..4152498dc94 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -381,6 +383,52 @@ public void setTier(String tier) { this.tier = tier; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1 + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1 object is equal to o. */ @Override public boolean equals(Object o) { @@ -402,7 +450,8 @@ public boolean equals(Object o) { && Objects.equals(this.schemaVersion, serviceDefinitionV2Dot1.schemaVersion) && Objects.equals(this.tags, serviceDefinitionV2Dot1.tags) && Objects.equals(this.team, serviceDefinitionV2Dot1.team) - && Objects.equals(this.tier, serviceDefinitionV2Dot1.tier); + && Objects.equals(this.tier, serviceDefinitionV2Dot1.tier) + && Objects.equals(this.additionalProperties, serviceDefinitionV2Dot1.additionalProperties); } @Override @@ -419,7 +468,8 @@ public int hashCode() { schemaVersion, tags, team, - tier); + tier, + additionalProperties); } @Override @@ -438,6 +488,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" team: ").append(toIndentedString(team)).append("\n"); sb.append(" tier: ").append(toIndentedString(tier)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Email.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Email.java index 55b1374792f..38fe61ccbb0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Email.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Email.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service owner's email. */ @@ -109,6 +113,52 @@ public void setType(ServiceDefinitionV2Dot1EmailType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1Email + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1Email putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1Email object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,14 @@ public boolean equals(Object o) { ServiceDefinitionV2Dot1Email serviceDefinitionV2Dot1Email = (ServiceDefinitionV2Dot1Email) o; return Objects.equals(this.contact, serviceDefinitionV2Dot1Email.contact) && Objects.equals(this.name, serviceDefinitionV2Dot1Email.name) - && Objects.equals(this.type, serviceDefinitionV2Dot1Email.type); + && Objects.equals(this.type, serviceDefinitionV2Dot1Email.type) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1Email.additionalProperties); } @Override public int hashCode() { - return Objects.hash(contact, name, type); + return Objects.hash(contact, name, type, additionalProperties); } @Override @@ -136,6 +188,9 @@ public String toString() { sb.append(" contact: ").append(toIndentedString(contact)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Integrations.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Integrations.java index 0736907b9c6..785bf95486f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Integrations.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Integrations.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Third party integrations that Datadog supports. */ @@ -71,6 +75,52 @@ public void setPagerduty(ServiceDefinitionV2Dot1Pagerduty pagerduty) { this.pagerduty = pagerduty; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1Integrations + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1Integrations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1Integrations object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,14 @@ public boolean equals(Object o) { ServiceDefinitionV2Dot1Integrations serviceDefinitionV2Dot1Integrations = (ServiceDefinitionV2Dot1Integrations) o; return Objects.equals(this.opsgenie, serviceDefinitionV2Dot1Integrations.opsgenie) - && Objects.equals(this.pagerduty, serviceDefinitionV2Dot1Integrations.pagerduty); + && Objects.equals(this.pagerduty, serviceDefinitionV2Dot1Integrations.pagerduty) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1Integrations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(opsgenie, pagerduty); + return Objects.hash(opsgenie, pagerduty, additionalProperties); } @Override @@ -97,6 +149,9 @@ public String toString() { sb.append("class ServiceDefinitionV2Dot1Integrations {\n"); sb.append(" opsgenie: ").append(toIndentedString(opsgenie)).append("\n"); sb.append(" pagerduty: ").append(toIndentedString(pagerduty)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Link.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Link.java index 157414c1d04..3addaffdbb7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Link.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Link.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service's external links. */ @@ -135,6 +139,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1Link + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1Link putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1Link object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,14 @@ public boolean equals(Object o) { return Objects.equals(this.name, serviceDefinitionV2Dot1Link.name) && Objects.equals(this.provider, serviceDefinitionV2Dot1Link.provider) && Objects.equals(this.type, serviceDefinitionV2Dot1Link.type) - && Objects.equals(this.url, serviceDefinitionV2Dot1Link.url); + && Objects.equals(this.url, serviceDefinitionV2Dot1Link.url) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1Link.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, provider, type, url); + return Objects.hash(name, provider, type, url, additionalProperties); } @Override @@ -164,6 +216,9 @@ public String toString() { sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1MSTeams.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1MSTeams.java index a28a404730e..9189910d135 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1MSTeams.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1MSTeams.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service owner's Microsoft Teams. */ @@ -109,6 +113,52 @@ public void setType(ServiceDefinitionV2Dot1MSTeamsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1MSTeams + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1MSTeams putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1MSTeams object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { (ServiceDefinitionV2Dot1MSTeams) o; return Objects.equals(this.contact, serviceDefinitionV2Dot1MsTeams.contact) && Objects.equals(this.name, serviceDefinitionV2Dot1MsTeams.name) - && Objects.equals(this.type, serviceDefinitionV2Dot1MsTeams.type); + && Objects.equals(this.type, serviceDefinitionV2Dot1MsTeams.type) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1MsTeams.additionalProperties); } @Override public int hashCode() { - return Objects.hash(contact, name, type); + return Objects.hash(contact, name, type, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" contact: ").append(toIndentedString(contact)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Opsgenie.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Opsgenie.java index 429fc6dfc54..83d2a97f95b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Opsgenie.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Opsgenie.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Opsgenie integration for the service. */ @@ -81,6 +85,52 @@ public void setServiceUrl(String serviceUrl) { this.serviceUrl = serviceUrl; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1Opsgenie + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1Opsgenie putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1Opsgenie object is equal to o. */ @Override public boolean equals(Object o) { @@ -93,12 +143,14 @@ public boolean equals(Object o) { ServiceDefinitionV2Dot1Opsgenie serviceDefinitionV2Dot1Opsgenie = (ServiceDefinitionV2Dot1Opsgenie) o; return Objects.equals(this.region, serviceDefinitionV2Dot1Opsgenie.region) - && Objects.equals(this.serviceUrl, serviceDefinitionV2Dot1Opsgenie.serviceUrl); + && Objects.equals(this.serviceUrl, serviceDefinitionV2Dot1Opsgenie.serviceUrl) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1Opsgenie.additionalProperties); } @Override public int hashCode() { - return Objects.hash(region, serviceUrl); + return Objects.hash(region, serviceUrl, additionalProperties); } @Override @@ -107,6 +159,9 @@ public String toString() { sb.append("class ServiceDefinitionV2Dot1Opsgenie {\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" serviceUrl: ").append(toIndentedString(serviceUrl)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Pagerduty.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Pagerduty.java index 767abe0144a..b83bf85c31e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Pagerduty.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Pagerduty.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** PagerDuty integration for the service. */ @@ -42,6 +46,52 @@ public void setServiceUrl(String serviceUrl) { this.serviceUrl = serviceUrl; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1Pagerduty + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1Pagerduty putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1Pagerduty object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { } ServiceDefinitionV2Dot1Pagerduty serviceDefinitionV2Dot1Pagerduty = (ServiceDefinitionV2Dot1Pagerduty) o; - return Objects.equals(this.serviceUrl, serviceDefinitionV2Dot1Pagerduty.serviceUrl); + return Objects.equals(this.serviceUrl, serviceDefinitionV2Dot1Pagerduty.serviceUrl) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1Pagerduty.additionalProperties); } @Override public int hashCode() { - return Objects.hash(serviceUrl); + return Objects.hash(serviceUrl, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceDefinitionV2Dot1Pagerduty {\n"); sb.append(" serviceUrl: ").append(toIndentedString(serviceUrl)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Slack.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Slack.java index bd6b587d06f..f0a99c4ede1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Slack.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Dot1Slack.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service owner's Slack channel. */ @@ -109,6 +113,52 @@ public void setType(ServiceDefinitionV2Dot1SlackType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Dot1Slack + */ + @JsonAnySetter + public ServiceDefinitionV2Dot1Slack putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Dot1Slack object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,14 @@ public boolean equals(Object o) { ServiceDefinitionV2Dot1Slack serviceDefinitionV2Dot1Slack = (ServiceDefinitionV2Dot1Slack) o; return Objects.equals(this.contact, serviceDefinitionV2Dot1Slack.contact) && Objects.equals(this.name, serviceDefinitionV2Dot1Slack.name) - && Objects.equals(this.type, serviceDefinitionV2Dot1Slack.type); + && Objects.equals(this.type, serviceDefinitionV2Dot1Slack.type) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Dot1Slack.additionalProperties); } @Override public int hashCode() { - return Objects.hash(contact, name, type); + return Objects.hash(contact, name, type, additionalProperties); } @Override @@ -136,6 +188,9 @@ public String toString() { sb.append(" contact: ").append(toIndentedString(contact)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Email.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Email.java index cd2742bcdd2..6e2a09e8c1f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Email.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Email.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service owner's email. */ @@ -109,6 +113,52 @@ public void setType(ServiceDefinitionV2EmailType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Email + */ + @JsonAnySetter + public ServiceDefinitionV2Email putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Email object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { ServiceDefinitionV2Email serviceDefinitionV2Email = (ServiceDefinitionV2Email) o; return Objects.equals(this.contact, serviceDefinitionV2Email.contact) && Objects.equals(this.name, serviceDefinitionV2Email.name) - && Objects.equals(this.type, serviceDefinitionV2Email.type); + && Objects.equals(this.type, serviceDefinitionV2Email.type) + && Objects.equals(this.additionalProperties, serviceDefinitionV2Email.additionalProperties); } @Override public int hashCode() { - return Objects.hash(contact, name, type); + return Objects.hash(contact, name, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" contact: ").append(toIndentedString(contact)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Integrations.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Integrations.java index 5a6439929d2..f69c10b9d5c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Integrations.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Integrations.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Third party integrations that Datadog supports. */ @@ -70,6 +74,52 @@ public void setPagerduty(String pagerduty) { this.pagerduty = pagerduty; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Integrations + */ + @JsonAnySetter + public ServiceDefinitionV2Integrations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Integrations object is equal to o. */ @Override public boolean equals(Object o) { @@ -82,12 +132,14 @@ public boolean equals(Object o) { ServiceDefinitionV2Integrations serviceDefinitionV2Integrations = (ServiceDefinitionV2Integrations) o; return Objects.equals(this.opsgenie, serviceDefinitionV2Integrations.opsgenie) - && Objects.equals(this.pagerduty, serviceDefinitionV2Integrations.pagerduty); + && Objects.equals(this.pagerduty, serviceDefinitionV2Integrations.pagerduty) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Integrations.additionalProperties); } @Override public int hashCode() { - return Objects.hash(opsgenie, pagerduty); + return Objects.hash(opsgenie, pagerduty, additionalProperties); } @Override @@ -96,6 +148,9 @@ public String toString() { sb.append("class ServiceDefinitionV2Integrations {\n"); sb.append(" opsgenie: ").append(toIndentedString(opsgenie)).append("\n"); sb.append(" pagerduty: ").append(toIndentedString(pagerduty)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Link.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Link.java index cd7c4c86a2e..c7702193b84 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Link.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Link.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service's external links. */ @@ -109,6 +113,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Link + */ + @JsonAnySetter + public ServiceDefinitionV2Link putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Link object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { ServiceDefinitionV2Link serviceDefinitionV2Link = (ServiceDefinitionV2Link) o; return Objects.equals(this.name, serviceDefinitionV2Link.name) && Objects.equals(this.type, serviceDefinitionV2Link.type) - && Objects.equals(this.url, serviceDefinitionV2Link.url); + && Objects.equals(this.url, serviceDefinitionV2Link.url) + && Objects.equals(this.additionalProperties, serviceDefinitionV2Link.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, url); + return Objects.hash(name, type, url, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2MSTeams.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2MSTeams.java index 9250358c95d..a2ff20fab34 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2MSTeams.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2MSTeams.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service owner's Microsoft Teams. */ @@ -109,6 +113,52 @@ public void setType(ServiceDefinitionV2MSTeamsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2MSTeams + */ + @JsonAnySetter + public ServiceDefinitionV2MSTeams putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2MSTeams object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,14 @@ public boolean equals(Object o) { ServiceDefinitionV2MSTeams serviceDefinitionV2MsTeams = (ServiceDefinitionV2MSTeams) o; return Objects.equals(this.contact, serviceDefinitionV2MsTeams.contact) && Objects.equals(this.name, serviceDefinitionV2MsTeams.name) - && Objects.equals(this.type, serviceDefinitionV2MsTeams.type); + && Objects.equals(this.type, serviceDefinitionV2MsTeams.type) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2MsTeams.additionalProperties); } @Override public int hashCode() { - return Objects.hash(contact, name, type); + return Objects.hash(contact, name, type, additionalProperties); } @Override @@ -136,6 +188,9 @@ public String toString() { sb.append(" contact: ").append(toIndentedString(contact)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Opsgenie.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Opsgenie.java index b640ed10ec4..a7f14cbc3c1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Opsgenie.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Opsgenie.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Opsgenie integration for the service. */ @@ -81,6 +85,52 @@ public void setServiceUrl(String serviceUrl) { this.serviceUrl = serviceUrl; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Opsgenie + */ + @JsonAnySetter + public ServiceDefinitionV2Opsgenie putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Opsgenie object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,14 @@ public boolean equals(Object o) { } ServiceDefinitionV2Opsgenie serviceDefinitionV2Opsgenie = (ServiceDefinitionV2Opsgenie) o; return Objects.equals(this.region, serviceDefinitionV2Opsgenie.region) - && Objects.equals(this.serviceUrl, serviceDefinitionV2Opsgenie.serviceUrl); + && Objects.equals(this.serviceUrl, serviceDefinitionV2Opsgenie.serviceUrl) + && Objects.equals( + this.additionalProperties, serviceDefinitionV2Opsgenie.additionalProperties); } @Override public int hashCode() { - return Objects.hash(region, serviceUrl); + return Objects.hash(region, serviceUrl, additionalProperties); } @Override @@ -106,6 +158,9 @@ public String toString() { sb.append("class ServiceDefinitionV2Opsgenie {\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" serviceUrl: ").append(toIndentedString(serviceUrl)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Repo.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Repo.java index aa8224699f3..966d18831ce 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Repo.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Repo.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service code repositories. */ @@ -103,6 +107,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Repo + */ + @JsonAnySetter + public ServiceDefinitionV2Repo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Repo object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,13 @@ public boolean equals(Object o) { ServiceDefinitionV2Repo serviceDefinitionV2Repo = (ServiceDefinitionV2Repo) o; return Objects.equals(this.name, serviceDefinitionV2Repo.name) && Objects.equals(this.provider, serviceDefinitionV2Repo.provider) - && Objects.equals(this.url, serviceDefinitionV2Repo.url); + && Objects.equals(this.url, serviceDefinitionV2Repo.url) + && Objects.equals(this.additionalProperties, serviceDefinitionV2Repo.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, provider, url); + return Objects.hash(name, provider, url, additionalProperties); } @Override @@ -130,6 +181,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Slack.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Slack.java index e40820abd4a..385f9a33bd1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Slack.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionV2Slack.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Service owner's Slack channel. */ @@ -109,6 +113,52 @@ public void setType(ServiceDefinitionV2SlackType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionV2Slack + */ + @JsonAnySetter + public ServiceDefinitionV2Slack putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionV2Slack object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { ServiceDefinitionV2Slack serviceDefinitionV2Slack = (ServiceDefinitionV2Slack) o; return Objects.equals(this.contact, serviceDefinitionV2Slack.contact) && Objects.equals(this.name, serviceDefinitionV2Slack.name) - && Objects.equals(this.type, serviceDefinitionV2Slack.type); + && Objects.equals(this.type, serviceDefinitionV2Slack.type) + && Objects.equals(this.additionalProperties, serviceDefinitionV2Slack.additionalProperties); } @Override public int hashCode() { - return Objects.hash(contact, name, type); + return Objects.hash(contact, name, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" contact: ").append(toIndentedString(contact)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionsListResponse.java b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionsListResponse.java index a2f2be6f19a..f62e2a73e6f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionsListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/ServiceDefinitionsListResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Create service definitions response. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ServiceDefinitionsListResponse + */ + @JsonAnySetter + public ServiceDefinitionsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this ServiceDefinitionsListResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } ServiceDefinitionsListResponse serviceDefinitionsListResponse = (ServiceDefinitionsListResponse) o; - return Objects.equals(this.data, serviceDefinitionsListResponse.data); + return Objects.equals(this.data, serviceDefinitionsListResponse.data) + && Objects.equals( + this.additionalProperties, serviceDefinitionsListResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceDefinitionsListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadata.java b/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadata.java index 722c68b5887..ed400007d1c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadata.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Incident integration metadata for the Slack integration. */ @@ -63,6 +67,52 @@ public void setChannels(List channels) { this.channels = channels; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SlackIntegrationMetadata + */ + @JsonAnySetter + public SlackIntegrationMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SlackIntegrationMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -73,12 +123,13 @@ public boolean equals(Object o) { return false; } SlackIntegrationMetadata slackIntegrationMetadata = (SlackIntegrationMetadata) o; - return Objects.equals(this.channels, slackIntegrationMetadata.channels); + return Objects.equals(this.channels, slackIntegrationMetadata.channels) + && Objects.equals(this.additionalProperties, slackIntegrationMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(channels); + return Objects.hash(channels, additionalProperties); } @Override @@ -86,6 +137,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SlackIntegrationMetadata {\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadataChannelItem.java b/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadataChannelItem.java index fec345f3150..d62701a8d62 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadataChannelItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/SlackIntegrationMetadataChannelItem.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Item in the Slack integration metadata channel array. */ @@ -129,6 +133,52 @@ public void setTeamId(String teamId) { this.teamId = teamId; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SlackIntegrationMetadataChannelItem + */ + @JsonAnySetter + public SlackIntegrationMetadataChannelItem putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SlackIntegrationMetadataChannelItem object is equal to o. */ @Override public boolean equals(Object o) { @@ -143,12 +193,14 @@ public boolean equals(Object o) { return Objects.equals(this.channelId, slackIntegrationMetadataChannelItem.channelId) && Objects.equals(this.channelName, slackIntegrationMetadataChannelItem.channelName) && Objects.equals(this.redirectUrl, slackIntegrationMetadataChannelItem.redirectUrl) - && Objects.equals(this.teamId, slackIntegrationMetadataChannelItem.teamId); + && Objects.equals(this.teamId, slackIntegrationMetadataChannelItem.teamId) + && Objects.equals( + this.additionalProperties, slackIntegrationMetadataChannelItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(channelId, channelName, redirectUrl, teamId); + return Objects.hash(channelId, channelName, redirectUrl, teamId, additionalProperties); } @Override @@ -159,6 +211,9 @@ public String toString() { sb.append(" channelName: ").append(toIndentedString(channelName)).append("\n"); sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCompute.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCompute.java index 38016478257..bf03005bff8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCompute.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The compute rule to compute the span-based metric. */ @@ -110,6 +114,52 @@ public void setPath(String path) { this.path = path; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricCompute + */ + @JsonAnySetter + public SpansMetricCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,13 @@ public boolean equals(Object o) { SpansMetricCompute spansMetricCompute = (SpansMetricCompute) o; return Objects.equals(this.aggregationType, spansMetricCompute.aggregationType) && Objects.equals(this.includePercentiles, spansMetricCompute.includePercentiles) - && Objects.equals(this.path, spansMetricCompute.path); + && Objects.equals(this.path, spansMetricCompute.path) + && Objects.equals(this.additionalProperties, spansMetricCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregationType, includePercentiles, path); + return Objects.hash(aggregationType, includePercentiles, path, additionalProperties); } @Override @@ -137,6 +188,9 @@ public String toString() { sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateAttributes.java index fd23398c535..51609534889 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing the Datadog span-based metric to create. */ @@ -119,6 +123,52 @@ public void setGroupBy(List groupBy) { this.groupBy = groupBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricCreateAttributes + */ + @JsonAnySetter + public SpansMetricCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -131,12 +181,14 @@ public boolean equals(Object o) { SpansMetricCreateAttributes spansMetricCreateAttributes = (SpansMetricCreateAttributes) o; return Objects.equals(this.compute, spansMetricCreateAttributes.compute) && Objects.equals(this.filter, spansMetricCreateAttributes.filter) - && Objects.equals(this.groupBy, spansMetricCreateAttributes.groupBy); + && Objects.equals(this.groupBy, spansMetricCreateAttributes.groupBy) + && Objects.equals( + this.additionalProperties, spansMetricCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy); + return Objects.hash(compute, filter, groupBy, additionalProperties); } @Override @@ -146,6 +198,9 @@ public String toString() { sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateData.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateData.java index d8fa9fa597e..3ca1e5a0339 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new span-based metric properties. */ @@ -112,6 +116,52 @@ public void setType(SpansMetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricCreateData + */ + @JsonAnySetter + public SpansMetricCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { SpansMetricCreateData spansMetricCreateData = (SpansMetricCreateData) o; return Objects.equals(this.attributes, spansMetricCreateData.attributes) && Objects.equals(this.id, spansMetricCreateData.id) - && Objects.equals(this.type, spansMetricCreateData.type); + && Objects.equals(this.type, spansMetricCreateData.type) + && Objects.equals(this.additionalProperties, spansMetricCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateRequest.java index 996143d276d..a4c00e2f1d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new span-based metric body. */ @@ -52,6 +56,52 @@ public void setData(SpansMetricCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricCreateRequest + */ + @JsonAnySetter + public SpansMetricCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } SpansMetricCreateRequest spansMetricCreateRequest = (SpansMetricCreateRequest) o; - return Objects.equals(this.data, spansMetricCreateRequest.data); + return Objects.equals(this.data, spansMetricCreateRequest.data) + && Objects.equals(this.additionalProperties, spansMetricCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricFilter.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricFilter.java index e21b228dfb8..5c11b3ec2c9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The span-based metric filter. Spans matching this filter will be aggregated in this metric. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricFilter + */ + @JsonAnySetter + public SpansMetricFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,13 @@ public boolean equals(Object o) { return false; } SpansMetricFilter spansMetricFilter = (SpansMetricFilter) o; - return Objects.equals(this.query, spansMetricFilter.query); + return Objects.equals(this.query, spansMetricFilter.query) + && Objects.equals(this.additionalProperties, spansMetricFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +116,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricGroupBy.java index 3f4e2d7ea9f..14a388b5c2f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricGroupBy.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group by rule. */ @@ -78,6 +82,52 @@ public void setTagName(String tagName) { this.tagName = tagName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricGroupBy + */ + @JsonAnySetter + public SpansMetricGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +139,13 @@ public boolean equals(Object o) { } SpansMetricGroupBy spansMetricGroupBy = (SpansMetricGroupBy) o; return Objects.equals(this.path, spansMetricGroupBy.path) - && Objects.equals(this.tagName, spansMetricGroupBy.tagName); + && Objects.equals(this.tagName, spansMetricGroupBy.tagName) + && Objects.equals(this.additionalProperties, spansMetricGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(path, tagName); + return Objects.hash(path, tagName, additionalProperties); } @Override @@ -103,6 +154,9 @@ public String toString() { sb.append("class SpansMetricGroupBy {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponse.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponse.java index f06532254fd..3d34861ee61 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The span-based metric object. */ @@ -43,6 +47,52 @@ public void setData(SpansMetricResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricResponse + */ + @JsonAnySetter + public SpansMetricResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } SpansMetricResponse spansMetricResponse = (SpansMetricResponse) o; - return Objects.equals(this.data, spansMetricResponse.data); + return Objects.equals(this.data, spansMetricResponse.data) + && Objects.equals(this.additionalProperties, spansMetricResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseAttributes.java index 14c21af9a5b..bfe2c8fab37 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a Datadog span-based metric. */ @@ -110,6 +114,52 @@ public void setGroupBy(List groupBy) { this.groupBy = groupBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricResponseAttributes + */ + @JsonAnySetter + public SpansMetricResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { SpansMetricResponseAttributes spansMetricResponseAttributes = (SpansMetricResponseAttributes) o; return Objects.equals(this.compute, spansMetricResponseAttributes.compute) && Objects.equals(this.filter, spansMetricResponseAttributes.filter) - && Objects.equals(this.groupBy, spansMetricResponseAttributes.groupBy); + && Objects.equals(this.groupBy, spansMetricResponseAttributes.groupBy) + && Objects.equals( + this.additionalProperties, spansMetricResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy); + return Objects.hash(compute, filter, groupBy, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseCompute.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseCompute.java index a7606f24730..7c56868d238 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseCompute.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The compute rule to compute the span-based metric. */ @@ -101,6 +105,52 @@ public void setPath(String path) { this.path = path; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricResponseCompute + */ + @JsonAnySetter + public SpansMetricResponseCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricResponseCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,12 +163,14 @@ public boolean equals(Object o) { SpansMetricResponseCompute spansMetricResponseCompute = (SpansMetricResponseCompute) o; return Objects.equals(this.aggregationType, spansMetricResponseCompute.aggregationType) && Objects.equals(this.includePercentiles, spansMetricResponseCompute.includePercentiles) - && Objects.equals(this.path, spansMetricResponseCompute.path); + && Objects.equals(this.path, spansMetricResponseCompute.path) + && Objects.equals( + this.additionalProperties, spansMetricResponseCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aggregationType, includePercentiles, path); + return Objects.hash(aggregationType, includePercentiles, path, additionalProperties); } @Override @@ -128,6 +180,9 @@ public String toString() { sb.append(" aggregationType: ").append(toIndentedString(aggregationType)).append("\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseData.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseData.java index 745d4df9ed2..6e7a5d4f80d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The span-based metric properties. */ @@ -99,6 +103,52 @@ public void setType(SpansMetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricResponseData + */ + @JsonAnySetter + public SpansMetricResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { SpansMetricResponseData spansMetricResponseData = (SpansMetricResponseData) o; return Objects.equals(this.attributes, spansMetricResponseData.attributes) && Objects.equals(this.id, spansMetricResponseData.id) - && Objects.equals(this.type, spansMetricResponseData.type); + && Objects.equals(this.type, spansMetricResponseData.type) + && Objects.equals(this.additionalProperties, spansMetricResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseFilter.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseFilter.java index 4171c024ffc..602055946e8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseFilter.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseFilter.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The span-based metric filter. Spans matching this filter will be aggregated in this metric. */ @@ -42,6 +46,52 @@ public void setQuery(String query) { this.query = query; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricResponseFilter + */ + @JsonAnySetter + public SpansMetricResponseFilter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricResponseFilter object is equal to o. */ @Override public boolean equals(Object o) { @@ -52,12 +102,14 @@ public boolean equals(Object o) { return false; } SpansMetricResponseFilter spansMetricResponseFilter = (SpansMetricResponseFilter) o; - return Objects.equals(this.query, spansMetricResponseFilter.query); + return Objects.equals(this.query, spansMetricResponseFilter.query) + && Objects.equals( + this.additionalProperties, spansMetricResponseFilter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(query); + return Objects.hash(query, additionalProperties); } @Override @@ -65,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricResponseFilter {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseGroupBy.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseGroupBy.java index 2325b2d090d..b8f2e92e2ee 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseGroupBy.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricResponseGroupBy.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A group by rule. */ @@ -70,6 +74,52 @@ public void setTagName(String tagName) { this.tagName = tagName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricResponseGroupBy + */ + @JsonAnySetter + public SpansMetricResponseGroupBy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricResponseGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -81,12 +131,14 @@ public boolean equals(Object o) { } SpansMetricResponseGroupBy spansMetricResponseGroupBy = (SpansMetricResponseGroupBy) o; return Objects.equals(this.path, spansMetricResponseGroupBy.path) - && Objects.equals(this.tagName, spansMetricResponseGroupBy.tagName); + && Objects.equals(this.tagName, spansMetricResponseGroupBy.tagName) + && Objects.equals( + this.additionalProperties, spansMetricResponseGroupBy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(path, tagName); + return Objects.hash(path, tagName, additionalProperties); } @Override @@ -95,6 +147,9 @@ public String toString() { sb.append("class SpansMetricResponseGroupBy {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateAttributes.java index 16507968229..3d9397c3055 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The span-based metric properties that will be updated. */ @@ -110,6 +114,52 @@ public void setGroupBy(List groupBy) { this.groupBy = groupBy; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricUpdateAttributes + */ + @JsonAnySetter + public SpansMetricUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -122,12 +172,14 @@ public boolean equals(Object o) { SpansMetricUpdateAttributes spansMetricUpdateAttributes = (SpansMetricUpdateAttributes) o; return Objects.equals(this.compute, spansMetricUpdateAttributes.compute) && Objects.equals(this.filter, spansMetricUpdateAttributes.filter) - && Objects.equals(this.groupBy, spansMetricUpdateAttributes.groupBy); + && Objects.equals(this.groupBy, spansMetricUpdateAttributes.groupBy) + && Objects.equals( + this.additionalProperties, spansMetricUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(compute, filter, groupBy); + return Objects.hash(compute, filter, groupBy, additionalProperties); } @Override @@ -137,6 +189,9 @@ public String toString() { sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateCompute.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateCompute.java index 3928cac6a73..f16d0d66e71 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateCompute.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateCompute.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The compute rule to compute the span-based metric. */ @@ -43,6 +47,52 @@ public void setIncludePercentiles(Boolean includePercentiles) { this.includePercentiles = includePercentiles; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricUpdateCompute + */ + @JsonAnySetter + public SpansMetricUpdateCompute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricUpdateCompute object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } SpansMetricUpdateCompute spansMetricUpdateCompute = (SpansMetricUpdateCompute) o; - return Objects.equals(this.includePercentiles, spansMetricUpdateCompute.includePercentiles); + return Objects.equals(this.includePercentiles, spansMetricUpdateCompute.includePercentiles) + && Objects.equals(this.additionalProperties, spansMetricUpdateCompute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(includePercentiles); + return Objects.hash(includePercentiles, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricUpdateCompute {\n"); sb.append(" includePercentiles: ").append(toIndentedString(includePercentiles)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateData.java index 791bef5c1b4..5794ff1cd7a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new span-based metric properties. */ @@ -86,6 +90,52 @@ public void setType(SpansMetricType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricUpdateData + */ + @JsonAnySetter + public SpansMetricUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } SpansMetricUpdateData spansMetricUpdateData = (SpansMetricUpdateData) o; return Objects.equals(this.attributes, spansMetricUpdateData.attributes) - && Objects.equals(this.type, spansMetricUpdateData.type); + && Objects.equals(this.type, spansMetricUpdateData.type) + && Objects.equals(this.additionalProperties, spansMetricUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class SpansMetricUpdateData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateRequest.java index a73e8fdaeee..0c084dbfb0f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** The new span-based metric body. */ @@ -52,6 +56,52 @@ public void setData(SpansMetricUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricUpdateRequest + */ + @JsonAnySetter + public SpansMetricUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } SpansMetricUpdateRequest spansMetricUpdateRequest = (SpansMetricUpdateRequest) o; - return Objects.equals(this.data, spansMetricUpdateRequest.data); + return Objects.equals(this.data, spansMetricUpdateRequest.data) + && Objects.equals(this.additionalProperties, spansMetricUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/SpansMetricsResponse.java b/src/main/java/com/datadog/api/client/v2/model/SpansMetricsResponse.java index 9e8be093368..23db46bc467 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SpansMetricsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SpansMetricsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** All the available span-based metric objects. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SpansMetricsResponse + */ + @JsonAnySetter + public SpansMetricsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this SpansMetricsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } SpansMetricsResponse spansMetricsResponse = (SpansMetricsResponse) o; - return Objects.equals(this.data, spansMetricsResponse.data); + return Objects.equals(this.data, spansMetricsResponse.data) + && Objects.equals(this.additionalProperties, spansMetricsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SpansMetricsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Team.java b/src/main/java/com/datadog/api/client/v2/model/Team.java index c26d604af6d..5964dfb44e6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Team.java +++ b/src/main/java/com/datadog/api/client/v2/model/Team.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A team */ @@ -137,6 +141,52 @@ public void setType(TeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Team + */ + @JsonAnySetter + public Team putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Team object is equal to o. */ @Override public boolean equals(Object o) { @@ -150,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, team.attributes) && Objects.equals(this.id, team.id) && Objects.equals(this.relationships, team.relationships) - && Objects.equals(this.type, team.type); + && Objects.equals(this.type, team.type) + && Objects.equals(this.additionalProperties, team.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -166,6 +217,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } 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 8b9d911a579..e5ff8fa6bb3 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 @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -232,6 +236,52 @@ public Integer getUserCount() { return userCount; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamAttributes + */ + @JsonAnySetter + public TeamAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -249,13 +299,22 @@ public boolean equals(Object o) { && Objects.equals(this.modifiedAt, teamAttributes.modifiedAt) && Objects.equals(this.name, teamAttributes.name) && Objects.equals(this.summary, teamAttributes.summary) - && Objects.equals(this.userCount, teamAttributes.userCount); + && Objects.equals(this.userCount, teamAttributes.userCount) + && Objects.equals(this.additionalProperties, teamAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - createdAt, description, handle, linkCount, modifiedAt, name, summary, userCount); + createdAt, + description, + handle, + linkCount, + modifiedAt, + name, + summary, + userCount, + additionalProperties); } @Override @@ -270,6 +329,9 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamCreate.java b/src/main/java/com/datadog/api/client/v2/model/TeamCreate.java index 2cb08a87e40..c94c89c7593 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team create */ @@ -112,6 +116,52 @@ public void setType(TeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamCreate + */ + @JsonAnySetter + public TeamCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { TeamCreate teamCreate = (TeamCreate) o; return Objects.equals(this.attributes, teamCreate.attributes) && Objects.equals(this.relationships, teamCreate.relationships) - && Objects.equals(this.type, teamCreate.type); + && Objects.equals(this.type, teamCreate.type) + && Objects.equals(this.additionalProperties, teamCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamCreateAttributes.java index 4eefb09ffb0..a7015e68176 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team creation attributes */ @@ -103,6 +107,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamCreateAttributes + */ + @JsonAnySetter + public TeamCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -115,12 +165,13 @@ public boolean equals(Object o) { TeamCreateAttributes teamCreateAttributes = (TeamCreateAttributes) o; return Objects.equals(this.description, teamCreateAttributes.description) && Objects.equals(this.handle, teamCreateAttributes.handle) - && Objects.equals(this.name, teamCreateAttributes.name); + && Objects.equals(this.name, teamCreateAttributes.name) + && Objects.equals(this.additionalProperties, teamCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, handle, name); + return Objects.hash(description, handle, name, additionalProperties); } @Override @@ -130,6 +181,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamCreateRelationships.java b/src/main/java/com/datadog/api/client/v2/model/TeamCreateRelationships.java index 5d5577856fb..32f6e9ed7f5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamCreateRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamCreateRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships formed with the team on creation */ @@ -43,6 +47,52 @@ public void setUsers(RelationshipToUsers users) { this.users = users; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamCreateRelationships + */ + @JsonAnySetter + public TeamCreateRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamCreateRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } TeamCreateRelationships teamCreateRelationships = (TeamCreateRelationships) o; - return Objects.equals(this.users, teamCreateRelationships.users); + return Objects.equals(this.users, teamCreateRelationships.users) + && Objects.equals(this.additionalProperties, teamCreateRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(users); + return Objects.hash(users, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamCreateRelationships {\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/TeamCreateRequest.java index c5733098a4f..95ce24586b7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Request to create a team */ @@ -52,6 +56,52 @@ public void setData(TeamCreate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamCreateRequest + */ + @JsonAnySetter + public TeamCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } TeamCreateRequest teamCreateRequest = (TeamCreateRequest) o; - return Objects.equals(this.data, teamCreateRequest.data); + return Objects.equals(this.data, teamCreateRequest.data) + && Objects.equals(this.additionalProperties, teamCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamData.java b/src/main/java/com/datadog/api/client/v2/model/TeamData.java index bcc2553cafb..f2b4e4b30d9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamData.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A team */ @@ -111,6 +115,52 @@ public void setType(TeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamData + */ + @JsonAnySetter + public TeamData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamData object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +173,13 @@ public boolean equals(Object o) { TeamData teamData = (TeamData) o; return Objects.equals(this.attributes, teamData.attributes) && Objects.equals(this.id, teamData.id) - && Objects.equals(this.type, teamData.type); + && Objects.equals(this.type, teamData.type) + && Objects.equals(this.additionalProperties, teamData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -138,6 +189,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamLink.java b/src/main/java/com/datadog/api/client/v2/model/TeamLink.java index 9988c7d596c..2a99a6b5901 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamLink.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamLink.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team link */ @@ -112,6 +116,52 @@ public void setType(TeamLinkType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamLink + */ + @JsonAnySetter + public TeamLink putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamLink object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { TeamLink teamLink = (TeamLink) o; return Objects.equals(this.attributes, teamLink.attributes) && Objects.equals(this.id, teamLink.id) - && Objects.equals(this.type, teamLink.type); + && Objects.equals(this.type, teamLink.type) + && Objects.equals(this.additionalProperties, teamLink.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamLinkAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamLinkAttributes.java index c5c945bca61..8dceacedb5f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamLinkAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamLinkAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team link attributes */ @@ -119,6 +123,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamLinkAttributes + */ + @JsonAnySetter + public TeamLinkAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamLinkAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,13 @@ public boolean equals(Object o) { return Objects.equals(this.label, teamLinkAttributes.label) && Objects.equals(this.position, teamLinkAttributes.position) && Objects.equals(this.teamId, teamLinkAttributes.teamId) - && Objects.equals(this.url, teamLinkAttributes.url); + && Objects.equals(this.url, teamLinkAttributes.url) + && Objects.equals(this.additionalProperties, teamLinkAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(label, position, teamId, url); + return Objects.hash(label, position, teamId, url, additionalProperties); } @Override @@ -148,6 +199,9 @@ public String toString() { sb.append(" position: ").append(toIndentedString(position)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreate.java b/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreate.java index f4e4fe1a8dd..a61cbd7983c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team link create */ @@ -83,6 +87,52 @@ public void setType(TeamLinkType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamLinkCreate + */ + @JsonAnySetter + public TeamLinkCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamLinkCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,13 @@ public boolean equals(Object o) { } TeamLinkCreate teamLinkCreate = (TeamLinkCreate) o; return Objects.equals(this.attributes, teamLinkCreate.attributes) - && Objects.equals(this.type, teamLinkCreate.type); + && Objects.equals(this.type, teamLinkCreate.type) + && Objects.equals(this.additionalProperties, teamLinkCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -108,6 +159,9 @@ public String toString() { sb.append("class TeamLinkCreate {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreateRequest.java index c6fd67aae7a..f044126170f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamLinkCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team link create request */ @@ -52,6 +56,52 @@ public void setData(TeamLinkCreate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamLinkCreateRequest + */ + @JsonAnySetter + public TeamLinkCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamLinkCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } TeamLinkCreateRequest teamLinkCreateRequest = (TeamLinkCreateRequest) o; - return Objects.equals(this.data, teamLinkCreateRequest.data); + return Objects.equals(this.data, teamLinkCreateRequest.data) + && Objects.equals(this.additionalProperties, teamLinkCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamLinkCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamLinkResponse.java b/src/main/java/com/datadog/api/client/v2/model/TeamLinkResponse.java index 99c2b68f73c..d09f1a1301a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamLinkResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamLinkResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team link response */ @@ -43,6 +47,52 @@ public void setData(TeamLink data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamLinkResponse + */ + @JsonAnySetter + public TeamLinkResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamLinkResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } TeamLinkResponse teamLinkResponse = (TeamLinkResponse) o; - return Objects.equals(this.data, teamLinkResponse.data); + return Objects.equals(this.data, teamLinkResponse.data) + && Objects.equals(this.additionalProperties, teamLinkResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamLinkResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamLinksResponse.java b/src/main/java/com/datadog/api/client/v2/model/TeamLinksResponse.java index b53a4627390..ae000a3a68b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamLinksResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamLinksResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Team links response */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamLinksResponse + */ + @JsonAnySetter + public TeamLinksResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamLinksResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } TeamLinksResponse teamLinksResponse = (TeamLinksResponse) o; - return Objects.equals(this.data, teamLinksResponse.data); + return Objects.equals(this.data, teamLinksResponse.data) + && Objects.equals(this.additionalProperties, teamLinksResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamLinksResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSetting.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSetting.java index 88d6681bcb6..6819fb9a0fa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSetting.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSetting.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team permission setting */ @@ -109,6 +113,52 @@ public void setType(TeamPermissionSettingType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSetting + */ + @JsonAnySetter + public TeamPermissionSetting putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSetting object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { TeamPermissionSetting teamPermissionSetting = (TeamPermissionSetting) o; return Objects.equals(this.attributes, teamPermissionSetting.attributes) && Objects.equals(this.id, teamPermissionSetting.id) - && Objects.equals(this.type, teamPermissionSetting.type); + && Objects.equals(this.type, teamPermissionSetting.type) + && Objects.equals(this.additionalProperties, teamPermissionSetting.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingAttributes.java index 96cccb228f6..702d7d45439 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Team permission setting attributes */ @@ -113,6 +117,52 @@ public void setValue(TeamPermissionSettingValue value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSettingAttributes + */ + @JsonAnySetter + public TeamPermissionSettingAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSettingAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,12 +178,14 @@ public boolean equals(Object o) { && Objects.equals(this.editable, teamPermissionSettingAttributes.editable) && Objects.equals(this.options, teamPermissionSettingAttributes.options) && Objects.equals(this.title, teamPermissionSettingAttributes.title) - && Objects.equals(this.value, teamPermissionSettingAttributes.value); + && Objects.equals(this.value, teamPermissionSettingAttributes.value) + && Objects.equals( + this.additionalProperties, teamPermissionSettingAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(action, editable, options, title, value); + return Objects.hash(action, editable, options, title, value, additionalProperties); } @Override @@ -145,6 +197,9 @@ public String toString() { sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingResponse.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingResponse.java index 633c9befb69..cb0a16add7b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team permission setting response */ @@ -43,6 +47,52 @@ public void setData(TeamPermissionSetting data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSettingResponse + */ + @JsonAnySetter + public TeamPermissionSettingResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSettingResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,14 @@ public boolean equals(Object o) { return false; } TeamPermissionSettingResponse teamPermissionSettingResponse = (TeamPermissionSettingResponse) o; - return Objects.equals(this.data, teamPermissionSettingResponse.data); + return Objects.equals(this.data, teamPermissionSettingResponse.data) + && Objects.equals( + this.additionalProperties, teamPermissionSettingResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +118,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamPermissionSettingResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdate.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdate.java index 8bda1fa9ab7..15969544f39 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdate.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team permission setting update */ @@ -83,6 +87,52 @@ public void setType(TeamPermissionSettingType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSettingUpdate + */ + @JsonAnySetter + public TeamPermissionSettingUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSettingUpdate object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,12 +144,14 @@ public boolean equals(Object o) { } TeamPermissionSettingUpdate teamPermissionSettingUpdate = (TeamPermissionSettingUpdate) o; return Objects.equals(this.attributes, teamPermissionSettingUpdate.attributes) - && Objects.equals(this.type, teamPermissionSettingUpdate.type); + && Objects.equals(this.type, teamPermissionSettingUpdate.type) + && Objects.equals( + this.additionalProperties, teamPermissionSettingUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -108,6 +160,9 @@ public String toString() { sb.append("class TeamPermissionSettingUpdate {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateAttributes.java index 7037bef642d..1e6991b3ed5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team permission setting update attributes */ @@ -46,6 +50,52 @@ public void setValue(TeamPermissionSettingValue value) { this.value = value; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSettingUpdateAttributes + */ + @JsonAnySetter + public TeamPermissionSettingUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSettingUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -57,12 +107,14 @@ public boolean equals(Object o) { } TeamPermissionSettingUpdateAttributes teamPermissionSettingUpdateAttributes = (TeamPermissionSettingUpdateAttributes) o; - return Objects.equals(this.value, teamPermissionSettingUpdateAttributes.value); + return Objects.equals(this.value, teamPermissionSettingUpdateAttributes.value) + && Objects.equals( + this.additionalProperties, teamPermissionSettingUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(value); + return Objects.hash(value, additionalProperties); } @Override @@ -70,6 +122,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamPermissionSettingUpdateAttributes {\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateRequest.java index 3fc7f05ecb8..f77d757941d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team permission setting update request */ @@ -52,6 +56,52 @@ public void setData(TeamPermissionSettingUpdate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSettingUpdateRequest + */ + @JsonAnySetter + public TeamPermissionSettingUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSettingUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -63,12 +113,14 @@ public boolean equals(Object o) { } TeamPermissionSettingUpdateRequest teamPermissionSettingUpdateRequest = (TeamPermissionSettingUpdateRequest) o; - return Objects.equals(this.data, teamPermissionSettingUpdateRequest.data); + return Objects.equals(this.data, teamPermissionSettingUpdateRequest.data) + && Objects.equals( + this.additionalProperties, teamPermissionSettingUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -76,6 +128,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamPermissionSettingUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingsResponse.java b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingsResponse.java index fb4667c185b..f25a1f792bd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamPermissionSettingsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Team permission settings response */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamPermissionSettingsResponse + */ + @JsonAnySetter + public TeamPermissionSettingsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamPermissionSettingsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } TeamPermissionSettingsResponse teamPermissionSettingsResponse = (TeamPermissionSettingsResponse) o; - return Objects.equals(this.data, teamPermissionSettingsResponse.data); + return Objects.equals(this.data, teamPermissionSettingsResponse.data) + && Objects.equals( + this.additionalProperties, teamPermissionSettingsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamPermissionSettingsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamRelationships.java b/src/main/java/com/datadog/api/client/v2/model/TeamRelationships.java index f35d32df92b..7d27814489f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Resources related to a team */ @@ -72,6 +76,52 @@ public void setUserTeamPermissions(RelationshipToUserTeamPermission userTeamPerm this.userTeamPermissions = userTeamPermissions; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamRelationships + */ + @JsonAnySetter + public TeamRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -83,12 +133,13 @@ public boolean equals(Object o) { } TeamRelationships teamRelationships = (TeamRelationships) o; return Objects.equals(this.teamLinks, teamRelationships.teamLinks) - && Objects.equals(this.userTeamPermissions, teamRelationships.userTeamPermissions); + && Objects.equals(this.userTeamPermissions, teamRelationships.userTeamPermissions) + && Objects.equals(this.additionalProperties, teamRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(teamLinks, userTeamPermissions); + return Objects.hash(teamLinks, userTeamPermissions, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append(" userTeamPermissions: ") .append(toIndentedString(userTeamPermissions)) .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamResponse.java b/src/main/java/com/datadog/api/client/v2/model/TeamResponse.java index d131e54a2fb..f192bd61ac5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Response with a team */ @@ -43,6 +47,52 @@ public void setData(TeamData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamResponse + */ + @JsonAnySetter + public TeamResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } TeamResponse teamResponse = (TeamResponse) o; - return Objects.equals(this.data, teamResponse.data); + return Objects.equals(this.data, teamResponse.data) + && Objects.equals(this.additionalProperties, teamResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamUpdate.java b/src/main/java/com/datadog/api/client/v2/model/TeamUpdate.java index 6568b245d80..690ad7f3066 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamUpdate.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamUpdate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team update request */ @@ -112,6 +116,52 @@ public void setType(TeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamUpdate + */ + @JsonAnySetter + public TeamUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamUpdate object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { TeamUpdate teamUpdate = (TeamUpdate) o; return Objects.equals(this.attributes, teamUpdate.attributes) && Objects.equals(this.relationships, teamUpdate.relationships) - && Objects.equals(this.type, teamUpdate.type); + && Objects.equals(this.type, teamUpdate.type) + && Objects.equals(this.additionalProperties, teamUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamUpdateAttributes.java index 21d6bf12323..6614d05a482 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamUpdateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team update attributes */ @@ -128,6 +132,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamUpdateAttributes + */ + @JsonAnySetter + public TeamUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -141,12 +191,13 @@ public boolean equals(Object o) { return Objects.equals(this.color, teamUpdateAttributes.color) && Objects.equals(this.description, teamUpdateAttributes.description) && Objects.equals(this.handle, teamUpdateAttributes.handle) - && Objects.equals(this.name, teamUpdateAttributes.name); + && Objects.equals(this.name, teamUpdateAttributes.name) + && Objects.equals(this.additionalProperties, teamUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(color, description, handle, name); + return Objects.hash(color, description, handle, name, additionalProperties); } @Override @@ -157,6 +208,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRelationships.java b/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRelationships.java index 1c40f8cd3b6..45d0a435080 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team update relationships */ @@ -43,6 +47,52 @@ public void setTeamLinks(RelationshipToTeamLinks teamLinks) { this.teamLinks = teamLinks; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamUpdateRelationships + */ + @JsonAnySetter + public TeamUpdateRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamUpdateRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } TeamUpdateRelationships teamUpdateRelationships = (TeamUpdateRelationships) o; - return Objects.equals(this.teamLinks, teamUpdateRelationships.teamLinks); + return Objects.equals(this.teamLinks, teamUpdateRelationships.teamLinks) + && Objects.equals(this.additionalProperties, teamUpdateRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(teamLinks); + return Objects.hash(teamLinks, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamUpdateRelationships {\n"); sb.append(" teamLinks: ").append(toIndentedString(teamLinks)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRequest.java index b0086fb8724..69c98d07bf1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team update request */ @@ -52,6 +56,52 @@ public void setData(TeamUpdate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamUpdateRequest + */ + @JsonAnySetter + public TeamUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } TeamUpdateRequest teamUpdateRequest = (TeamUpdateRequest) o; - return Objects.equals(this.data, teamUpdateRequest.data); + return Objects.equals(this.data, teamUpdateRequest.data) + && Objects.equals(this.additionalProperties, teamUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamsResponse.java b/src/main/java/com/datadog/api/client/v2/model/TeamsResponse.java index 580ddd591aa..ffbc712ad7c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response with multiple teams */ @@ -92,6 +96,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TeamsResponse + */ + @JsonAnySetter + public TeamsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TeamsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -103,12 +153,13 @@ public boolean equals(Object o) { } TeamsResponse teamsResponse = (TeamsResponse) o; return Objects.equals(this.data, teamsResponse.data) - && Objects.equals(this.included, teamsResponse.included); + && Objects.equals(this.included, teamsResponse.included) + && Objects.equals(this.additionalProperties, teamsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -117,6 +168,9 @@ public String toString() { sb.append("class TeamsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryRequest.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryRequest.java index 8a1fdde6977..5dd028fbdf7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A request wrapper around a single timeseries query to be executed. */ @@ -52,6 +56,52 @@ public void setData(TimeseriesFormulaRequest data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesFormulaQueryRequest + */ + @JsonAnySetter + public TimeseriesFormulaQueryRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesFormulaQueryRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } TimeseriesFormulaQueryRequest timeseriesFormulaQueryRequest = (TimeseriesFormulaQueryRequest) o; - return Objects.equals(this.data, timeseriesFormulaQueryRequest.data); + return Objects.equals(this.data, timeseriesFormulaQueryRequest.data) + && Objects.equals( + this.additionalProperties, timeseriesFormulaQueryRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TimeseriesFormulaQueryRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryResponse.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryResponse.java index 48181256e82..f8a55ef2d6d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaQueryResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -73,6 +77,52 @@ public void setErrors(String errors) { this.errors = errors; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesFormulaQueryResponse + */ + @JsonAnySetter + public TimeseriesFormulaQueryResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesFormulaQueryResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,14 @@ public boolean equals(Object o) { TimeseriesFormulaQueryResponse timeseriesFormulaQueryResponse = (TimeseriesFormulaQueryResponse) o; return Objects.equals(this.data, timeseriesFormulaQueryResponse.data) - && Objects.equals(this.errors, timeseriesFormulaQueryResponse.errors); + && Objects.equals(this.errors, timeseriesFormulaQueryResponse.errors) + && Objects.equals( + this.additionalProperties, timeseriesFormulaQueryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, errors); + return Objects.hash(data, errors, additionalProperties); } @Override @@ -99,6 +151,9 @@ public String toString() { sb.append("class TimeseriesFormulaQueryResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequest.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequest.java index d31185afc32..f86a3b357f3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A single timeseries query to be executed. */ @@ -87,6 +91,52 @@ public void setType(TimeseriesFormulaRequestType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesFormulaRequest + */ + @JsonAnySetter + public TimeseriesFormulaRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesFormulaRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -98,12 +148,13 @@ public boolean equals(Object o) { } TimeseriesFormulaRequest timeseriesFormulaRequest = (TimeseriesFormulaRequest) o; return Objects.equals(this.attributes, timeseriesFormulaRequest.attributes) - && Objects.equals(this.type, timeseriesFormulaRequest.type); + && Objects.equals(this.type, timeseriesFormulaRequest.type) + && Objects.equals(this.additionalProperties, timeseriesFormulaRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -112,6 +163,9 @@ public String toString() { sb.append("class TimeseriesFormulaRequest {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequestAttributes.java index f72a9f07839..3b211076daa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesFormulaRequestAttributes.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a timeseries formula request. */ @@ -179,6 +183,52 @@ public void setTo(Long to) { this.to = to; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesFormulaRequestAttributes + */ + @JsonAnySetter + public TimeseriesFormulaRequestAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesFormulaRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -194,12 +244,14 @@ public boolean equals(Object o) { && Objects.equals(this.from, timeseriesFormulaRequestAttributes.from) && Objects.equals(this.interval, timeseriesFormulaRequestAttributes.interval) && Objects.equals(this.queries, timeseriesFormulaRequestAttributes.queries) - && Objects.equals(this.to, timeseriesFormulaRequestAttributes.to); + && Objects.equals(this.to, timeseriesFormulaRequestAttributes.to) + && Objects.equals( + this.additionalProperties, timeseriesFormulaRequestAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formulas, from, interval, queries, to); + return Objects.hash(formulas, from, interval, queries, to, additionalProperties); } @Override @@ -211,6 +263,9 @@ public String toString() { sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponse.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponse.java index 04886853b5d..0c4ca2157bf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A message containing the response to a timeseries query. */ @@ -74,6 +78,52 @@ public void setType(TimeseriesFormulaResponseType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesResponse + */ + @JsonAnySetter + public TimeseriesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -85,12 +135,13 @@ public boolean equals(Object o) { } TimeseriesResponse timeseriesResponse = (TimeseriesResponse) o; return Objects.equals(this.attributes, timeseriesResponse.attributes) - && Objects.equals(this.type, timeseriesResponse.type); + && Objects.equals(this.type, timeseriesResponse.type) + && Objects.equals(this.additionalProperties, timeseriesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -99,6 +150,9 @@ public String toString() { sb.append("class TimeseriesResponse {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseAttributes.java index 128cd714e8a..fd4c045f146 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseAttributes.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The object describing a timeseries response. */ @@ -126,6 +130,52 @@ public void setValues(List> values) { this.values = values; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesResponseAttributes + */ + @JsonAnySetter + public TimeseriesResponseAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,14 @@ public boolean equals(Object o) { TimeseriesResponseAttributes timeseriesResponseAttributes = (TimeseriesResponseAttributes) o; return Objects.equals(this.series, timeseriesResponseAttributes.series) && Objects.equals(this.times, timeseriesResponseAttributes.times) - && Objects.equals(this.values, timeseriesResponseAttributes.values); + && Objects.equals(this.values, timeseriesResponseAttributes.values) + && Objects.equals( + this.additionalProperties, timeseriesResponseAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(series, times, values); + return Objects.hash(series, times, values, additionalProperties); } @Override @@ -153,6 +205,9 @@ public String toString() { sb.append(" series: ").append(toIndentedString(series)).append("\n"); sb.append(" times: ").append(toIndentedString(times)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseSeries.java b/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseSeries.java index bb76f62e791..ebbbe495a21 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseSeries.java +++ b/src/main/java/com/datadog/api/client/v2/model/TimeseriesResponseSeries.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** */ @@ -120,6 +124,52 @@ public void setUnit(List unit) { this.unit = unit; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return TimeseriesResponseSeries + */ + @JsonAnySetter + public TimeseriesResponseSeries putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this TimeseriesResponseSeries object is equal to o. */ @Override public boolean equals(Object o) { @@ -132,12 +182,13 @@ public boolean equals(Object o) { TimeseriesResponseSeries timeseriesResponseSeries = (TimeseriesResponseSeries) o; return Objects.equals(this.groupTags, timeseriesResponseSeries.groupTags) && Objects.equals(this.queryIndex, timeseriesResponseSeries.queryIndex) - && Objects.equals(this.unit, timeseriesResponseSeries.unit); + && Objects.equals(this.unit, timeseriesResponseSeries.unit) + && Objects.equals(this.additionalProperties, timeseriesResponseSeries.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groupTags, queryIndex, unit); + return Objects.hash(groupTags, queryIndex, unit, additionalProperties); } @Override @@ -147,6 +198,9 @@ public String toString() { sb.append(" groupTags: ").append(toIndentedString(groupTags)).append("\n"); sb.append(" queryIndex: ").append(toIndentedString(queryIndex)).append("\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/Unit.java b/src/main/java/com/datadog/api/client/v2/model/Unit.java index 8a00087e6fd..0184fbf0892 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Unit.java +++ b/src/main/java/com/datadog/api/client/v2/model/Unit.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object containing the metric unit family, scale factor, name, and short name. */ @@ -144,6 +148,52 @@ public void setShortName(String shortName) { this.shortName = shortName; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Unit + */ + @JsonAnySetter + public Unit putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this Unit object is equal to o. */ @Override public boolean equals(Object o) { @@ -158,12 +208,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, unit.name) && Objects.equals(this.plural, unit.plural) && Objects.equals(this.scaleFactor, unit.scaleFactor) - && Objects.equals(this.shortName, unit.shortName); + && Objects.equals(this.shortName, unit.shortName) + && Objects.equals(this.additionalProperties, unit.additionalProperties); } @Override public int hashCode() { - return Objects.hash(family, name, plural, scaleFactor, shortName); + return Objects.hash(family, name, plural, scaleFactor, shortName, additionalProperties); } @Override @@ -175,6 +226,9 @@ public String toString() { sb.append(" plural: ").append(toIndentedString(plural)).append("\n"); sb.append(" scaleFactor: ").append(toIndentedString(scaleFactor)).append("\n"); sb.append(" shortName: ").append(toIndentedString(shortName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsageApplicationSecurityMonitoringResponse.java b/src/main/java/com/datadog/api/client/v2/model/UsageApplicationSecurityMonitoringResponse.java index 9d37853d6de..bf6ec7c7509 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsageApplicationSecurityMonitoringResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsageApplicationSecurityMonitoringResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Application Security Monitoring usage response. */ @@ -56,6 +60,53 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageApplicationSecurityMonitoringResponse + */ + @JsonAnySetter + public UsageApplicationSecurityMonitoringResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageApplicationSecurityMonitoringResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +118,15 @@ public boolean equals(Object o) { } UsageApplicationSecurityMonitoringResponse usageApplicationSecurityMonitoringResponse = (UsageApplicationSecurityMonitoringResponse) o; - return Objects.equals(this.data, usageApplicationSecurityMonitoringResponse.data); + return Objects.equals(this.data, usageApplicationSecurityMonitoringResponse.data) + && Objects.equals( + this.additionalProperties, + usageApplicationSecurityMonitoringResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +134,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageApplicationSecurityMonitoringResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsageAttributesObject.java b/src/main/java/com/datadog/api/client/v2/model/UsageAttributesObject.java index 23a78d423c5..93b65491242 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsageAttributesObject.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsageAttributesObject.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Usage attributes data. */ @@ -162,6 +166,52 @@ public void setUsageType(HourlyUsageType usageType) { this.usageType = usageType; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageAttributesObject + */ + @JsonAnySetter + public UsageAttributesObject putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageAttributesObject object is equal to o. */ @Override public boolean equals(Object o) { @@ -176,12 +226,14 @@ public boolean equals(Object o) { && Objects.equals(this.productFamily, usageAttributesObject.productFamily) && Objects.equals(this.publicId, usageAttributesObject.publicId) && Objects.equals(this.timeseries, usageAttributesObject.timeseries) - && Objects.equals(this.usageType, usageAttributesObject.usageType); + && Objects.equals(this.usageType, usageAttributesObject.usageType) + && Objects.equals(this.additionalProperties, usageAttributesObject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(orgName, productFamily, publicId, timeseries, usageType); + return Objects.hash( + orgName, productFamily, publicId, timeseries, usageType, additionalProperties); } @Override @@ -193,6 +245,9 @@ public String toString() { sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); sb.append(" timeseries: ").append(toIndentedString(timeseries)).append("\n"); sb.append(" usageType: ").append(toIndentedString(usageType)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsageDataObject.java b/src/main/java/com/datadog/api/client/v2/model/UsageDataObject.java index 681d7f915c6..2211cd60bd9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsageDataObject.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsageDataObject.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Usage data. */ @@ -99,6 +103,52 @@ public void setType(UsageTimeSeriesType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageDataObject + */ + @JsonAnySetter + public UsageDataObject putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageDataObject object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,13 @@ public boolean equals(Object o) { UsageDataObject usageDataObject = (UsageDataObject) o; return Objects.equals(this.attributes, usageDataObject.attributes) && Objects.equals(this.id, usageDataObject.id) - && Objects.equals(this.type, usageDataObject.type); + && Objects.equals(this.type, usageDataObject.type) + && Objects.equals(this.additionalProperties, usageDataObject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +177,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsageLambdaTracedInvocationsResponse.java b/src/main/java/com/datadog/api/client/v2/model/UsageLambdaTracedInvocationsResponse.java index c2431c7ab8c..6a4c64617f9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsageLambdaTracedInvocationsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsageLambdaTracedInvocationsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Lambda Traced Invocations usage response. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageLambdaTracedInvocationsResponse + */ + @JsonAnySetter + public UsageLambdaTracedInvocationsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageLambdaTracedInvocationsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } UsageLambdaTracedInvocationsResponse usageLambdaTracedInvocationsResponse = (UsageLambdaTracedInvocationsResponse) o; - return Objects.equals(this.data, usageLambdaTracedInvocationsResponse.data); + return Objects.equals(this.data, usageLambdaTracedInvocationsResponse.data) + && Objects.equals( + this.additionalProperties, usageLambdaTracedInvocationsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageLambdaTracedInvocationsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsageObservabilityPipelinesResponse.java b/src/main/java/com/datadog/api/client/v2/model/UsageObservabilityPipelinesResponse.java index 8b5e5d265ca..9dd5bbc4629 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsageObservabilityPipelinesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsageObservabilityPipelinesResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Observability Pipelines usage response. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageObservabilityPipelinesResponse + */ + @JsonAnySetter + public UsageObservabilityPipelinesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageObservabilityPipelinesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -67,12 +117,14 @@ public boolean equals(Object o) { } UsageObservabilityPipelinesResponse usageObservabilityPipelinesResponse = (UsageObservabilityPipelinesResponse) o; - return Objects.equals(this.data, usageObservabilityPipelinesResponse.data); + return Objects.equals(this.data, usageObservabilityPipelinesResponse.data) + && Objects.equals( + this.additionalProperties, usageObservabilityPipelinesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -80,6 +132,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UsageObservabilityPipelinesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsageTimeSeriesObject.java b/src/main/java/com/datadog/api/client/v2/model/UsageTimeSeriesObject.java index 414cc1936c4..54c35562fff 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsageTimeSeriesObject.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsageTimeSeriesObject.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -81,6 +85,52 @@ public void setValue(Long value) { this.value = JsonNullable.of(value); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsageTimeSeriesObject + */ + @JsonAnySetter + public UsageTimeSeriesObject putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsageTimeSeriesObject object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,13 @@ public boolean equals(Object o) { } UsageTimeSeriesObject usageTimeSeriesObject = (UsageTimeSeriesObject) o; return Objects.equals(this.timestamp, usageTimeSeriesObject.timestamp) - && Objects.equals(this.value, usageTimeSeriesObject.value); + && Objects.equals(this.value, usageTimeSeriesObject.value) + && Objects.equals(this.additionalProperties, usageTimeSeriesObject.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timestamp, value); + return Objects.hash(timestamp, value, additionalProperties); } @Override @@ -106,6 +157,9 @@ public String toString() { sb.append("class UsageTimeSeriesObject {\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/User.java b/src/main/java/com/datadog/api/client/v2/model/User.java index bed89734165..285e7eab0f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/User.java +++ b/src/main/java/com/datadog/api/client/v2/model/User.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** User object returned by the API. */ @@ -125,6 +129,52 @@ public void setType(UsersType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return User + */ + @JsonAnySetter + public User putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this User object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,12 +188,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, user.attributes) && Objects.equals(this.id, user.id) && Objects.equals(this.relationships, user.relationships) - && Objects.equals(this.type, user.type); + && Objects.equals(this.type, user.type) + && Objects.equals(this.additionalProperties, user.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -154,6 +205,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UserAttributes.java index 8e03521a9ff..1758306ba74 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -316,6 +320,52 @@ public void setVerified(Boolean verified) { this.verified = verified; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserAttributes + */ + @JsonAnySetter + public UserAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -336,7 +386,8 @@ public boolean equals(Object o) { && Objects.equals(this.serviceAccount, userAttributes.serviceAccount) && Objects.equals(this.status, userAttributes.status) && Objects.equals(this.title, userAttributes.title) - && Objects.equals(this.verified, userAttributes.verified); + && Objects.equals(this.verified, userAttributes.verified) + && Objects.equals(this.additionalProperties, userAttributes.additionalProperties); } @Override @@ -352,7 +403,8 @@ public int hashCode() { serviceAccount, status, title, - verified); + verified, + additionalProperties); } @Override @@ -370,6 +422,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UserCreateAttributes.java index 48b2add7392..92ab54b47f4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserCreateAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the created user. */ @@ -102,6 +106,52 @@ public void setTitle(String title) { this.title = title; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserCreateAttributes + */ + @JsonAnySetter + public UserCreateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserCreateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -114,12 +164,13 @@ public boolean equals(Object o) { UserCreateAttributes userCreateAttributes = (UserCreateAttributes) o; return Objects.equals(this.email, userCreateAttributes.email) && Objects.equals(this.name, userCreateAttributes.name) - && Objects.equals(this.title, userCreateAttributes.title); + && Objects.equals(this.title, userCreateAttributes.title) + && Objects.equals(this.additionalProperties, userCreateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(email, name, title); + return Objects.hash(email, name, title, additionalProperties); } @Override @@ -129,6 +180,9 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserCreateData.java b/src/main/java/com/datadog/api/client/v2/model/UserCreateData.java index 31fb6148e33..56fc13606f7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserCreateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserCreateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to create a user. */ @@ -112,6 +116,52 @@ public void setType(UsersType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserCreateData + */ + @JsonAnySetter + public UserCreateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserCreateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { UserCreateData userCreateData = (UserCreateData) o; return Objects.equals(this.attributes, userCreateData.attributes) && Objects.equals(this.relationships, userCreateData.relationships) - && Objects.equals(this.type, userCreateData.type); + && Objects.equals(this.type, userCreateData.type) + && Objects.equals(this.additionalProperties, userCreateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/UserCreateRequest.java index 3f1296cd938..9c87b494a0b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserCreateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserCreateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Create a user. */ @@ -52,6 +56,52 @@ public void setData(UserCreateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserCreateRequest + */ + @JsonAnySetter + public UserCreateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } UserCreateRequest userCreateRequest = (UserCreateRequest) o; - return Objects.equals(this.data, userCreateRequest.data); + return Objects.equals(this.data, userCreateRequest.data) + && Objects.equals(this.additionalProperties, userCreateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationData.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationData.java index 79a78bc7534..ccecbfcc948 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationData.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to create a user invitation. */ @@ -86,6 +90,52 @@ public void setType(UserInvitationsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationData + */ + @JsonAnySetter + public UserInvitationData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationData object is equal to o. */ @Override public boolean equals(Object o) { @@ -97,12 +147,13 @@ public boolean equals(Object o) { } UserInvitationData userInvitationData = (UserInvitationData) o; return Objects.equals(this.relationships, userInvitationData.relationships) - && Objects.equals(this.type, userInvitationData.type); + && Objects.equals(this.type, userInvitationData.type) + && Objects.equals(this.additionalProperties, userInvitationData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(relationships, type); + return Objects.hash(relationships, type, additionalProperties); } @Override @@ -111,6 +162,9 @@ public String toString() { sb.append("class UserInvitationData {\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationDataAttributes.java index 9324bbef121..ac2b2ec7cda 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationDataAttributes.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of a user invitation. */ @@ -120,6 +124,52 @@ public void setUuid(String uuid) { this.uuid = uuid; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationDataAttributes + */ + @JsonAnySetter + public UserInvitationDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationDataAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -133,12 +183,14 @@ public boolean equals(Object o) { return Objects.equals(this.createdAt, userInvitationDataAttributes.createdAt) && Objects.equals(this.expiresAt, userInvitationDataAttributes.expiresAt) && Objects.equals(this.inviteType, userInvitationDataAttributes.inviteType) - && Objects.equals(this.uuid, userInvitationDataAttributes.uuid); + && Objects.equals(this.uuid, userInvitationDataAttributes.uuid) + && Objects.equals( + this.additionalProperties, userInvitationDataAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(createdAt, expiresAt, inviteType, uuid); + return Objects.hash(createdAt, expiresAt, inviteType, uuid, additionalProperties); } @Override @@ -149,6 +201,9 @@ public String toString() { sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" inviteType: ").append(toIndentedString(inviteType)).append("\n"); sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationRelationships.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationRelationships.java index 66ea58cd423..04c306c39b9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationRelationships.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships data for user invitation. */ @@ -52,6 +56,52 @@ public void setUser(RelationshipToUser user) { this.user = user; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationRelationships + */ + @JsonAnySetter + public UserInvitationRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,14 @@ public boolean equals(Object o) { return false; } UserInvitationRelationships userInvitationRelationships = (UserInvitationRelationships) o; - return Objects.equals(this.user, userInvitationRelationships.user); + return Objects.equals(this.user, userInvitationRelationships.user) + && Objects.equals( + this.additionalProperties, userInvitationRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(user); + return Objects.hash(user, additionalProperties); } @Override @@ -75,6 +127,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserInvitationRelationships {\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponse.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponse.java index fa28be361d6..94fad224440 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** User invitation as returned by the API. */ @@ -43,6 +47,52 @@ public void setData(UserInvitationResponseData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationResponse + */ + @JsonAnySetter + public UserInvitationResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } UserInvitationResponse userInvitationResponse = (UserInvitationResponse) o; - return Objects.equals(this.data, userInvitationResponse.data); + return Objects.equals(this.data, userInvitationResponse.data) + && Objects.equals(this.additionalProperties, userInvitationResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserInvitationResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponseData.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponseData.java index f5ca125b108..e27dfb76db6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationResponseData.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object of a user invitation returned by the API. */ @@ -99,6 +103,52 @@ public void setType(UserInvitationsType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationResponseData + */ + @JsonAnySetter + public UserInvitationResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationResponseData object is equal to o. */ @Override public boolean equals(Object o) { @@ -111,12 +161,14 @@ public boolean equals(Object o) { UserInvitationResponseData userInvitationResponseData = (UserInvitationResponseData) o; return Objects.equals(this.attributes, userInvitationResponseData.attributes) && Objects.equals(this.id, userInvitationResponseData.id) - && Objects.equals(this.type, userInvitationResponseData.type); + && Objects.equals(this.type, userInvitationResponseData.type) + && Objects.equals( + this.additionalProperties, userInvitationResponseData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -126,6 +178,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationsRequest.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationsRequest.java index b645e233c85..7ddb6a858fd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationsRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationsRequest.java @@ -6,13 +6,17 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Object to invite users to join the organization. */ @@ -61,6 +65,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationsRequest + */ + @JsonAnySetter + public UserInvitationsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationsRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -71,12 +121,13 @@ public boolean equals(Object o) { return false; } UserInvitationsRequest userInvitationsRequest = (UserInvitationsRequest) o; - return Objects.equals(this.data, userInvitationsRequest.data); + return Objects.equals(this.data, userInvitationsRequest.data) + && Objects.equals(this.additionalProperties, userInvitationsRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -84,6 +135,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserInvitationsRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserInvitationsResponse.java b/src/main/java/com/datadog/api/client/v2/model/UserInvitationsResponse.java index 39ee82cf5da..753127371a2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserInvitationsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserInvitationsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** User invitations as returned by the API. */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserInvitationsResponse + */ + @JsonAnySetter + public UserInvitationsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserInvitationsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UserInvitationsResponse userInvitationsResponse = (UserInvitationsResponse) o; - return Objects.equals(this.data, userInvitationsResponse.data); + return Objects.equals(this.data, userInvitationsResponse.data) + && Objects.equals(this.additionalProperties, userInvitationsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserInvitationsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserRelationships.java b/src/main/java/com/datadog/api/client/v2/model/UserRelationships.java index f0c8a0bab00..22fb6d1314b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of the user object. */ @@ -43,6 +47,52 @@ public void setRoles(RelationshipToRoles roles) { this.roles = roles; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserRelationships + */ + @JsonAnySetter + public UserRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } UserRelationships userRelationships = (UserRelationships) o; - return Objects.equals(this.roles, userRelationships.roles); + return Objects.equals(this.roles, userRelationships.roles) + && Objects.equals(this.additionalProperties, userRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(roles); + return Objects.hash(roles, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserRelationships {\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserResponse.java b/src/main/java/com/datadog/api/client/v2/model/UserResponse.java index c4ce40a290f..8e615a6d9d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing information about a single user. */ @@ -81,6 +85,52 @@ public void setIncluded(List included) { this.included = included; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserResponse + */ + @JsonAnySetter + public UserResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -92,12 +142,13 @@ public boolean equals(Object o) { } UserResponse userResponse = (UserResponse) o; return Objects.equals(this.data, userResponse.data) - && Objects.equals(this.included, userResponse.included); + && Objects.equals(this.included, userResponse.included) + && Objects.equals(this.additionalProperties, userResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data, included, additionalProperties); } @Override @@ -106,6 +157,9 @@ public String toString() { sb.append("class UserResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserResponseRelationships.java b/src/main/java/com/datadog/api/client/v2/model/UserResponseRelationships.java index d687b08e82c..c56351360d0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserResponseRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserResponseRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationships of the user object returned by the API. */ @@ -123,6 +127,52 @@ public void setRoles(RelationshipToRoles roles) { this.roles = roles; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserResponseRelationships + */ + @JsonAnySetter + public UserResponseRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserResponseRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -136,12 +186,14 @@ public boolean equals(Object o) { return Objects.equals(this.org, userResponseRelationships.org) && Objects.equals(this.otherOrgs, userResponseRelationships.otherOrgs) && Objects.equals(this.otherUsers, userResponseRelationships.otherUsers) - && Objects.equals(this.roles, userResponseRelationships.roles); + && Objects.equals(this.roles, userResponseRelationships.roles) + && Objects.equals( + this.additionalProperties, userResponseRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(org, otherOrgs, otherUsers, roles); + return Objects.hash(org, otherOrgs, otherUsers, roles, additionalProperties); } @Override @@ -152,6 +204,9 @@ public String toString() { sb.append(" otherOrgs: ").append(toIndentedString(otherOrgs)).append("\n"); sb.append(" otherUsers: ").append(toIndentedString(otherUsers)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeam.java b/src/main/java/com/datadog/api/client/v2/model/UserTeam.java index a9e5804ebd1..e60476a4ae9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeam.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeam.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A user's relationship with a team */ @@ -135,6 +139,52 @@ public void setType(UserTeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeam + */ + @JsonAnySetter + public UserTeam putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeam object is equal to o. */ @Override public boolean equals(Object o) { @@ -148,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.attributes, userTeam.attributes) && Objects.equals(this.id, userTeam.id) && Objects.equals(this.relationships, userTeam.relationships) - && Objects.equals(this.type, userTeam.type); + && Objects.equals(this.type, userTeam.type) + && Objects.equals(this.additionalProperties, userTeam.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, relationships, type); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override @@ -164,6 +215,9 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamAttributes.java index ab8217e5667..d091e922380 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; @@ -56,6 +60,52 @@ public void setRole(UserTeamRole role) { this.role = JsonNullable.of(role); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamAttributes + */ + @JsonAnySetter + public UserTeamAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UserTeamAttributes userTeamAttributes = (UserTeamAttributes) o; - return Objects.equals(this.role, userTeamAttributes.role); + return Objects.equals(this.role, userTeamAttributes.role) + && Objects.equals(this.additionalProperties, userTeamAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(role); + return Objects.hash(role, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamAttributes {\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamCreate.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamCreate.java index 514f98e09d3..11d8aee78a1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamCreate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A user's relationship with a team */ @@ -109,6 +113,52 @@ public void setType(UserTeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamCreate + */ + @JsonAnySetter + public UserTeamCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamCreate object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { UserTeamCreate userTeamCreate = (UserTeamCreate) o; return Objects.equals(this.attributes, userTeamCreate.attributes) && Objects.equals(this.relationships, userTeamCreate.relationships) - && Objects.equals(this.type, userTeamCreate.type); + && Objects.equals(this.type, userTeamCreate.type) + && Objects.equals(this.additionalProperties, userTeamCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, relationships, type); + return Objects.hash(attributes, relationships, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamPermission.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamPermission.java index c8036fbadce..3406ab6189d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamPermission.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamPermission.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A user's permissions for a given team */ @@ -109,6 +113,52 @@ public void setType(UserTeamPermissionType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamPermission + */ + @JsonAnySetter + public UserTeamPermission putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamPermission object is equal to o. */ @Override public boolean equals(Object o) { @@ -121,12 +171,13 @@ public boolean equals(Object o) { UserTeamPermission userTeamPermission = (UserTeamPermission) o; return Objects.equals(this.attributes, userTeamPermission.attributes) && Objects.equals(this.id, userTeamPermission.id) - && Objects.equals(this.type, userTeamPermission.type); + && Objects.equals(this.type, userTeamPermission.type) + && Objects.equals(this.additionalProperties, userTeamPermission.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -136,6 +187,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamPermissionAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamPermissionAttributes.java index 02e111f2197..59e24685c9b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamPermissionAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamPermissionAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** User team permission attributes */ @@ -34,6 +38,52 @@ public Object getPermissions() { return permissions; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamPermissionAttributes + */ + @JsonAnySetter + public UserTeamPermissionAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamPermissionAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -44,12 +94,14 @@ public boolean equals(Object o) { return false; } UserTeamPermissionAttributes userTeamPermissionAttributes = (UserTeamPermissionAttributes) o; - return Objects.equals(this.permissions, userTeamPermissionAttributes.permissions); + return Objects.equals(this.permissions, userTeamPermissionAttributes.permissions) + && Objects.equals( + this.additionalProperties, userTeamPermissionAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(permissions); + return Objects.hash(permissions, additionalProperties); } @Override @@ -57,6 +109,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamPermissionAttributes {\n"); sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamRelationships.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamRelationships.java index e310f4352ea..da50f0b9e8c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamRelationships.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamRelationships.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Relationship between membership and a user */ @@ -43,6 +47,52 @@ public void setUser(RelationshipToUserTeamUser user) { this.user = user; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamRelationships + */ + @JsonAnySetter + public UserTeamRelationships putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamRelationships object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } UserTeamRelationships userTeamRelationships = (UserTeamRelationships) o; - return Objects.equals(this.user, userTeamRelationships.user); + return Objects.equals(this.user, userTeamRelationships.user) + && Objects.equals(this.additionalProperties, userTeamRelationships.additionalProperties); } @Override public int hashCode() { - return Objects.hash(user); + return Objects.hash(user, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamRelationships {\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamRequest.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamRequest.java index b3654beb8c0..2d2434a9377 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team membership request */ @@ -52,6 +56,52 @@ public void setData(UserTeamCreate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamRequest + */ + @JsonAnySetter + public UserTeamRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } UserTeamRequest userTeamRequest = (UserTeamRequest) o; - return Objects.equals(this.data, userTeamRequest.data); + return Objects.equals(this.data, userTeamRequest.data) + && Objects.equals(this.additionalProperties, userTeamRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamResponse.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamResponse.java index 97672d638db..3c78c2be901 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamResponse.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team membership response */ @@ -43,6 +47,52 @@ public void setData(UserTeam data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamResponse + */ + @JsonAnySetter + public UserTeamResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -53,12 +103,13 @@ public boolean equals(Object o) { return false; } UserTeamResponse userTeamResponse = (UserTeamResponse) o; - return Objects.equals(this.data, userTeamResponse.data); + return Objects.equals(this.data, userTeamResponse.data) + && Objects.equals(this.additionalProperties, userTeamResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -66,6 +117,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdate.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdate.java index bb11dbb8382..3cd6863a01d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdate.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdate.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** A user's relationship with a team */ @@ -80,6 +84,52 @@ public void setType(UserTeamType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamUpdate + */ + @JsonAnySetter + public UserTeamUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamUpdate object is equal to o. */ @Override public boolean equals(Object o) { @@ -91,12 +141,13 @@ public boolean equals(Object o) { } UserTeamUpdate userTeamUpdate = (UserTeamUpdate) o; return Objects.equals(this.attributes, userTeamUpdate.attributes) - && Objects.equals(this.type, userTeamUpdate.type); + && Objects.equals(this.type, userTeamUpdate.type) + && Objects.equals(this.additionalProperties, userTeamUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, type); + return Objects.hash(attributes, type, additionalProperties); } @Override @@ -105,6 +156,9 @@ public String toString() { sb.append("class UserTeamUpdate {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdateRequest.java index 023ac7489ec..9fbfa073c49 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Team membership request */ @@ -52,6 +56,52 @@ public void setData(UserTeamUpdate data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamUpdateRequest + */ + @JsonAnySetter + public UserTeamUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } UserTeamUpdateRequest userTeamUpdateRequest = (UserTeamUpdateRequest) o; - return Objects.equals(this.data, userTeamUpdateRequest.data); + return Objects.equals(this.data, userTeamUpdateRequest.data) + && Objects.equals(this.additionalProperties, userTeamUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserTeamsResponse.java b/src/main/java/com/datadog/api/client/v2/model/UserTeamsResponse.java index 56eca37e091..f4bd627b8d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserTeamsResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserTeamsResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Team memberships response */ @@ -56,6 +60,52 @@ public void setData(List data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserTeamsResponse + */ + @JsonAnySetter + public UserTeamsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserTeamsResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -66,12 +116,13 @@ public boolean equals(Object o) { return false; } UserTeamsResponse userTeamsResponse = (UserTeamsResponse) o; - return Objects.equals(this.data, userTeamsResponse.data); + return Objects.equals(this.data, userTeamsResponse.data) + && Objects.equals(this.additionalProperties, userTeamsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -79,6 +130,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserTeamsResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UserUpdateAttributes.java index 79488c0c157..f3920469acf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserUpdateAttributes.java @@ -6,10 +6,14 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Attributes of the edited user. */ @@ -94,6 +98,52 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserUpdateAttributes + */ + @JsonAnySetter + public UserUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserUpdateAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,12 +156,13 @@ public boolean equals(Object o) { UserUpdateAttributes userUpdateAttributes = (UserUpdateAttributes) o; return Objects.equals(this.disabled, userUpdateAttributes.disabled) && Objects.equals(this.email, userUpdateAttributes.email) - && Objects.equals(this.name, userUpdateAttributes.name); + && Objects.equals(this.name, userUpdateAttributes.name) + && Objects.equals(this.additionalProperties, userUpdateAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(disabled, email, name); + return Objects.hash(disabled, email, name, additionalProperties); } @Override @@ -121,6 +172,9 @@ public String toString() { sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/UserUpdateData.java index 3fa0bd7fa83..2888429b306 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserUpdateData.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserUpdateData.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Object to update a user. */ @@ -112,6 +116,52 @@ public void setType(UsersType type) { this.type = type; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserUpdateData + */ + @JsonAnySetter + public UserUpdateData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserUpdateData object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +174,13 @@ public boolean equals(Object o) { UserUpdateData userUpdateData = (UserUpdateData) o; return Objects.equals(this.attributes, userUpdateData.attributes) && Objects.equals(this.id, userUpdateData.id) - && Objects.equals(this.type, userUpdateData.type); + && Objects.equals(this.type, userUpdateData.type) + && Objects.equals(this.additionalProperties, userUpdateData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attributes, id, type); + return Objects.hash(attributes, id, type, additionalProperties); } @Override @@ -139,6 +190,9 @@ public String toString() { sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UserUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/UserUpdateRequest.java index 7309e3cfe04..081b6f9cff6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UserUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/UserUpdateRequest.java @@ -6,11 +6,15 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** Update a user. */ @@ -52,6 +56,52 @@ public void setData(UserUpdateData data) { this.data = data; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UserUpdateRequest + */ + @JsonAnySetter + public UserUpdateRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UserUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -62,12 +112,13 @@ public boolean equals(Object o) { return false; } UserUpdateRequest userUpdateRequest = (UserUpdateRequest) o; - return Objects.equals(this.data, userUpdateRequest.data); + return Objects.equals(this.data, userUpdateRequest.data) + && Objects.equals(this.additionalProperties, userUpdateRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -75,6 +126,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UserUpdateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/UsersResponse.java b/src/main/java/com/datadog/api/client/v2/model/UsersResponse.java index 0c0cea882b2..6b4258e7be5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UsersResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/UsersResponse.java @@ -6,12 +6,16 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Response containing information about multiple users. */ @@ -121,6 +125,52 @@ public void setMeta(ResponseMetaAttributes meta) { this.meta = meta; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return UsersResponse + */ + @JsonAnySetter + public UsersResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this UsersResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -133,12 +183,13 @@ public boolean equals(Object o) { UsersResponse usersResponse = (UsersResponse) o; return Objects.equals(this.data, usersResponse.data) && Objects.equals(this.included, usersResponse.included) - && Objects.equals(this.meta, usersResponse.meta); + && Objects.equals(this.meta, usersResponse.meta) + && Objects.equals(this.additionalProperties, usersResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, included, meta); + return Objects.hash(data, included, meta, additionalProperties); } @Override @@ -148,6 +199,9 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } From 1a8e4881007783351371438ba7df1d1581cc708f Mon Sep 17 00:00:00 2001 From: Sherzod Karimov Date: Thu, 22 Jun 2023 13:04:37 -0400 Subject: [PATCH 4/5] user assertThat to ignore additionalProperties --- .../client/v1/api/AwsIntegrationApiTest.java | 3 ++- .../api/client/v1/api/EventsApiTest.java | 19 +++++++++---------- .../v1/api/LogsPipelinesLifecycleTest.java | 5 +++-- .../v1/EventsApiTest.eventLifecycleTest.json | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java b/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java index 3b47feb9776..5cef34eb32e 100644 --- a/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java @@ -8,6 +8,7 @@ import static com.github.tomakehurst.wiremock.client.WireMock.*; import static org.junit.Assert.*; +import static org.assertj.core.api.Assertions.assertThat; import com.datadog.api.TestUtils; import com.datadog.api.client.ApiException; @@ -338,7 +339,7 @@ public void updateAWSAccountTest() throws ApiException, TestUtils.RetryException // API awsAccount.setAccountSpecificNamespaceRules(new HashMap()); awsAccount.setFilterTags(new ArrayList()); - assertEquals(awsAccount, newAccount); + assertThat(awsAccount).usingRecursiveComparison().ignoringFields("additionalProperties").isEqualTo(newAccount); } @Test diff --git a/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java b/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java index 49c47dc316e..1cadd14b612 100644 --- a/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java @@ -6,8 +6,6 @@ package com.datadog.api.client.v1.api; -import static org.junit.Assert.*; - import com.datadog.api.TestUtils; import com.datadog.api.client.ApiException; import com.datadog.api.client.ApiResponse; @@ -19,6 +17,10 @@ import java.io.IOException; import java.util.*; import java.util.concurrent.atomic.AtomicReference; + +import static org.junit.Assert.*; +import static org.assertj.core.api.Assertions.assertThat; +import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration; import org.junit.BeforeClass; import org.junit.Test; @@ -100,6 +102,8 @@ public void eventLifecycleTest() throws ApiException, TestUtils.RetryException { // Confirm the event is in the list of events returned from the API // Will fail with a retryException if we can't get the event in this timeframe + final RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration(); + recursiveComparisonConfiguration.ignoreFields("additionalProperties"); TestUtils.retry( 10, 20, @@ -116,15 +120,10 @@ public void eventLifecycleTest() throws ApiException, TestUtils.RetryException { .tags(tags) .unaggregated(unaggregated)); events = eventListResponse.getEvents(); - if (!events.isEmpty() && events.contains(fetchedEvent)) { - return true; - } else { - System.out.printf( - "Error: Event %s not in event list: %s", fetchedEvent, eventListResponse); - return false; - } + assertThat(events).usingRecursiveFieldByFieldElementComparator(recursiveComparisonConfiguration).contains(fetchedEvent); + return true; } catch (ApiException e) { - System.out.println(String.format("Error getting list of events: %s", e)); + System.out.println(String.format("Error getting/matching list of events: %s", e)); return false; } }); diff --git a/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java b/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java index 8db5d0b4712..2f07f8657ee 100644 --- a/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java @@ -7,6 +7,7 @@ package com.datadog.api.client.v1.api; import static org.junit.Assert.*; +import static org.assertj.core.api.Assertions.assertThat; import com.datadog.api.client.ApiException; import com.datadog.api.client.v1.model.*; @@ -181,7 +182,7 @@ public void pipelineLifecycleTest() throws ApiException { assertEquals(categoryProcessor, createdPipeline.getProcessors().get(9)); assertEquals(arithmeticProcessor, createdPipeline.getProcessors().get(10)); assertEquals(stringBuilderProcessor, createdPipeline.getProcessors().get(11)); - assertEquals(geoIPParser, createdPipeline.getProcessors().get(12)); + assertThat(geoIPParser).usingRecursiveComparison().ignoringFields("instance.additionalProperties").isEqualTo(createdPipeline.getProcessors().get(12)); assertEquals(lookupProcessor, createdPipeline.getProcessors().get(13)); assertEquals(traceRemapper, createdPipeline.getProcessors().get(14)); assertEquals(pipelineProcessor, createdPipeline.getProcessors().get(15)); @@ -231,7 +232,7 @@ public void pipelineLifecycleTest() throws ApiException { assertEquals(categoryProcessor, updatedPipeline.getProcessors().get(8)); assertEquals(arithmeticProcessor, updatedPipeline.getProcessors().get(9)); assertEquals(stringBuilderProcessor, updatedPipeline.getProcessors().get(10)); - assertEquals(geoIPParser, updatedPipeline.getProcessors().get(11)); + assertThat(geoIPParser).usingRecursiveComparison().ignoringFields("instance.additionalProperties").isEqualTo(updatedPipeline.getProcessors().get(11)); assertEquals(lookupProcessor, updatedPipeline.getProcessors().get(12)); assertEquals(traceRemapper, updatedPipeline.getProcessors().get(13)); diff --git a/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json b/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json index 780f5e8fe60..ee12f10c2cc 100644 --- a/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json +++ b/src/test/resources/cassettes/v1/EventsApiTest.eventLifecycleTest.json @@ -214,6 +214,6 @@ "cookies" : { "DD-PSHARD" : "233" }, - "body" : "{\"events\":[{\"date_happened\":1596011200,\"alert_type\":\"info\",\"title\":\"java-eventLifecycleTest-local-1596011200\",\"url\":\"/event/event?id=5565813470611825502\",\"text\":\"example text\",\"tags\":[\"client:java\",\"test\"],\"device_name\":null,\"priority\":\"normal\",\"host\":null,\"resource\":\"/api/v1/events/5565813470611825502\",\"id\":5565813470611825502}]}" + "body" : "{\"events\":[{\"date_happened\":1596011200,\"alert_type\":\"info\",\"is_aggregate\":false,\"title\":\"java-eventLifecycleTest-local-1596011200\",\"url\":\"/event/event?id=5565813470611825502\",\"text\":\"example text\",\"tags\":[\"client:java\",\"test\"],\"comments\":[],\"device_name\":null,\"priority\":\"normal\",\"source\":\"My Apps\",\"host\":null,\"resource\":\"/api/v1/events/5565813470611825502\",\"id\":5565813470611825502}]}" } }] \ No newline at end of file From 27b4058d8dd68237a7020b828f2dfb56de2e9ba4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 22 Jun 2023 17:08:34 +0000 Subject: [PATCH 5/5] pre-commit fixes --- .../v2/model/CIAppPipelineEventJob.java | 57 +++++- .../v2/model/CIAppPipelineEventPipeline.java | 58 +++++- .../v2/model/CIAppPipelineEventStage.java | 57 +++++- .../v2/model/CIAppPipelineEventStep.java | 57 +++++- .../api/client/v2/model/CIAppUserInfo.java | 165 ------------------ .../client/v1/api/AwsIntegrationApiTest.java | 7 +- .../api/client/v1/api/EventsApiTest.java | 13 +- .../v1/api/LogsPipelinesLifecycleTest.java | 12 +- 8 files changed, 243 insertions(+), 183 deletions(-) delete mode 100644 src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java index 66ada26da35..c7ac539bc99 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -679,6 +681,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventJob + */ + @JsonAnySetter + public CIAppPipelineEventJob putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventJob object is equal to o. */ @Override public boolean equals(Object o) { @@ -707,7 +755,8 @@ public boolean equals(Object o) { && Objects.equals(this.start, ciAppPipelineEventJob.start) && Objects.equals(this.status, ciAppPipelineEventJob.status) && Objects.equals(this.tags, ciAppPipelineEventJob.tags) - && Objects.equals(this.url, ciAppPipelineEventJob.url); + && Objects.equals(this.url, ciAppPipelineEventJob.url) + && Objects.equals(this.additionalProperties, ciAppPipelineEventJob.additionalProperties); } @Override @@ -731,7 +780,8 @@ public int hashCode() { start, status, tags, - url); + url, + additionalProperties); } @Override @@ -757,6 +807,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java index e6476a0302a..471a1332626 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -712,6 +714,52 @@ public void setUrl(String url) { this.url = url; } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventPipeline + */ + @JsonAnySetter + public CIAppPipelineEventPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventPipeline object is equal to o. */ @Override public boolean equals(Object o) { @@ -741,7 +789,9 @@ public boolean equals(Object o) { && Objects.equals(this.status, ciAppPipelineEventPipeline.status) && Objects.equals(this.tags, ciAppPipelineEventPipeline.tags) && Objects.equals(this.uniqueId, ciAppPipelineEventPipeline.uniqueId) - && Objects.equals(this.url, ciAppPipelineEventPipeline.url); + && Objects.equals(this.url, ciAppPipelineEventPipeline.url) + && Objects.equals( + this.additionalProperties, ciAppPipelineEventPipeline.additionalProperties); } @Override @@ -766,7 +816,8 @@ public int hashCode() { status, tags, uniqueId, - url); + url, + additionalProperties); } @Override @@ -793,6 +844,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" uniqueId: ").append(toIndentedString(uniqueId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java index f4913eaf522..8addd158069 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -584,6 +586,52 @@ public void setTags(List tags) { this.tags = JsonNullable.>of(tags); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventStage + */ + @JsonAnySetter + public CIAppPipelineEventStage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventStage object is equal to o. */ @Override public boolean equals(Object o) { @@ -609,7 +657,8 @@ public boolean equals(Object o) { && Objects.equals(this.queueTime, ciAppPipelineEventStage.queueTime) && Objects.equals(this.start, ciAppPipelineEventStage.start) && Objects.equals(this.status, ciAppPipelineEventStage.status) - && Objects.equals(this.tags, ciAppPipelineEventStage.tags); + && Objects.equals(this.tags, ciAppPipelineEventStage.tags) + && Objects.equals(this.additionalProperties, ciAppPipelineEventStage.additionalProperties); } @Override @@ -630,7 +679,8 @@ public int hashCode() { queueTime, start, status, - tags); + tags, + additionalProperties); } @Override @@ -653,6 +703,9 @@ public String toString() { sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java index d2605cc89a1..5559c42bded 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java +++ b/src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java @@ -6,6 +6,8 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; @@ -675,6 +677,52 @@ public void setUrl(String url) { this.url = JsonNullable.of(url); } + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CIAppPipelineEventStep + */ + @JsonAnySetter + public CIAppPipelineEventStep putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + /** Return true if this CIAppPipelineEventStep object is equal to o. */ @Override public boolean equals(Object o) { @@ -703,7 +751,8 @@ public boolean equals(Object o) { && Objects.equals(this.start, ciAppPipelineEventStep.start) && Objects.equals(this.status, ciAppPipelineEventStep.status) && Objects.equals(this.tags, ciAppPipelineEventStep.tags) - && Objects.equals(this.url, ciAppPipelineEventStep.url); + && Objects.equals(this.url, ciAppPipelineEventStep.url) + && Objects.equals(this.additionalProperties, ciAppPipelineEventStep.additionalProperties); } @Override @@ -727,7 +776,8 @@ public int hashCode() { start, status, tags, - url); + url, + additionalProperties); } @Override @@ -753,6 +803,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java b/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java deleted file mode 100644 index ada8d5535f2..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/CIAppUserInfo.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * Used to specify user-related information when the payload does not have Git information. For - * example, if Git information is missing for manually triggered pipelines, this field can be used - * instead. - */ -@JsonPropertyOrder({CIAppUserInfo.JSON_PROPERTY_EMAIL, CIAppUserInfo.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class CIAppUserInfo { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_EMAIL = "email"; - private String email; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public CIAppUserInfo email(String email) { - this.email = email; - return this; - } - - /** - * Email of the user. - * - * @return email - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public CIAppUserInfo name(String name) { - this.name = name; - return this; - } - - /** - * Name of the user. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return CIAppUserInfo - */ - @JsonAnySetter - public CIAppUserInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this CIAppUserInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CIAppUserInfo ciAppUserInfo = (CIAppUserInfo) o; - return Objects.equals(this.email, ciAppUserInfo.email) - && Objects.equals(this.name, ciAppUserInfo.name) - && Objects.equals(this.additionalProperties, ciAppUserInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(email, name, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CIAppUserInfo {\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java b/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java index 5cef34eb32e..9a478966b6a 100644 --- a/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/AwsIntegrationApiTest.java @@ -7,8 +7,8 @@ package com.datadog.api.client.v1.api; import static com.github.tomakehurst.wiremock.client.WireMock.*; -import static org.junit.Assert.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.junit.Assert.*; import com.datadog.api.TestUtils; import com.datadog.api.client.ApiException; @@ -339,7 +339,10 @@ public void updateAWSAccountTest() throws ApiException, TestUtils.RetryException // API awsAccount.setAccountSpecificNamespaceRules(new HashMap()); awsAccount.setFilterTags(new ArrayList()); - assertThat(awsAccount).usingRecursiveComparison().ignoringFields("additionalProperties").isEqualTo(newAccount); + assertThat(awsAccount) + .usingRecursiveComparison() + .ignoringFields("additionalProperties") + .isEqualTo(newAccount); } @Test diff --git a/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java b/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java index 1cadd14b612..ddd5892f2e8 100644 --- a/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/EventsApiTest.java @@ -6,6 +6,9 @@ package com.datadog.api.client.v1.api; +import static org.assertj.core.api.Assertions.assertThat; +import static org.junit.Assert.*; + import com.datadog.api.TestUtils; import com.datadog.api.client.ApiException; import com.datadog.api.client.ApiResponse; @@ -17,9 +20,6 @@ import java.io.IOException; import java.util.*; import java.util.concurrent.atomic.AtomicReference; - -import static org.junit.Assert.*; -import static org.assertj.core.api.Assertions.assertThat; import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration; import org.junit.BeforeClass; import org.junit.Test; @@ -102,7 +102,8 @@ public void eventLifecycleTest() throws ApiException, TestUtils.RetryException { // Confirm the event is in the list of events returned from the API // Will fail with a retryException if we can't get the event in this timeframe - final RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration(); + final RecursiveComparisonConfiguration recursiveComparisonConfiguration = + new RecursiveComparisonConfiguration(); recursiveComparisonConfiguration.ignoreFields("additionalProperties"); TestUtils.retry( 10, @@ -120,7 +121,9 @@ public void eventLifecycleTest() throws ApiException, TestUtils.RetryException { .tags(tags) .unaggregated(unaggregated)); events = eventListResponse.getEvents(); - assertThat(events).usingRecursiveFieldByFieldElementComparator(recursiveComparisonConfiguration).contains(fetchedEvent); + assertThat(events) + .usingRecursiveFieldByFieldElementComparator(recursiveComparisonConfiguration) + .contains(fetchedEvent); return true; } catch (ApiException e) { System.out.println(String.format("Error getting/matching list of events: %s", e)); diff --git a/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java b/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java index 2f07f8657ee..ce534f4f242 100644 --- a/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/LogsPipelinesLifecycleTest.java @@ -6,8 +6,8 @@ package com.datadog.api.client.v1.api; -import static org.junit.Assert.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.junit.Assert.*; import com.datadog.api.client.ApiException; import com.datadog.api.client.v1.model.*; @@ -182,7 +182,10 @@ public void pipelineLifecycleTest() throws ApiException { assertEquals(categoryProcessor, createdPipeline.getProcessors().get(9)); assertEquals(arithmeticProcessor, createdPipeline.getProcessors().get(10)); assertEquals(stringBuilderProcessor, createdPipeline.getProcessors().get(11)); - assertThat(geoIPParser).usingRecursiveComparison().ignoringFields("instance.additionalProperties").isEqualTo(createdPipeline.getProcessors().get(12)); + assertThat(geoIPParser) + .usingRecursiveComparison() + .ignoringFields("instance.additionalProperties") + .isEqualTo(createdPipeline.getProcessors().get(12)); assertEquals(lookupProcessor, createdPipeline.getProcessors().get(13)); assertEquals(traceRemapper, createdPipeline.getProcessors().get(14)); assertEquals(pipelineProcessor, createdPipeline.getProcessors().get(15)); @@ -232,7 +235,10 @@ public void pipelineLifecycleTest() throws ApiException { assertEquals(categoryProcessor, updatedPipeline.getProcessors().get(8)); assertEquals(arithmeticProcessor, updatedPipeline.getProcessors().get(9)); assertEquals(stringBuilderProcessor, updatedPipeline.getProcessors().get(10)); - assertThat(geoIPParser).usingRecursiveComparison().ignoringFields("instance.additionalProperties").isEqualTo(updatedPipeline.getProcessors().get(11)); + assertThat(geoIPParser) + .usingRecursiveComparison() + .ignoringFields("instance.additionalProperties") + .isEqualTo(updatedPipeline.getProcessors().get(11)); assertEquals(lookupProcessor, updatedPipeline.getProcessors().get(12)); assertEquals(traceRemapper, updatedPipeline.getProcessors().get(13));