From 153cca653c8ade4c1dbd81032a50c5fce850eea8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 22 Oct 2024 18:14:17 +0000 Subject: [PATCH] Regenerate client from commit 603ea76a of spec repo --- .apigentools-info | 8 +- .../frozen.json | 1 + .../recording.har | 67 +++++ .../ListFindings_1668290866.ts | 22 ++ features/v2/security_monitoring.feature | 8 + .../datadog-api-client-common/http/http.ts | 38 ++- .../apis/AWSIntegrationApi.ts | 21 +- .../apis/DashboardsApi.ts | 18 +- .../apis/DowntimesApi.ts | 6 +- .../datadog-api-client-v1/apis/EventsApi.ts | 24 +- .../datadog-api-client-v1/apis/HostsApi.ts | 27 +- .../datadog-api-client-v1/apis/LogsApi.ts | 3 +- .../datadog-api-client-v1/apis/MetricsApi.ts | 21 +- .../datadog-api-client-v1/apis/MonitorsApi.ts | 60 ++-- .../apis/NotebooksApi.ts | 30 +- .../ServiceLevelObjectiveCorrectionsApi.ts | 6 +- .../apis/ServiceLevelObjectivesApi.ts | 51 ++-- .../apis/SnapshotsApi.ts | 24 +- .../apis/SyntheticsApi.ts | 24 +- .../datadog-api-client-v1/apis/TagsApi.ts | 15 +- .../apis/UsageMeteringApi.ts | 273 ++++++++++++------ .../apis/APIManagementApi.ts | 9 +- .../datadog-api-client-v2/apis/AuditApi.ts | 18 +- .../apis/AuthNMappingsApi.ts | 19 +- .../apis/CIVisibilityPipelinesApi.ts | 18 +- .../apis/CIVisibilityTestsApi.ts | 18 +- .../apis/CaseManagementApi.ts | 15 +- .../apis/CloudCostManagementApi.ts | 3 +- .../apis/ContainerImagesApi.ts | 15 +- .../apis/ContainersApi.ts | 15 +- .../apis/DowntimesApi.ts | 21 +- .../datadog-api-client-v2/apis/EventsApi.ts | 18 +- .../apis/IncidentServicesApi.ts | 15 +- .../apis/IncidentTeamsApi.ts | 15 +- .../apis/IncidentsApi.ts | 39 ++- .../apis/KeyManagementApi.ts | 85 ++++-- .../datadog-api-client-v2/apis/LogsApi.ts | 27 +- .../datadog-api-client-v2/apis/MetricsApi.ts | 39 ++- .../apis/MicrosoftTeamsIntegrationApi.ts | 6 +- .../apis/NetworkDeviceMonitoringApi.ts | 15 +- .../apis/PowerpackApi.ts | 6 +- .../apis/ProcessesApi.ts | 18 +- packages/datadog-api-client-v2/apis/RUMApi.ts | 18 +- .../datadog-api-client-v2/apis/RolesApi.ts | 27 +- .../apis/SecurityMonitoringApi.ts | 66 +++-- .../apis/ServiceAccountsApi.ts | 18 +- .../apis/ServiceDefinitionApi.ts | 12 +- .../apis/ServiceScorecardsApi.ts | 60 ++-- .../apis/SoftwareCatalogApi.ts | 30 +- .../datadog-api-client-v2/apis/SpansApi.ts | 18 +- .../datadog-api-client-v2/apis/TeamsApi.ts | 33 ++- .../apis/UsageMeteringApi.ts | 111 ++++--- .../datadog-api-client-v2/apis/UsersApi.ts | 18 +- .../apis/WorkflowAutomationApi.ts | 6 +- 54 files changed, 1104 insertions(+), 494 deletions(-) create mode 100644 cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/frozen.json create mode 100644 cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/recording.har create mode 100644 examples/v2/security-monitoring/ListFindings_1668290866.ts diff --git a/.apigentools-info b/.apigentools-info index f6196ebeb0f..eea6db44572 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-21 20:59:46.944958", - "spec_repo_commit": "9ac9609b" + "regenerated": "2024-10-22 18:12:46.451600", + "spec_repo_commit": "603ea76a" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-21 20:59:46.962979", - "spec_repo_commit": "9ac9609b" + "regenerated": "2024-10-22 18:12:46.471165", + "spec_repo_commit": "603ea76a" } } } \ No newline at end of file diff --git a/cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/frozen.json b/cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/frozen.json new file mode 100644 index 00000000000..b45edc6ee8e --- /dev/null +++ b/cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/frozen.json @@ -0,0 +1 @@ +"2024-10-21T20:05:58.636Z" diff --git a/cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/recording.har b/cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/recording.har new file mode 100644 index 00000000000..0973798b086 --- /dev/null +++ b/cassettes/v2/Security-Monitoring_1187227211/List-findings-with-detection_type-query-param-returns-OK-response_3927018946/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Security Monitoring/List findings with detection_type query param returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "5f6fcc703704b0462fc33728fd9b12b2", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 611, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "filter", + "value": { + "vulnerability_type": [ + "misconfiguration", + "attack_path" + ] + } + } + ], + "url": "https://api.datadoghq.com/api/v2/posture_management/findings?filter%5Bvulnerability_type%5D=misconfiguration&filter%5Bvulnerability_type%5D=attack_path" + }, + "response": { + "bodySize": 89, + "content": { + "mimeType": "application/vnd.api+json", + "size": 89, + "text": "{\"data\":[],\"meta\":{\"page\":{\"total_filtered_count\":0},\"snapshot_timestamp\":1729541158755}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 524, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2024-10-21T20:05:58.644Z", + "time": 141 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/examples/v2/security-monitoring/ListFindings_1668290866.ts b/examples/v2/security-monitoring/ListFindings_1668290866.ts new file mode 100644 index 00000000000..fbf9444f1af --- /dev/null +++ b/examples/v2/security-monitoring/ListFindings_1668290866.ts @@ -0,0 +1,22 @@ +/** + * List findings with detection_type query param returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.listFindings"] = true; +const apiInstance = new v2.SecurityMonitoringApi(configuration); + +const params: v2.SecurityMonitoringApiListFindingsRequest = { + filterVulnerabilityType: ["misconfiguration", "attack_path"], +}; + +apiInstance + .listFindings(params) + .then((data: v2.ListFindingsResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/v2/security_monitoring.feature b/features/v2/security_monitoring.feature index 27e45dd3c2b..515f65f8283 100644 --- a/features/v2/security_monitoring.feature +++ b/features/v2/security_monitoring.feature @@ -485,6 +485,14 @@ Feature: Security Monitoring When the request with pagination is sent Then the response status is 200 OK + @team:DataDog/cloud-security-posture-management + Scenario: List findings with detection_type query param returns "OK" response + Given operation "ListFindings" enabled + And new "ListFindings" request + And request contains "filter[vulnerability_type]" parameter with value ["misconfiguration", "attack_path"] + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/k9-cloud-security-platform Scenario: List rules returns "Bad Request" response Given new "ListSecurityMonitoringRules" request diff --git a/packages/datadog-api-client-common/http/http.ts b/packages/datadog-api-client-common/http/http.ts index e1110a8fa83..950c42b1919 100644 --- a/packages/datadog-api-client-common/http/http.ts +++ b/packages/datadog-api-client-common/http/http.ts @@ -1,8 +1,8 @@ import { userAgent } from "../../../userAgent"; // TODO: evaluate if we can easily get rid of this library import FormData from "form-data"; -import URLParse from "url-parse"; import { isBrowser } from "../util"; +import { COLLECTION_FORMATS } from "../baseapi"; /** * Interface for aborting fetch requests. @@ -88,7 +88,7 @@ export interface HttpConfiguration { export class RequestContext { private headers: { [key: string]: string } = {}; private body: RequestBody = undefined; - private url: URLParse; + private url: URL; private httpConfig: HttpConfiguration = {}; /** @@ -101,7 +101,7 @@ export class RequestContext { url: string, private httpMethod: HttpMethod ) { - this.url = new URLParse(url, true); + this.url = new URL(url); if (!isBrowser) { this.headers = { "user-agent": userAgent }; } @@ -120,7 +120,7 @@ export class RequestContext { * */ public setUrl(url: string): void { - this.url = new URLParse(url, true); + this.url = new URL(url); } /** @@ -148,10 +148,32 @@ export class RequestContext { return this.body; } - public setQueryParam(name: string, value: string): void { - const queryObj = this.url.query; - queryObj[name] = value; - this.url.set("query", queryObj); + /** + * Sets query parameters on the request URL + * + * @param name the name of the query parameter + * @param value the value of the query parameter + * @param collectionFormat the format of the query parameter See https://spec.openapis.org/oas/v3.0.2#style-values + */ + public setQueryParam( + name: string, + value: string | string[], + collectionFormat: string + ): void { + if (collectionFormat === "multi") { + for (const val of value) { + this.url.searchParams.append(name, val); + } + return; + } + + if (Array.isArray(value)) { + const delimiter = + COLLECTION_FORMATS[collectionFormat as keyof typeof COLLECTION_FORMATS]; + value = value.join(delimiter); + } + + return this.url.searchParams.set(name, value); } /** diff --git a/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts b/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts index 9e70058b48d..1946fa71683 100644 --- a/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts +++ b/packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts @@ -364,19 +364,22 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { if (accountId !== undefined) { requestContext.setQueryParam( "account_id", - ObjectSerializer.serialize(accountId, "string", "") + ObjectSerializer.serialize(accountId, "string", ""), + "" ); } if (roleName !== undefined) { requestContext.setQueryParam( "role_name", - ObjectSerializer.serialize(roleName, "string", "") + ObjectSerializer.serialize(roleName, "string", ""), + "" ); } if (accessKeyId !== undefined) { requestContext.setQueryParam( "access_key_id", - ObjectSerializer.serialize(accessKeyId, "string", "") + ObjectSerializer.serialize(accessKeyId, "string", ""), + "" ); } @@ -438,7 +441,8 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { if (accountId !== undefined) { requestContext.setQueryParam( "account_id", - ObjectSerializer.serialize(accountId, "string", "") + ObjectSerializer.serialize(accountId, "string", ""), + "" ); } @@ -479,19 +483,22 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { if (accountId !== undefined) { requestContext.setQueryParam( "account_id", - ObjectSerializer.serialize(accountId, "string", "") + ObjectSerializer.serialize(accountId, "string", ""), + "" ); } if (roleName !== undefined) { requestContext.setQueryParam( "role_name", - ObjectSerializer.serialize(roleName, "string", "") + ObjectSerializer.serialize(roleName, "string", ""), + "" ); } if (accessKeyId !== undefined) { requestContext.setQueryParam( "access_key_id", - ObjectSerializer.serialize(accessKeyId, "string", "") + ObjectSerializer.serialize(accessKeyId, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/DashboardsApi.ts b/packages/datadog-api-client-v1/apis/DashboardsApi.ts index 4ab3a3366e8..4cc63f1b2e5 100644 --- a/packages/datadog-api-client-v1/apis/DashboardsApi.ts +++ b/packages/datadog-api-client-v1/apis/DashboardsApi.ts @@ -372,13 +372,15 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page_size", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page_number", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } @@ -415,25 +417,29 @@ export class DashboardsApiRequestFactory extends BaseAPIRequestFactory { if (filterShared !== undefined) { requestContext.setQueryParam( "filter[shared]", - ObjectSerializer.serialize(filterShared, "boolean", "") + ObjectSerializer.serialize(filterShared, "boolean", ""), + "" ); } if (filterDeleted !== undefined) { requestContext.setQueryParam( "filter[deleted]", - ObjectSerializer.serialize(filterDeleted, "boolean", "") + ObjectSerializer.serialize(filterDeleted, "boolean", ""), + "" ); } if (count !== undefined) { requestContext.setQueryParam( "count", - ObjectSerializer.serialize(count, "number", "int64") + ObjectSerializer.serialize(count, "number", "int64"), + "" ); } if (start !== undefined) { requestContext.setQueryParam( "start", - ObjectSerializer.serialize(start, "number", "int64") + ObjectSerializer.serialize(start, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/DowntimesApi.ts b/packages/datadog-api-client-v1/apis/DowntimesApi.ts index 1eff354a839..33256fb7d5a 100644 --- a/packages/datadog-api-client-v1/apis/DowntimesApi.ts +++ b/packages/datadog-api-client-v1/apis/DowntimesApi.ts @@ -195,13 +195,15 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { if (currentOnly !== undefined) { requestContext.setQueryParam( "current_only", - ObjectSerializer.serialize(currentOnly, "boolean", "") + ObjectSerializer.serialize(currentOnly, "boolean", ""), + "" ); } if (withCreator !== undefined) { requestContext.setQueryParam( "with_creator", - ObjectSerializer.serialize(withCreator, "boolean", "") + ObjectSerializer.serialize(withCreator, "boolean", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/EventsApi.ts b/packages/datadog-api-client-v1/apis/EventsApi.ts index a4250648baa..f0a00430a04 100644 --- a/packages/datadog-api-client-v1/apis/EventsApi.ts +++ b/packages/datadog-api-client-v1/apis/EventsApi.ts @@ -133,49 +133,57 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory { if (start !== undefined) { requestContext.setQueryParam( "start", - ObjectSerializer.serialize(start, "number", "int64") + ObjectSerializer.serialize(start, "number", "int64"), + "" ); } if (end !== undefined) { requestContext.setQueryParam( "end", - ObjectSerializer.serialize(end, "number", "int64") + ObjectSerializer.serialize(end, "number", "int64"), + "" ); } if (priority !== undefined) { requestContext.setQueryParam( "priority", - ObjectSerializer.serialize(priority, "EventPriority", "") + ObjectSerializer.serialize(priority, "EventPriority", ""), + "" ); } if (sources !== undefined) { requestContext.setQueryParam( "sources", - ObjectSerializer.serialize(sources, "string", "") + ObjectSerializer.serialize(sources, "string", ""), + "" ); } if (tags !== undefined) { requestContext.setQueryParam( "tags", - ObjectSerializer.serialize(tags, "string", "") + ObjectSerializer.serialize(tags, "string", ""), + "" ); } if (unaggregated !== undefined) { requestContext.setQueryParam( "unaggregated", - ObjectSerializer.serialize(unaggregated, "boolean", "") + ObjectSerializer.serialize(unaggregated, "boolean", ""), + "" ); } if (excludeAggregate !== undefined) { requestContext.setQueryParam( "exclude_aggregate", - ObjectSerializer.serialize(excludeAggregate, "boolean", "") + ObjectSerializer.serialize(excludeAggregate, "boolean", ""), + "" ); } if (page !== undefined) { requestContext.setQueryParam( "page", - ObjectSerializer.serialize(page, "number", "int32") + ObjectSerializer.serialize(page, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/HostsApi.ts b/packages/datadog-api-client-v1/apis/HostsApi.ts index 95052c4596b..fa932576be9 100644 --- a/packages/datadog-api-client-v1/apis/HostsApi.ts +++ b/packages/datadog-api-client-v1/apis/HostsApi.ts @@ -43,7 +43,8 @@ export class HostsApiRequestFactory extends BaseAPIRequestFactory { if (from !== undefined) { requestContext.setQueryParam( "from", - ObjectSerializer.serialize(from, "number", "int64") + ObjectSerializer.serialize(from, "number", "int64"), + "" ); } @@ -84,49 +85,57 @@ export class HostsApiRequestFactory extends BaseAPIRequestFactory { if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (sortField !== undefined) { requestContext.setQueryParam( "sort_field", - ObjectSerializer.serialize(sortField, "string", "") + ObjectSerializer.serialize(sortField, "string", ""), + "" ); } if (sortDir !== undefined) { requestContext.setQueryParam( "sort_dir", - ObjectSerializer.serialize(sortDir, "string", "") + ObjectSerializer.serialize(sortDir, "string", ""), + "" ); } if (start !== undefined) { requestContext.setQueryParam( "start", - ObjectSerializer.serialize(start, "number", "int64") + ObjectSerializer.serialize(start, "number", "int64"), + "" ); } if (count !== undefined) { requestContext.setQueryParam( "count", - ObjectSerializer.serialize(count, "number", "int64") + ObjectSerializer.serialize(count, "number", "int64"), + "" ); } if (from !== undefined) { requestContext.setQueryParam( "from", - ObjectSerializer.serialize(from, "number", "int64") + ObjectSerializer.serialize(from, "number", "int64"), + "" ); } if (includeMutedHostsData !== undefined) { requestContext.setQueryParam( "include_muted_hosts_data", - ObjectSerializer.serialize(includeMutedHostsData, "boolean", "") + ObjectSerializer.serialize(includeMutedHostsData, "boolean", ""), + "" ); } if (includeHostsMetadata !== undefined) { requestContext.setQueryParam( "include_hosts_metadata", - ObjectSerializer.serialize(includeHostsMetadata, "boolean", "") + ObjectSerializer.serialize(includeHostsMetadata, "boolean", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/LogsApi.ts b/packages/datadog-api-client-v1/apis/LogsApi.ts index f223583dd1f..40c9e95df92 100644 --- a/packages/datadog-api-client-v1/apis/LogsApi.ts +++ b/packages/datadog-api-client-v1/apis/LogsApi.ts @@ -93,7 +93,8 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { if (ddtags !== undefined) { requestContext.setQueryParam( "ddtags", - ObjectSerializer.serialize(ddtags, "string", "") + ObjectSerializer.serialize(ddtags, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/MetricsApi.ts b/packages/datadog-api-client-v1/apis/MetricsApi.ts index 357f07dfe7a..7be03eb8c6d 100644 --- a/packages/datadog-api-client-v1/apis/MetricsApi.ts +++ b/packages/datadog-api-client-v1/apis/MetricsApi.ts @@ -89,19 +89,22 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { if (from !== undefined) { requestContext.setQueryParam( "from", - ObjectSerializer.serialize(from, "number", "int64") + ObjectSerializer.serialize(from, "number", "int64"), + "" ); } if (host !== undefined) { requestContext.setQueryParam( "host", - ObjectSerializer.serialize(host, "string", "") + ObjectSerializer.serialize(host, "string", ""), + "" ); } if (tagFilter !== undefined) { requestContext.setQueryParam( "tag_filter", - ObjectSerializer.serialize(tagFilter, "string", "") + ObjectSerializer.serialize(tagFilter, "string", ""), + "" ); } @@ -140,7 +143,8 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { if (q !== undefined) { requestContext.setQueryParam( "q", - ObjectSerializer.serialize(q, "string", "") + ObjectSerializer.serialize(q, "string", ""), + "" ); } @@ -191,19 +195,22 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { if (from !== undefined) { requestContext.setQueryParam( "from", - ObjectSerializer.serialize(from, "number", "int64") + ObjectSerializer.serialize(from, "number", "int64"), + "" ); } if (to !== undefined) { requestContext.setQueryParam( "to", - ObjectSerializer.serialize(to, "number", "int64") + ObjectSerializer.serialize(to, "number", "int64"), + "" ); } if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/MonitorsApi.ts b/packages/datadog-api-client-v1/apis/MonitorsApi.ts index fb5afdd6948..8c30908b90e 100644 --- a/packages/datadog-api-client-v1/apis/MonitorsApi.ts +++ b/packages/datadog-api-client-v1/apis/MonitorsApi.ts @@ -50,7 +50,8 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { if (monitorIds !== undefined) { requestContext.setQueryParam( "monitor_ids", - ObjectSerializer.serialize(monitorIds, "Array", "int64") + ObjectSerializer.serialize(monitorIds, "Array", "int64"), + "csv" ); } @@ -135,7 +136,8 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { if (force !== undefined) { requestContext.setQueryParam( "force", - ObjectSerializer.serialize(force, "string", "") + ObjectSerializer.serialize(force, "string", ""), + "" ); } @@ -179,13 +181,15 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { if (groupStates !== undefined) { requestContext.setQueryParam( "group_states", - ObjectSerializer.serialize(groupStates, "string", "") + ObjectSerializer.serialize(groupStates, "string", ""), + "" ); } if (withDowntimes !== undefined) { requestContext.setQueryParam( "with_downtimes", - ObjectSerializer.serialize(withDowntimes, "boolean", "") + ObjectSerializer.serialize(withDowntimes, "boolean", ""), + "" ); } @@ -226,49 +230,57 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { if (groupStates !== undefined) { requestContext.setQueryParam( "group_states", - ObjectSerializer.serialize(groupStates, "string", "") + ObjectSerializer.serialize(groupStates, "string", ""), + "" ); } if (name !== undefined) { requestContext.setQueryParam( "name", - ObjectSerializer.serialize(name, "string", "") + ObjectSerializer.serialize(name, "string", ""), + "" ); } if (tags !== undefined) { requestContext.setQueryParam( "tags", - ObjectSerializer.serialize(tags, "string", "") + ObjectSerializer.serialize(tags, "string", ""), + "" ); } if (monitorTags !== undefined) { requestContext.setQueryParam( "monitor_tags", - ObjectSerializer.serialize(monitorTags, "string", "") + ObjectSerializer.serialize(monitorTags, "string", ""), + "" ); } if (withDowntimes !== undefined) { requestContext.setQueryParam( "with_downtimes", - ObjectSerializer.serialize(withDowntimes, "boolean", "") + ObjectSerializer.serialize(withDowntimes, "boolean", ""), + "" ); } if (idOffset !== undefined) { requestContext.setQueryParam( "id_offset", - ObjectSerializer.serialize(idOffset, "number", "int64") + ObjectSerializer.serialize(idOffset, "number", "int64"), + "" ); } if (page !== undefined) { requestContext.setQueryParam( "page", - ObjectSerializer.serialize(page, "number", "int64") + ObjectSerializer.serialize(page, "number", "int64"), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page_size", - ObjectSerializer.serialize(pageSize, "number", "int32") + ObjectSerializer.serialize(pageSize, "number", "int32"), + "" ); } @@ -305,25 +317,29 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (page !== undefined) { requestContext.setQueryParam( "page", - ObjectSerializer.serialize(page, "number", "int64") + ObjectSerializer.serialize(page, "number", "int64"), + "" ); } if (perPage !== undefined) { requestContext.setQueryParam( "per_page", - ObjectSerializer.serialize(perPage, "number", "int64") + ObjectSerializer.serialize(perPage, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } @@ -360,25 +376,29 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory { if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (page !== undefined) { requestContext.setQueryParam( "page", - ObjectSerializer.serialize(page, "number", "int64") + ObjectSerializer.serialize(page, "number", "int64"), + "" ); } if (perPage !== undefined) { requestContext.setQueryParam( "per_page", - ObjectSerializer.serialize(perPage, "number", "int64") + ObjectSerializer.serialize(perPage, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/NotebooksApi.ts b/packages/datadog-api-client-v1/apis/NotebooksApi.ts index dfa7d465aad..f2f077af7d3 100644 --- a/packages/datadog-api-client-v1/apis/NotebooksApi.ts +++ b/packages/datadog-api-client-v1/apis/NotebooksApi.ts @@ -160,61 +160,71 @@ export class NotebooksApiRequestFactory extends BaseAPIRequestFactory { if (authorHandle !== undefined) { requestContext.setQueryParam( "author_handle", - ObjectSerializer.serialize(authorHandle, "string", "") + ObjectSerializer.serialize(authorHandle, "string", ""), + "" ); } if (excludeAuthorHandle !== undefined) { requestContext.setQueryParam( "exclude_author_handle", - ObjectSerializer.serialize(excludeAuthorHandle, "string", "") + ObjectSerializer.serialize(excludeAuthorHandle, "string", ""), + "" ); } if (start !== undefined) { requestContext.setQueryParam( "start", - ObjectSerializer.serialize(start, "number", "int64") + ObjectSerializer.serialize(start, "number", "int64"), + "" ); } if (count !== undefined) { requestContext.setQueryParam( "count", - ObjectSerializer.serialize(count, "number", "int64") + ObjectSerializer.serialize(count, "number", "int64"), + "" ); } if (sortField !== undefined) { requestContext.setQueryParam( "sort_field", - ObjectSerializer.serialize(sortField, "string", "") + ObjectSerializer.serialize(sortField, "string", ""), + "" ); } if (sortDir !== undefined) { requestContext.setQueryParam( "sort_dir", - ObjectSerializer.serialize(sortDir, "string", "") + ObjectSerializer.serialize(sortDir, "string", ""), + "" ); } if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (includeCells !== undefined) { requestContext.setQueryParam( "include_cells", - ObjectSerializer.serialize(includeCells, "boolean", "") + ObjectSerializer.serialize(includeCells, "boolean", ""), + "" ); } if (isTemplate !== undefined) { requestContext.setQueryParam( "is_template", - ObjectSerializer.serialize(isTemplate, "boolean", "") + ObjectSerializer.serialize(isTemplate, "boolean", ""), + "" ); } if (type !== undefined) { requestContext.setQueryParam( "type", - ObjectSerializer.serialize(type, "string", "") + ObjectSerializer.serialize(type, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts b/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts index c3753d0e455..0147adf93f9 100644 --- a/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts +++ b/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.ts @@ -153,13 +153,15 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe if (offset !== undefined) { requestContext.setQueryParam( "offset", - ObjectSerializer.serialize(offset, "number", "int64") + ObjectSerializer.serialize(offset, "number", "int64"), + "" ); } if (limit !== undefined) { requestContext.setQueryParam( "limit", - ObjectSerializer.serialize(limit, "number", "int64") + ObjectSerializer.serialize(limit, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts b/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts index bd24af4099d..704b45817a8 100644 --- a/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts +++ b/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts @@ -55,7 +55,8 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto if (ids !== undefined) { requestContext.setQueryParam( "ids", - ObjectSerializer.serialize(ids, "string", "") + ObjectSerializer.serialize(ids, "string", ""), + "" ); } @@ -140,7 +141,8 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto if (force !== undefined) { requestContext.setQueryParam( "force", - ObjectSerializer.serialize(force, "string", "") + ObjectSerializer.serialize(force, "string", ""), + "" ); } @@ -229,7 +231,8 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto if (withConfiguredAlertIds !== undefined) { requestContext.setQueryParam( "with_configured_alert_ids", - ObjectSerializer.serialize(withConfiguredAlertIds, "boolean", "") + ObjectSerializer.serialize(withConfiguredAlertIds, "boolean", ""), + "" ); } @@ -319,25 +322,29 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto if (fromTs !== undefined) { requestContext.setQueryParam( "from_ts", - ObjectSerializer.serialize(fromTs, "number", "int64") + ObjectSerializer.serialize(fromTs, "number", "int64"), + "" ); } if (toTs !== undefined) { requestContext.setQueryParam( "to_ts", - ObjectSerializer.serialize(toTs, "number", "int64") + ObjectSerializer.serialize(toTs, "number", "int64"), + "" ); } if (target !== undefined) { requestContext.setQueryParam( "target", - ObjectSerializer.serialize(target, "number", "double") + ObjectSerializer.serialize(target, "number", "double"), + "" ); } if (applyCorrection !== undefined) { requestContext.setQueryParam( "apply_correction", - ObjectSerializer.serialize(applyCorrection, "boolean", "") + ObjectSerializer.serialize(applyCorrection, "boolean", ""), + "" ); } @@ -376,37 +383,43 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto if (ids !== undefined) { requestContext.setQueryParam( "ids", - ObjectSerializer.serialize(ids, "string", "") + ObjectSerializer.serialize(ids, "string", ""), + "" ); } if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (tagsQuery !== undefined) { requestContext.setQueryParam( "tags_query", - ObjectSerializer.serialize(tagsQuery, "string", "") + ObjectSerializer.serialize(tagsQuery, "string", ""), + "" ); } if (metricsQuery !== undefined) { requestContext.setQueryParam( "metrics_query", - ObjectSerializer.serialize(metricsQuery, "string", "") + ObjectSerializer.serialize(metricsQuery, "string", ""), + "" ); } if (limit !== undefined) { requestContext.setQueryParam( "limit", - ObjectSerializer.serialize(limit, "number", "int64") + ObjectSerializer.serialize(limit, "number", "int64"), + "" ); } if (offset !== undefined) { requestContext.setQueryParam( "offset", - ObjectSerializer.serialize(offset, "number", "int64") + ObjectSerializer.serialize(offset, "number", "int64"), + "" ); } @@ -443,25 +456,29 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (includeFacets !== undefined) { requestContext.setQueryParam( "include_facets", - ObjectSerializer.serialize(includeFacets, "boolean", "") + ObjectSerializer.serialize(includeFacets, "boolean", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/SnapshotsApi.ts b/packages/datadog-api-client-v1/apis/SnapshotsApi.ts index 89cfdf48974..75f7d648142 100644 --- a/packages/datadog-api-client-v1/apis/SnapshotsApi.ts +++ b/packages/datadog-api-client-v1/apis/SnapshotsApi.ts @@ -57,49 +57,57 @@ export class SnapshotsApiRequestFactory extends BaseAPIRequestFactory { if (metricQuery !== undefined) { requestContext.setQueryParam( "metric_query", - ObjectSerializer.serialize(metricQuery, "string", "") + ObjectSerializer.serialize(metricQuery, "string", ""), + "" ); } if (start !== undefined) { requestContext.setQueryParam( "start", - ObjectSerializer.serialize(start, "number", "int64") + ObjectSerializer.serialize(start, "number", "int64"), + "" ); } if (end !== undefined) { requestContext.setQueryParam( "end", - ObjectSerializer.serialize(end, "number", "int64") + ObjectSerializer.serialize(end, "number", "int64"), + "" ); } if (eventQuery !== undefined) { requestContext.setQueryParam( "event_query", - ObjectSerializer.serialize(eventQuery, "string", "") + ObjectSerializer.serialize(eventQuery, "string", ""), + "" ); } if (graphDef !== undefined) { requestContext.setQueryParam( "graph_def", - ObjectSerializer.serialize(graphDef, "string", "") + ObjectSerializer.serialize(graphDef, "string", ""), + "" ); } if (title !== undefined) { requestContext.setQueryParam( "title", - ObjectSerializer.serialize(title, "string", "") + ObjectSerializer.serialize(title, "string", ""), + "" ); } if (height !== undefined) { requestContext.setQueryParam( "height", - ObjectSerializer.serialize(height, "number", "int64") + ObjectSerializer.serialize(height, "number", "int64"), + "" ); } if (width !== undefined) { requestContext.setQueryParam( "width", - ObjectSerializer.serialize(width, "number", "int64") + ObjectSerializer.serialize(width, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/SyntheticsApi.ts b/packages/datadog-api-client-v1/apis/SyntheticsApi.ts index 9a5cbc80aa9..b9a884d90fc 100644 --- a/packages/datadog-api-client-v1/apis/SyntheticsApi.ts +++ b/packages/datadog-api-client-v1/apis/SyntheticsApi.ts @@ -523,19 +523,22 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { if (fromTs !== undefined) { requestContext.setQueryParam( "from_ts", - ObjectSerializer.serialize(fromTs, "number", "int64") + ObjectSerializer.serialize(fromTs, "number", "int64"), + "" ); } if (toTs !== undefined) { requestContext.setQueryParam( "to_ts", - ObjectSerializer.serialize(toTs, "number", "int64") + ObjectSerializer.serialize(toTs, "number", "int64"), + "" ); } if (probeDc !== undefined) { requestContext.setQueryParam( "probe_dc", - ObjectSerializer.serialize(probeDc, "Array", "") + ObjectSerializer.serialize(probeDc, "Array", ""), + "multi" ); } @@ -655,19 +658,22 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { if (fromTs !== undefined) { requestContext.setQueryParam( "from_ts", - ObjectSerializer.serialize(fromTs, "number", "int64") + ObjectSerializer.serialize(fromTs, "number", "int64"), + "" ); } if (toTs !== undefined) { requestContext.setQueryParam( "to_ts", - ObjectSerializer.serialize(toTs, "number", "int64") + ObjectSerializer.serialize(toTs, "number", "int64"), + "" ); } if (probeDc !== undefined) { requestContext.setQueryParam( "probe_dc", - ObjectSerializer.serialize(probeDc, "Array", "") + ObjectSerializer.serialize(probeDc, "Array", ""), + "multi" ); } @@ -987,13 +993,15 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page_size", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page_number", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/TagsApi.ts b/packages/datadog-api-client-v1/apis/TagsApi.ts index 1e3e8e39398..9d79907646a 100644 --- a/packages/datadog-api-client-v1/apis/TagsApi.ts +++ b/packages/datadog-api-client-v1/apis/TagsApi.ts @@ -56,7 +56,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { if (source !== undefined) { requestContext.setQueryParam( "source", - ObjectSerializer.serialize(source, "string", "") + ObjectSerializer.serialize(source, "string", ""), + "" ); } @@ -109,7 +110,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { if (source !== undefined) { requestContext.setQueryParam( "source", - ObjectSerializer.serialize(source, "string", "") + ObjectSerializer.serialize(source, "string", ""), + "" ); } @@ -151,7 +153,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { if (source !== undefined) { requestContext.setQueryParam( "source", - ObjectSerializer.serialize(source, "string", "") + ObjectSerializer.serialize(source, "string", ""), + "" ); } @@ -184,7 +187,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { if (source !== undefined) { requestContext.setQueryParam( "source", - ObjectSerializer.serialize(source, "string", "") + ObjectSerializer.serialize(source, "string", ""), + "" ); } @@ -233,7 +237,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { if (source !== undefined) { requestContext.setQueryParam( "source", - ObjectSerializer.serialize(source, "string", "") + ObjectSerializer.serialize(source, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts b/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts index 58ac7b85b38..1a8901ec148 100644 --- a/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts +++ b/packages/datadog-api-client-v1/apis/UsageMeteringApi.ts @@ -84,25 +84,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sortDir !== undefined) { requestContext.setQueryParam( "sort_dir", - ObjectSerializer.serialize(sortDir, "UsageSortDirection", "") + ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "UsageSort", "") + ObjectSerializer.serialize(sort, "UsageSort", ""), + "" ); } @@ -153,13 +157,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } if (usageType !== undefined) { @@ -169,25 +175,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { usageType, "HourlyUsageAttributionUsageType", "" - ) + ), + "" ); } if (nextRecordId !== undefined) { requestContext.setQueryParam( "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", "") + ObjectSerializer.serialize(nextRecordId, "string", ""), + "" ); } if (tagBreakdownKeys !== undefined) { requestContext.setQueryParam( "tag_breakdown_keys", - ObjectSerializer.serialize(tagBreakdownKeys, "string", "") + ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), + "" ); } if (includeDescendants !== undefined) { requestContext.setQueryParam( "include_descendants", - ObjectSerializer.serialize(includeDescendants, "boolean", "") + ObjectSerializer.serialize(includeDescendants, "boolean", ""), + "" ); } @@ -230,13 +240,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -279,13 +291,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -325,25 +339,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sortDir !== undefined) { requestContext.setQueryParam( "sort_dir", - ObjectSerializer.serialize(sortDir, "UsageSortDirection", "") + ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "UsageSort", "") + ObjectSerializer.serialize(sort, "UsageSort", ""), + "" ); } @@ -396,13 +414,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startMonth !== undefined) { requestContext.setQueryParam( "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time") + ObjectSerializer.serialize(startMonth, "Date", "date-time"), + "" ); } if (endMonth !== undefined) { requestContext.setQueryParam( "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time") + ObjectSerializer.serialize(endMonth, "Date", "date-time"), + "" ); } if (fields !== undefined) { @@ -412,13 +432,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { fields, "MonthlyUsageAttributionSupportedMetrics", "" - ) + ), + "" ); } if (sortDirection !== undefined) { requestContext.setQueryParam( "sort_direction", - ObjectSerializer.serialize(sortDirection, "UsageSortDirection", "") + ObjectSerializer.serialize(sortDirection, "UsageSortDirection", ""), + "" ); } if (sortName !== undefined) { @@ -428,25 +450,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { sortName, "MonthlyUsageAttributionSupportedMetrics", "" - ) + ), + "" ); } if (tagBreakdownKeys !== undefined) { requestContext.setQueryParam( "tag_breakdown_keys", - ObjectSerializer.serialize(tagBreakdownKeys, "string", "") + ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), + "" ); } if (nextRecordId !== undefined) { requestContext.setQueryParam( "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", "") + ObjectSerializer.serialize(nextRecordId, "string", ""), + "" ); } if (includeDescendants !== undefined) { requestContext.setQueryParam( "include_descendants", - ObjectSerializer.serialize(includeDescendants, "boolean", "") + ObjectSerializer.serialize(includeDescendants, "boolean", ""), + "" ); } @@ -561,13 +587,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -610,13 +638,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -654,13 +684,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (month !== undefined) { requestContext.setQueryParam( "month", - ObjectSerializer.serialize(month, "Date", "date-time") + ObjectSerializer.serialize(month, "Date", "date-time"), + "" ); } if (includeConnectedAccounts !== undefined) { requestContext.setQueryParam( "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", "") + ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), + "" ); } @@ -703,13 +735,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -755,13 +789,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -804,13 +840,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -853,13 +891,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -902,13 +942,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -951,13 +993,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1000,13 +1044,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1049,13 +1095,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1098,13 +1146,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1147,13 +1197,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1197,19 +1249,22 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } if (indexName !== undefined) { requestContext.setQueryParam( "index_name", - ObjectSerializer.serialize(indexName, "Array", "") + ObjectSerializer.serialize(indexName, "Array", ""), + "multi" ); } @@ -1252,13 +1307,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1301,13 +1358,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1350,13 +1409,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1399,13 +1460,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1448,13 +1511,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1498,19 +1563,22 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } if (type !== undefined) { requestContext.setQueryParam( "type", - ObjectSerializer.serialize(type, "string", "") + ObjectSerializer.serialize(type, "string", ""), + "" ); } @@ -1553,13 +1621,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1602,13 +1672,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1651,13 +1723,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1702,25 +1776,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startMonth !== undefined) { requestContext.setQueryParam( "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time") + ObjectSerializer.serialize(startMonth, "Date", "date-time"), + "" ); } if (endMonth !== undefined) { requestContext.setQueryParam( "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time") + ObjectSerializer.serialize(endMonth, "Date", "date-time"), + "" ); } if (includeOrgDetails !== undefined) { requestContext.setQueryParam( "include_org_details", - ObjectSerializer.serialize(includeOrgDetails, "boolean", "") + ObjectSerializer.serialize(includeOrgDetails, "boolean", ""), + "" ); } if (includeConnectedAccounts !== undefined) { requestContext.setQueryParam( "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", "") + ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), + "" ); } @@ -1763,13 +1841,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1812,13 +1892,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1861,13 +1943,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1910,13 +1994,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -1957,31 +2043,36 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (month !== undefined) { requestContext.setQueryParam( "month", - ObjectSerializer.serialize(month, "Date", "date-time") + ObjectSerializer.serialize(month, "Date", "date-time"), + "" ); } if (day !== undefined) { requestContext.setQueryParam( "day", - ObjectSerializer.serialize(day, "Date", "date-time") + ObjectSerializer.serialize(day, "Date", "date-time"), + "" ); } if (names !== undefined) { requestContext.setQueryParam( "names", - ObjectSerializer.serialize(names, "Array", "") + ObjectSerializer.serialize(names, "Array", ""), + "multi" ); } if (limit !== undefined) { requestContext.setQueryParam( "limit", - ObjectSerializer.serialize(limit, "number", "int32") + ObjectSerializer.serialize(limit, "number", "int32"), + "" ); } if (nextRecordId !== undefined) { requestContext.setQueryParam( "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", "") + ObjectSerializer.serialize(nextRecordId, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/APIManagementApi.ts b/packages/datadog-api-client-v2/apis/APIManagementApi.ts index 0d7dc5d9e9b..bb1baed74c2 100644 --- a/packages/datadog-api-client-v2/apis/APIManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/APIManagementApi.ts @@ -177,19 +177,22 @@ export class APIManagementApiRequestFactory extends BaseAPIRequestFactory { if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64") + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/AuditApi.ts b/packages/datadog-api-client-v2/apis/AuditApi.ts index acb37eaa4d8..d32ce12054e 100644 --- a/packages/datadog-api-client-v2/apis/AuditApi.ts +++ b/packages/datadog-api-client-v2/apis/AuditApi.ts @@ -46,37 +46,43 @@ export class AuditApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time") + ObjectSerializer.serialize(filterFrom, "Date", "date-time"), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time") + ObjectSerializer.serialize(filterTo, "Date", "date-time"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "AuditLogsSort", "") + ObjectSerializer.serialize(sort, "AuditLogsSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts b/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts index eaf869870f4..297a42a8c19 100644 --- a/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts +++ b/packages/datadog-api-client-v2/apis/AuthNMappingsApi.ts @@ -156,31 +156,40 @@ export class AuthNMappingsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "AuthNMappingsSort", "") + ObjectSerializer.serialize(sort, "AuthNMappingsSort", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (resourceType !== undefined) { requestContext.setQueryParam( "resource_type", - ObjectSerializer.serialize(resourceType, "AuthNMappingResourceType", "") + ObjectSerializer.serialize( + resourceType, + "AuthNMappingResourceType", + "" + ), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts b/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts index 6cb257a897f..65c2401ea0d 100644 --- a/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts +++ b/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts @@ -133,37 +133,43 @@ export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactor if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time") + ObjectSerializer.serialize(filterFrom, "Date", "date-time"), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time") + ObjectSerializer.serialize(filterTo, "Date", "date-time"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "CIAppSort", "") + ObjectSerializer.serialize(sort, "CIAppSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts b/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts index f772a583be3..125a4fb3b25 100644 --- a/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts +++ b/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.ts @@ -93,37 +93,43 @@ export class CIVisibilityTestsApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time") + ObjectSerializer.serialize(filterFrom, "Date", "date-time"), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time") + ObjectSerializer.serialize(filterTo, "Date", "date-time"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "CIAppSort", "") + ObjectSerializer.serialize(sort, "CIAppSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/CaseManagementApi.ts b/packages/datadog-api-client-v2/apis/CaseManagementApi.ts index 20321ab309c..873ec70b642 100644 --- a/packages/datadog-api-client-v2/apis/CaseManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/CaseManagementApi.ts @@ -366,31 +366,36 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sortField !== undefined) { requestContext.setQueryParam( "sort[field]", - ObjectSerializer.serialize(sortField, "CaseSortableField", "") + ObjectSerializer.serialize(sortField, "CaseSortableField", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (sortAsc !== undefined) { requestContext.setQueryParam( "sort[asc]", - ObjectSerializer.serialize(sortAsc, "boolean", "") + ObjectSerializer.serialize(sortAsc, "boolean", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts b/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts index 1141ea791e1..5621d094e0d 100644 --- a/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts @@ -311,7 +311,8 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory if (filterManagementAccountId !== undefined) { requestContext.setQueryParam( "filter[management_account_id]", - ObjectSerializer.serialize(filterManagementAccountId, "string", "") + ObjectSerializer.serialize(filterManagementAccountId, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts b/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts index 638429e5b35..e87ef8fda85 100644 --- a/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts +++ b/packages/datadog-api-client-v2/apis/ContainerImagesApi.ts @@ -42,31 +42,36 @@ export class ContainerImagesApiRequestFactory extends BaseAPIRequestFactory { if (filterTags !== undefined) { requestContext.setQueryParam( "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", "") + ObjectSerializer.serialize(filterTags, "string", ""), + "" ); } if (groupBy !== undefined) { requestContext.setQueryParam( "group_by", - ObjectSerializer.serialize(groupBy, "string", "") + ObjectSerializer.serialize(groupBy, "string", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int32") + ObjectSerializer.serialize(pageSize, "number", "int32"), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/ContainersApi.ts b/packages/datadog-api-client-v2/apis/ContainersApi.ts index 9424f7fcb54..b7fab3a3703 100644 --- a/packages/datadog-api-client-v2/apis/ContainersApi.ts +++ b/packages/datadog-api-client-v2/apis/ContainersApi.ts @@ -42,31 +42,36 @@ export class ContainersApiRequestFactory extends BaseAPIRequestFactory { if (filterTags !== undefined) { requestContext.setQueryParam( "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", "") + ObjectSerializer.serialize(filterTags, "string", ""), + "" ); } if (groupBy !== undefined) { requestContext.setQueryParam( "group_by", - ObjectSerializer.serialize(groupBy, "string", "") + ObjectSerializer.serialize(groupBy, "string", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int32") + ObjectSerializer.serialize(pageSize, "number", "int32"), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/DowntimesApi.ts b/packages/datadog-api-client-v2/apis/DowntimesApi.ts index 22fe07dcad7..4d1391e6356 100644 --- a/packages/datadog-api-client-v2/apis/DowntimesApi.ts +++ b/packages/datadog-api-client-v2/apis/DowntimesApi.ts @@ -131,7 +131,8 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } @@ -168,25 +169,29 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { if (currentOnly !== undefined) { requestContext.setQueryParam( "current_only", - ObjectSerializer.serialize(currentOnly, "boolean", "") + ObjectSerializer.serialize(currentOnly, "boolean", ""), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64") + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" ); } @@ -231,13 +236,15 @@ export class DowntimesApiRequestFactory extends BaseAPIRequestFactory { if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64") + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/EventsApi.ts b/packages/datadog-api-client-v2/apis/EventsApi.ts index dca1ac1c97b..ff18aadb2f2 100644 --- a/packages/datadog-api-client-v2/apis/EventsApi.ts +++ b/packages/datadog-api-client-v2/apis/EventsApi.ts @@ -46,37 +46,43 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "string", "") + ObjectSerializer.serialize(filterFrom, "string", ""), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "string", "") + ObjectSerializer.serialize(filterTo, "string", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "EventsSort", "") + ObjectSerializer.serialize(sort, "EventsSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts b/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts index f017a902c64..a348f5907a6 100644 --- a/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts +++ b/packages/datadog-api-client-v2/apis/IncidentServicesApi.ts @@ -144,7 +144,8 @@ export class IncidentServicesApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", "") + ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), + "" ); } @@ -186,25 +187,29 @@ export class IncidentServicesApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", "") + ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts b/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts index 7f47f36e8b9..baffd67ed25 100644 --- a/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts +++ b/packages/datadog-api-client-v2/apis/IncidentTeamsApi.ts @@ -144,7 +144,8 @@ export class IncidentTeamsApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", "") + ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), + "" ); } @@ -186,25 +187,29 @@ export class IncidentTeamsApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", "") + ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/IncidentsApi.ts b/packages/datadog-api-client-v2/apis/IncidentsApi.ts index 016fab6bf73..b7c7f2cc551 100644 --- a/packages/datadog-api-client-v2/apis/IncidentsApi.ts +++ b/packages/datadog-api-client-v2/apis/IncidentsApi.ts @@ -379,7 +379,8 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "Array", "") + ObjectSerializer.serialize(include, "Array", ""), + "csv" ); } @@ -532,7 +533,8 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { include, "Array", "" - ) + ), + "csv" ); } if (filterAttachmentType !== undefined) { @@ -542,7 +544,8 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { filterAttachmentType, "Array", "" - ) + ), + "csv" ); } @@ -624,19 +627,22 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "Array", "") + ObjectSerializer.serialize(include, "Array", ""), + "csv" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } @@ -724,31 +730,36 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "IncidentRelatedObject", "") + ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), + "" ); } if (query !== undefined) { requestContext.setQueryParam( "query", - ObjectSerializer.serialize(query, "string", "") + ObjectSerializer.serialize(query, "string", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "IncidentSearchSortOrder", "") + ObjectSerializer.serialize(sort, "IncidentSearchSortOrder", ""), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } @@ -802,7 +813,8 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "Array", "") + ObjectSerializer.serialize(include, "Array", ""), + "csv" ); } @@ -873,7 +885,8 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory { include, "Array", "" - ) + ), + "csv" ); } diff --git a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts index 23ef2076622..7836a426c37 100644 --- a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts @@ -240,7 +240,8 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } @@ -282,7 +283,8 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } @@ -359,67 +361,82 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "APIKeysSort", "") + ObjectSerializer.serialize(sort, "APIKeysSort", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (filterCreatedAtStart !== undefined) { requestContext.setQueryParam( "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", "") + ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), + "" ); } if (filterCreatedAtEnd !== undefined) { requestContext.setQueryParam( "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", "") + ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), + "" ); } if (filterModifiedAtStart !== undefined) { requestContext.setQueryParam( "filter[modified_at][start]", - ObjectSerializer.serialize(filterModifiedAtStart, "string", "") + ObjectSerializer.serialize(filterModifiedAtStart, "string", ""), + "" ); } if (filterModifiedAtEnd !== undefined) { requestContext.setQueryParam( "filter[modified_at][end]", - ObjectSerializer.serialize(filterModifiedAtEnd, "string", "") + ObjectSerializer.serialize(filterModifiedAtEnd, "string", ""), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } if (filterRemoteConfigReadEnabled !== undefined) { requestContext.setQueryParam( "filter[remote_config_read_enabled]", - ObjectSerializer.serialize(filterRemoteConfigReadEnabled, "boolean", "") + ObjectSerializer.serialize( + filterRemoteConfigReadEnabled, + "boolean", + "" + ), + "" ); } if (filterCategory !== undefined) { requestContext.setQueryParam( "filter[category]", - ObjectSerializer.serialize(filterCategory, "string", "") + ObjectSerializer.serialize(filterCategory, "string", ""), + "" ); } @@ -458,43 +475,50 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "ApplicationKeysSort", "") + ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (filterCreatedAtStart !== undefined) { requestContext.setQueryParam( "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", "") + ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), + "" ); } if (filterCreatedAtEnd !== undefined) { requestContext.setQueryParam( "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", "") + ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } @@ -533,43 +557,50 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "ApplicationKeysSort", "") + ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (filterCreatedAtStart !== undefined) { requestContext.setQueryParam( "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", "") + ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), + "" ); } if (filterCreatedAtEnd !== undefined) { requestContext.setQueryParam( "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", "") + ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/LogsApi.ts b/packages/datadog-api-client-v2/apis/LogsApi.ts index 85d32b26f2b..04892330417 100644 --- a/packages/datadog-api-client-v2/apis/LogsApi.ts +++ b/packages/datadog-api-client-v2/apis/LogsApi.ts @@ -134,49 +134,57 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterIndexes !== undefined) { requestContext.setQueryParam( "filter[indexes]", - ObjectSerializer.serialize(filterIndexes, "Array", "") + ObjectSerializer.serialize(filterIndexes, "Array", ""), + "csv" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time") + ObjectSerializer.serialize(filterFrom, "Date", "date-time"), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time") + ObjectSerializer.serialize(filterTo, "Date", "date-time"), + "" ); } if (filterStorageTier !== undefined) { requestContext.setQueryParam( "filter[storage_tier]", - ObjectSerializer.serialize(filterStorageTier, "LogsStorageTier", "") + ObjectSerializer.serialize(filterStorageTier, "LogsStorageTier", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "LogsSort", "") + ObjectSerializer.serialize(sort, "LogsSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } @@ -216,7 +224,8 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { if (ddtags !== undefined) { requestContext.setQueryParam( "ddtags", - ObjectSerializer.serialize(ddtags, "string", "") + ObjectSerializer.serialize(ddtags, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/MetricsApi.ts b/packages/datadog-api-client-v2/apis/MetricsApi.ts index 87743bbf077..dcc5ddef2ee 100644 --- a/packages/datadog-api-client-v2/apis/MetricsApi.ts +++ b/packages/datadog-api-client-v2/apis/MetricsApi.ts @@ -241,31 +241,36 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { if (filterGroups !== undefined) { requestContext.setQueryParam( "filter[groups]", - ObjectSerializer.serialize(filterGroups, "string", "") + ObjectSerializer.serialize(filterGroups, "string", ""), + "" ); } if (filterHoursAgo !== undefined) { requestContext.setQueryParam( "filter[hours_ago]", - ObjectSerializer.serialize(filterHoursAgo, "number", "int32") + ObjectSerializer.serialize(filterHoursAgo, "number", "int32"), + "" ); } if (filterNumAggregations !== undefined) { requestContext.setQueryParam( "filter[num_aggregations]", - ObjectSerializer.serialize(filterNumAggregations, "number", "int32") + ObjectSerializer.serialize(filterNumAggregations, "number", "int32"), + "" ); } if (filterPct !== undefined) { requestContext.setQueryParam( "filter[pct]", - ObjectSerializer.serialize(filterPct, "boolean", "") + ObjectSerializer.serialize(filterPct, "boolean", ""), + "" ); } if (filterTimespanH !== undefined) { requestContext.setQueryParam( "filter[timespan_h]", - ObjectSerializer.serialize(filterTimespanH, "number", "int32") + ObjectSerializer.serialize(filterTimespanH, "number", "int32"), + "" ); } @@ -308,7 +313,8 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { if (windowSeconds !== undefined) { requestContext.setQueryParam( "window[seconds]", - ObjectSerializer.serialize(windowSeconds, "number", "int64") + ObjectSerializer.serialize(windowSeconds, "number", "int64"), + "" ); } @@ -415,13 +421,15 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { if (filterConfigured !== undefined) { requestContext.setQueryParam( "filter[configured]", - ObjectSerializer.serialize(filterConfigured, "boolean", "") + ObjectSerializer.serialize(filterConfigured, "boolean", ""), + "" ); } if (filterTagsConfigured !== undefined) { requestContext.setQueryParam( "filter[tags_configured]", - ObjectSerializer.serialize(filterTagsConfigured, "string", "") + ObjectSerializer.serialize(filterTagsConfigured, "string", ""), + "" ); } if (filterMetricType !== undefined) { @@ -431,31 +439,36 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory { filterMetricType, "MetricTagConfigurationMetricTypeCategory", "" - ) + ), + "" ); } if (filterIncludePercentiles !== undefined) { requestContext.setQueryParam( "filter[include_percentiles]", - ObjectSerializer.serialize(filterIncludePercentiles, "boolean", "") + ObjectSerializer.serialize(filterIncludePercentiles, "boolean", ""), + "" ); } if (filterQueried !== undefined) { requestContext.setQueryParam( "filter[queried]", - ObjectSerializer.serialize(filterQueried, "boolean", "") + ObjectSerializer.serialize(filterQueried, "boolean", ""), + "" ); } if (filterTags !== undefined) { requestContext.setQueryParam( "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", "") + ObjectSerializer.serialize(filterTags, "string", ""), + "" ); } if (windowSeconds !== undefined) { requestContext.setQueryParam( "window[seconds]", - ObjectSerializer.serialize(windowSeconds, "number", "int64") + ObjectSerializer.serialize(windowSeconds, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts b/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts index 22682de5502..6a0a156b6fd 100644 --- a/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/MicrosoftTeamsIntegrationApi.ts @@ -206,13 +206,15 @@ export class MicrosoftTeamsIntegrationApiRequestFactory extends BaseAPIRequestFa if (tenantId !== undefined) { requestContext.setQueryParam( "tenant_id", - ObjectSerializer.serialize(tenantId, "string", "") + ObjectSerializer.serialize(tenantId, "string", ""), + "" ); } if (name !== undefined) { requestContext.setQueryParam( "name", - ObjectSerializer.serialize(name, "string", "") + ObjectSerializer.serialize(name, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts b/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts index d06df72c912..eb6a2d17314 100644 --- a/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts +++ b/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.ts @@ -81,7 +81,8 @@ export class NetworkDeviceMonitoringApiRequestFactory extends BaseAPIRequestFact if (deviceId !== undefined) { requestContext.setQueryParam( "device_id", - ObjectSerializer.serialize(deviceId, "string", "") + ObjectSerializer.serialize(deviceId, "string", ""), + "" ); } @@ -117,25 +118,29 @@ export class NetworkDeviceMonitoringApiRequestFactory extends BaseAPIRequestFact if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } if (filterTag !== undefined) { requestContext.setQueryParam( "filter[tag]", - ObjectSerializer.serialize(filterTag, "string", "") + ObjectSerializer.serialize(filterTag, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/PowerpackApi.ts b/packages/datadog-api-client-v2/apis/PowerpackApi.ts index 092ee31588c..fa2873e9cdf 100644 --- a/packages/datadog-api-client-v2/apis/PowerpackApi.ts +++ b/packages/datadog-api-client-v2/apis/PowerpackApi.ts @@ -154,13 +154,15 @@ export class PowerpackApiRequestFactory extends BaseAPIRequestFactory { if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64") + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/ProcessesApi.ts b/packages/datadog-api-client-v2/apis/ProcessesApi.ts index e0291b12b27..3065f6e7544 100644 --- a/packages/datadog-api-client-v2/apis/ProcessesApi.ts +++ b/packages/datadog-api-client-v2/apis/ProcessesApi.ts @@ -43,37 +43,43 @@ export class ProcessesApiRequestFactory extends BaseAPIRequestFactory { if (search !== undefined) { requestContext.setQueryParam( "search", - ObjectSerializer.serialize(search, "string", "") + ObjectSerializer.serialize(search, "string", ""), + "" ); } if (tags !== undefined) { requestContext.setQueryParam( "tags", - ObjectSerializer.serialize(tags, "string", "") + ObjectSerializer.serialize(tags, "string", ""), + "" ); } if (from !== undefined) { requestContext.setQueryParam( "from", - ObjectSerializer.serialize(from, "number", "int64") + ObjectSerializer.serialize(from, "number", "int64"), + "" ); } if (to !== undefined) { requestContext.setQueryParam( "to", - ObjectSerializer.serialize(to, "number", "int64") + ObjectSerializer.serialize(to, "number", "int64"), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/RUMApi.ts b/packages/datadog-api-client-v2/apis/RUMApi.ts index 51ed41117f9..db3d8a77eb1 100644 --- a/packages/datadog-api-client-v2/apis/RUMApi.ts +++ b/packages/datadog-api-client-v2/apis/RUMApi.ts @@ -228,37 +228,43 @@ export class RUMApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time") + ObjectSerializer.serialize(filterFrom, "Date", "date-time"), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time") + ObjectSerializer.serialize(filterTo, "Date", "date-time"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "RUMSort", "") + ObjectSerializer.serialize(sort, "RUMSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/RolesApi.ts b/packages/datadog-api-client-v2/apis/RolesApi.ts index 2c53fad9414..19f13e20e09 100644 --- a/packages/datadog-api-client-v2/apis/RolesApi.ts +++ b/packages/datadog-api-client-v2/apis/RolesApi.ts @@ -377,31 +377,36 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "RolesSort", "") + ObjectSerializer.serialize(sort, "RolesSort", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (filterId !== undefined) { requestContext.setQueryParam( "filter[id]", - ObjectSerializer.serialize(filterId, "string", "") + ObjectSerializer.serialize(filterId, "string", ""), + "" ); } @@ -447,25 +452,29 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts b/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts index 9057c15bc99..f033dff1ae0 100644 --- a/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts +++ b/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts @@ -599,7 +599,8 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { if (snapshotTimestamp !== undefined) { requestContext.setQueryParam( "snapshot_timestamp", - ObjectSerializer.serialize(snapshotTimestamp, "number", "int64") + ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), + "" ); } @@ -792,73 +793,85 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64") + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" ); } if (snapshotTimestamp !== undefined) { requestContext.setQueryParam( "snapshot_timestamp", - ObjectSerializer.serialize(snapshotTimestamp, "number", "int64") + ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (filterTags !== undefined) { requestContext.setQueryParam( "filter[tags]", - ObjectSerializer.serialize(filterTags, "string", "") + ObjectSerializer.serialize(filterTags, "string", ""), + "" ); } if (filterEvaluationChangedAt !== undefined) { requestContext.setQueryParam( "filter[evaluation_changed_at]", - ObjectSerializer.serialize(filterEvaluationChangedAt, "string", "") + ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""), + "" ); } if (filterMuted !== undefined) { requestContext.setQueryParam( "filter[muted]", - ObjectSerializer.serialize(filterMuted, "boolean", "") + ObjectSerializer.serialize(filterMuted, "boolean", ""), + "" ); } if (filterRuleId !== undefined) { requestContext.setQueryParam( "filter[rule_id]", - ObjectSerializer.serialize(filterRuleId, "string", "") + ObjectSerializer.serialize(filterRuleId, "string", ""), + "" ); } if (filterRuleName !== undefined) { requestContext.setQueryParam( "filter[rule_name]", - ObjectSerializer.serialize(filterRuleName, "string", "") + ObjectSerializer.serialize(filterRuleName, "string", ""), + "" ); } if (filterResourceType !== undefined) { requestContext.setQueryParam( "filter[resource_type]", - ObjectSerializer.serialize(filterResourceType, "string", "") + ObjectSerializer.serialize(filterResourceType, "string", ""), + "" ); } if (filterDiscoveryTimestamp !== undefined) { requestContext.setQueryParam( "filter[discovery_timestamp]", - ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", "") + ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""), + "" ); } if (filterEvaluation !== undefined) { requestContext.setQueryParam( "filter[evaluation]", - ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", "") + ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""), + "" ); } if (filterStatus !== undefined) { requestContext.setQueryParam( "filter[status]", - ObjectSerializer.serialize(filterStatus, "FindingStatus", "") + ObjectSerializer.serialize(filterStatus, "FindingStatus", ""), + "" ); } if (filterVulnerabilityType !== undefined) { @@ -868,7 +881,8 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { filterVulnerabilityType, "Array", "" - ) + ), + "multi" ); } @@ -929,13 +943,15 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } @@ -974,37 +990,43 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "Date", "date-time") + ObjectSerializer.serialize(filterFrom, "Date", "date-time"), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "Date", "date-time") + ObjectSerializer.serialize(filterTo, "Date", "date-time"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", "") + ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts b/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts index bcf9d97439d..6204aac1ab3 100644 --- a/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts @@ -250,37 +250,43 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "ApplicationKeysSort", "") + ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (filterCreatedAtStart !== undefined) { requestContext.setQueryParam( "filter[created_at][start]", - ObjectSerializer.serialize(filterCreatedAtStart, "string", "") + ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), + "" ); } if (filterCreatedAtEnd !== undefined) { requestContext.setQueryParam( "filter[created_at][end]", - ObjectSerializer.serialize(filterCreatedAtEnd, "string", "") + ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts b/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts index f35ebdb3f6c..8c2c0ab8c3b 100644 --- a/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts @@ -134,7 +134,8 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory { schemaVersion, "ServiceDefinitionSchemaVersions", "" - ) + ), + "" ); } @@ -170,13 +171,15 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (schemaVersion !== undefined) { @@ -186,7 +189,8 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory { schemaVersion, "ServiceDefinitionSchemaVersions", "" - ) + ), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts b/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts index 76fb535bbe2..6dcc9e42d34 100644 --- a/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.ts @@ -198,61 +198,71 @@ export class ServiceScorecardsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } if (fieldsOutcome !== undefined) { requestContext.setQueryParam( "fields[outcome]", - ObjectSerializer.serialize(fieldsOutcome, "string", "") + ObjectSerializer.serialize(fieldsOutcome, "string", ""), + "" ); } if (fieldsRule !== undefined) { requestContext.setQueryParam( "fields[rule]", - ObjectSerializer.serialize(fieldsRule, "string", "") + ObjectSerializer.serialize(fieldsRule, "string", ""), + "" ); } if (filterOutcomeServiceName !== undefined) { requestContext.setQueryParam( "filter[outcome][service_name]", - ObjectSerializer.serialize(filterOutcomeServiceName, "string", "") + ObjectSerializer.serialize(filterOutcomeServiceName, "string", ""), + "" ); } if (filterOutcomeState !== undefined) { requestContext.setQueryParam( "filter[outcome][state]", - ObjectSerializer.serialize(filterOutcomeState, "string", "") + ObjectSerializer.serialize(filterOutcomeState, "string", ""), + "" ); } if (filterRuleEnabled !== undefined) { requestContext.setQueryParam( "filter[rule][enabled]", - ObjectSerializer.serialize(filterRuleEnabled, "boolean", "") + ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), + "" ); } if (filterRuleId !== undefined) { requestContext.setQueryParam( "filter[rule][id]", - ObjectSerializer.serialize(filterRuleId, "string", "") + ObjectSerializer.serialize(filterRuleId, "string", ""), + "" ); } if (filterRuleName !== undefined) { requestContext.setQueryParam( "filter[rule][name]", - ObjectSerializer.serialize(filterRuleName, "string", "") + ObjectSerializer.serialize(filterRuleName, "string", ""), + "" ); } @@ -300,61 +310,71 @@ export class ServiceScorecardsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "string", "") + ObjectSerializer.serialize(include, "string", ""), + "" ); } if (filterRuleId !== undefined) { requestContext.setQueryParam( "filter[rule][id]", - ObjectSerializer.serialize(filterRuleId, "string", "") + ObjectSerializer.serialize(filterRuleId, "string", ""), + "" ); } if (filterRuleEnabled !== undefined) { requestContext.setQueryParam( "filter[rule][enabled]", - ObjectSerializer.serialize(filterRuleEnabled, "boolean", "") + ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), + "" ); } if (filterRuleCustom !== undefined) { requestContext.setQueryParam( "filter[rule][custom]", - ObjectSerializer.serialize(filterRuleCustom, "boolean", "") + ObjectSerializer.serialize(filterRuleCustom, "boolean", ""), + "" ); } if (filterRuleName !== undefined) { requestContext.setQueryParam( "filter[rule][name]", - ObjectSerializer.serialize(filterRuleName, "string", "") + ObjectSerializer.serialize(filterRuleName, "string", ""), + "" ); } if (filterRuleDescription !== undefined) { requestContext.setQueryParam( "filter[rule][description]", - ObjectSerializer.serialize(filterRuleDescription, "string", "") + ObjectSerializer.serialize(filterRuleDescription, "string", ""), + "" ); } if (fieldsRule !== undefined) { requestContext.setQueryParam( "fields[rule]", - ObjectSerializer.serialize(fieldsRule, "string", "") + ObjectSerializer.serialize(fieldsRule, "string", ""), + "" ); } if (fieldsScorecard !== undefined) { requestContext.setQueryParam( "fields[scorecard]", - ObjectSerializer.serialize(fieldsScorecard, "string", "") + ObjectSerializer.serialize(fieldsScorecard, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts b/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts index 360541ce802..da0c51dce35 100644 --- a/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts +++ b/packages/datadog-api-client-v2/apis/SoftwareCatalogApi.ts @@ -88,61 +88,71 @@ export class SoftwareCatalogApiRequestFactory extends BaseAPIRequestFactory { if (pageOffset !== undefined) { requestContext.setQueryParam( "page[offset]", - ObjectSerializer.serialize(pageOffset, "number", "int64") + ObjectSerializer.serialize(pageOffset, "number", "int64"), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int64") + ObjectSerializer.serialize(pageLimit, "number", "int64"), + "" ); } if (filterId !== undefined) { requestContext.setQueryParam( "filter[id]", - ObjectSerializer.serialize(filterId, "string", "") + ObjectSerializer.serialize(filterId, "string", ""), + "" ); } if (filterRef !== undefined) { requestContext.setQueryParam( "filter[ref]", - ObjectSerializer.serialize(filterRef, "string", "") + ObjectSerializer.serialize(filterRef, "string", ""), + "" ); } if (filterName !== undefined) { requestContext.setQueryParam( "filter[name]", - ObjectSerializer.serialize(filterName, "string", "") + ObjectSerializer.serialize(filterName, "string", ""), + "" ); } if (filterKind !== undefined) { requestContext.setQueryParam( "filter[kind]", - ObjectSerializer.serialize(filterKind, "string", "") + ObjectSerializer.serialize(filterKind, "string", ""), + "" ); } if (filterOwner !== undefined) { requestContext.setQueryParam( "filter[owner]", - ObjectSerializer.serialize(filterOwner, "string", "") + ObjectSerializer.serialize(filterOwner, "string", ""), + "" ); } if (filterRelationType !== undefined) { requestContext.setQueryParam( "filter[relation][type]", - ObjectSerializer.serialize(filterRelationType, "RelationType", "") + ObjectSerializer.serialize(filterRelationType, "RelationType", ""), + "" ); } if (filterExcludeSnapshot !== undefined) { requestContext.setQueryParam( "filter[exclude_snapshot]", - ObjectSerializer.serialize(filterExcludeSnapshot, "string", "") + ObjectSerializer.serialize(filterExcludeSnapshot, "string", ""), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "IncludeType", "") + ObjectSerializer.serialize(include, "IncludeType", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/SpansApi.ts b/packages/datadog-api-client-v2/apis/SpansApi.ts index 4efcfc0bfe3..0fbfe4ed2c0 100644 --- a/packages/datadog-api-client-v2/apis/SpansApi.ts +++ b/packages/datadog-api-client-v2/apis/SpansApi.ts @@ -138,37 +138,43 @@ export class SpansApiRequestFactory extends BaseAPIRequestFactory { if (filterQuery !== undefined) { requestContext.setQueryParam( "filter[query]", - ObjectSerializer.serialize(filterQuery, "string", "") + ObjectSerializer.serialize(filterQuery, "string", ""), + "" ); } if (filterFrom !== undefined) { requestContext.setQueryParam( "filter[from]", - ObjectSerializer.serialize(filterFrom, "string", "") + ObjectSerializer.serialize(filterFrom, "string", ""), + "" ); } if (filterTo !== undefined) { requestContext.setQueryParam( "filter[to]", - ObjectSerializer.serialize(filterTo, "string", "") + ObjectSerializer.serialize(filterTo, "string", ""), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "SpansSort", "") + ObjectSerializer.serialize(sort, "SpansSort", ""), + "" ); } if (pageCursor !== undefined) { requestContext.setQueryParam( "page[cursor]", - ObjectSerializer.serialize(pageCursor, "string", "") + ObjectSerializer.serialize(pageCursor, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/TeamsApi.ts b/packages/datadog-api-client-v2/apis/TeamsApi.ts index 36ecdefb81a..0c806612ccd 100644 --- a/packages/datadog-api-client-v2/apis/TeamsApi.ts +++ b/packages/datadog-api-client-v2/apis/TeamsApi.ts @@ -434,25 +434,29 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "GetTeamMembershipsSort", "") + ObjectSerializer.serialize(sort, "GetTeamMembershipsSort", ""), + "" ); } if (filterKeyword !== undefined) { requestContext.setQueryParam( "filter[keyword]", - ObjectSerializer.serialize(filterKeyword, "string", "") + ObjectSerializer.serialize(filterKeyword, "string", ""), + "" ); } @@ -560,43 +564,50 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "ListTeamsSort", "") + ObjectSerializer.serialize(sort, "ListTeamsSort", ""), + "" ); } if (include !== undefined) { requestContext.setQueryParam( "include", - ObjectSerializer.serialize(include, "Array", "") + ObjectSerializer.serialize(include, "Array", ""), + "multi" ); } if (filterKeyword !== undefined) { requestContext.setQueryParam( "filter[keyword]", - ObjectSerializer.serialize(filterKeyword, "string", "") + ObjectSerializer.serialize(filterKeyword, "string", ""), + "" ); } if (filterMe !== undefined) { requestContext.setQueryParam( "filter[me]", - ObjectSerializer.serialize(filterMe, "boolean", "") + ObjectSerializer.serialize(filterMe, "boolean", ""), + "" ); } if (fieldsTeam !== undefined) { requestContext.setQueryParam( "fields[team]", - ObjectSerializer.serialize(fieldsTeam, "Array", "") + ObjectSerializer.serialize(fieldsTeam, "Array", ""), + "csv" ); } diff --git a/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts b/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts index 891b73f19a3..20dbb940792 100644 --- a/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts +++ b/packages/datadog-api-client-v2/apis/UsageMeteringApi.ts @@ -92,13 +92,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startMonth !== undefined) { requestContext.setQueryParam( "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time") + ObjectSerializer.serialize(startMonth, "Date", "date-time"), + "" ); } if (endMonth !== undefined) { requestContext.setQueryParam( "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time") + ObjectSerializer.serialize(endMonth, "Date", "date-time"), + "" ); } @@ -140,37 +142,43 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (view !== undefined) { requestContext.setQueryParam( "view", - ObjectSerializer.serialize(view, "string", "") + ObjectSerializer.serialize(view, "string", ""), + "" ); } if (startMonth !== undefined) { requestContext.setQueryParam( "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time") + ObjectSerializer.serialize(startMonth, "Date", "date-time"), + "" ); } if (endMonth !== undefined) { requestContext.setQueryParam( "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time") + ObjectSerializer.serialize(endMonth, "Date", "date-time"), + "" ); } if (startDate !== undefined) { requestContext.setQueryParam( "start_date", - ObjectSerializer.serialize(startDate, "Date", "date-time") + ObjectSerializer.serialize(startDate, "Date", "date-time"), + "" ); } if (endDate !== undefined) { requestContext.setQueryParam( "end_date", - ObjectSerializer.serialize(endDate, "Date", "date-time") + ObjectSerializer.serialize(endDate, "Date", "date-time"), + "" ); } if (includeConnectedAccounts !== undefined) { requestContext.setQueryParam( "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", "") + ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), + "" ); } @@ -215,25 +223,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (view !== undefined) { requestContext.setQueryParam( "view", - ObjectSerializer.serialize(view, "string", "") + ObjectSerializer.serialize(view, "string", ""), + "" ); } if (startMonth !== undefined) { requestContext.setQueryParam( "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time") + ObjectSerializer.serialize(startMonth, "Date", "date-time"), + "" ); } if (endMonth !== undefined) { requestContext.setQueryParam( "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time") + ObjectSerializer.serialize(endMonth, "Date", "date-time"), + "" ); } if (includeConnectedAccounts !== undefined) { requestContext.setQueryParam( "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", "") + ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), + "" ); } @@ -288,25 +300,29 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (filterTimestampStart !== undefined) { requestContext.setQueryParam( "filter[timestamp][start]", - ObjectSerializer.serialize(filterTimestampStart, "Date", "date-time") + ObjectSerializer.serialize(filterTimestampStart, "Date", "date-time"), + "" ); } if (filterTimestampEnd !== undefined) { requestContext.setQueryParam( "filter[timestamp][end]", - ObjectSerializer.serialize(filterTimestampEnd, "Date", "date-time") + ObjectSerializer.serialize(filterTimestampEnd, "Date", "date-time"), + "" ); } if (filterProductFamilies !== undefined) { requestContext.setQueryParam( "filter[product_families]", - ObjectSerializer.serialize(filterProductFamilies, "string", "") + ObjectSerializer.serialize(filterProductFamilies, "string", ""), + "" ); } if (filterIncludeDescendants !== undefined) { requestContext.setQueryParam( "filter[include_descendants]", - ObjectSerializer.serialize(filterIncludeDescendants, "boolean", "") + ObjectSerializer.serialize(filterIncludeDescendants, "boolean", ""), + "" ); } if (filterIncludeConnectedAccounts !== undefined) { @@ -316,31 +332,36 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { filterIncludeConnectedAccounts, "boolean", "" - ) + ), + "" ); } if (filterIncludeBreakdown !== undefined) { requestContext.setQueryParam( "filter[include_breakdown]", - ObjectSerializer.serialize(filterIncludeBreakdown, "boolean", "") + ObjectSerializer.serialize(filterIncludeBreakdown, "boolean", ""), + "" ); } if (filterVersions !== undefined) { requestContext.setQueryParam( "filter[versions]", - ObjectSerializer.serialize(filterVersions, "string", "") + ObjectSerializer.serialize(filterVersions, "string", ""), + "" ); } if (pageLimit !== undefined) { requestContext.setQueryParam( "page[limit]", - ObjectSerializer.serialize(pageLimit, "number", "int32") + ObjectSerializer.serialize(pageLimit, "number", "int32"), + "" ); } if (pageNextRecordId !== undefined) { requestContext.setQueryParam( "page[next_record_id]", - ObjectSerializer.serialize(pageNextRecordId, "string", "") + ObjectSerializer.serialize(pageNextRecordId, "string", ""), + "" ); } @@ -401,49 +422,57 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startMonth !== undefined) { requestContext.setQueryParam( "start_month", - ObjectSerializer.serialize(startMonth, "Date", "date-time") + ObjectSerializer.serialize(startMonth, "Date", "date-time"), + "" ); } if (endMonth !== undefined) { requestContext.setQueryParam( "end_month", - ObjectSerializer.serialize(endMonth, "Date", "date-time") + ObjectSerializer.serialize(endMonth, "Date", "date-time"), + "" ); } if (fields !== undefined) { requestContext.setQueryParam( "fields", - ObjectSerializer.serialize(fields, "string", "") + ObjectSerializer.serialize(fields, "string", ""), + "" ); } if (sortDirection !== undefined) { requestContext.setQueryParam( "sort_direction", - ObjectSerializer.serialize(sortDirection, "SortDirection", "") + ObjectSerializer.serialize(sortDirection, "SortDirection", ""), + "" ); } if (sortName !== undefined) { requestContext.setQueryParam( "sort_name", - ObjectSerializer.serialize(sortName, "string", "") + ObjectSerializer.serialize(sortName, "string", ""), + "" ); } if (tagBreakdownKeys !== undefined) { requestContext.setQueryParam( "tag_breakdown_keys", - ObjectSerializer.serialize(tagBreakdownKeys, "string", "") + ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), + "" ); } if (nextRecordId !== undefined) { requestContext.setQueryParam( "next_record_id", - ObjectSerializer.serialize(nextRecordId, "string", "") + ObjectSerializer.serialize(nextRecordId, "string", ""), + "" ); } if (includeDescendants !== undefined) { requestContext.setQueryParam( "include_descendants", - ObjectSerializer.serialize(includeDescendants, "boolean", "") + ObjectSerializer.serialize(includeDescendants, "boolean", ""), + "" ); } @@ -481,13 +510,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (view !== undefined) { requestContext.setQueryParam( "view", - ObjectSerializer.serialize(view, "string", "") + ObjectSerializer.serialize(view, "string", ""), + "" ); } if (includeConnectedAccounts !== undefined) { requestContext.setQueryParam( "include_connected_accounts", - ObjectSerializer.serialize(includeConnectedAccounts, "boolean", "") + ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), + "" ); } @@ -533,13 +564,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -582,13 +615,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } @@ -631,13 +666,15 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory { if (startHr !== undefined) { requestContext.setQueryParam( "start_hr", - ObjectSerializer.serialize(startHr, "Date", "date-time") + ObjectSerializer.serialize(startHr, "Date", "date-time"), + "" ); } if (endHr !== undefined) { requestContext.setQueryParam( "end_hr", - ObjectSerializer.serialize(endHr, "Date", "date-time") + ObjectSerializer.serialize(endHr, "Date", "date-time"), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/UsersApi.ts b/packages/datadog-api-client-v2/apis/UsersApi.ts index 58e1c54b5fd..02e0897a2e7 100644 --- a/packages/datadog-api-client-v2/apis/UsersApi.ts +++ b/packages/datadog-api-client-v2/apis/UsersApi.ts @@ -267,37 +267,43 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); } if (sort !== undefined) { requestContext.setQueryParam( "sort", - ObjectSerializer.serialize(sort, "string", "") + ObjectSerializer.serialize(sort, "string", ""), + "" ); } if (sortDir !== undefined) { requestContext.setQueryParam( "sort_dir", - ObjectSerializer.serialize(sortDir, "QuerySortOrder", "") + ObjectSerializer.serialize(sortDir, "QuerySortOrder", ""), + "" ); } if (filter !== undefined) { requestContext.setQueryParam( "filter", - ObjectSerializer.serialize(filter, "string", "") + ObjectSerializer.serialize(filter, "string", ""), + "" ); } if (filterStatus !== undefined) { requestContext.setQueryParam( "filter[status]", - ObjectSerializer.serialize(filterStatus, "string", "") + ObjectSerializer.serialize(filterStatus, "string", ""), + "" ); } diff --git a/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts b/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts index decd0f46bbf..866d8b15e9d 100644 --- a/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts +++ b/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts @@ -183,13 +183,15 @@ export class WorkflowAutomationApiRequestFactory extends BaseAPIRequestFactory { if (pageSize !== undefined) { requestContext.setQueryParam( "page[size]", - ObjectSerializer.serialize(pageSize, "number", "int64") + ObjectSerializer.serialize(pageSize, "number", "int64"), + "" ); } if (pageNumber !== undefined) { requestContext.setQueryParam( "page[number]", - ObjectSerializer.serialize(pageNumber, "number", "int64") + ObjectSerializer.serialize(pageNumber, "number", "int64"), + "" ); }